id: CVE-2025-40630

info:
  name: IceWarp Mail Server ≤11.4.0 - Open Redirect
  author: DhiyaneshDK
  severity: medium
  description: |
    IceWarp Mail Server version 11.4.0 and below contains an open redirect vulnerability that allows attackers to redirect users to arbitrary external domains through malicious URLs.
  impact: |
    An attacker can craft malicious URLs to redirect users to external malicious websites, potentially leading to phishing attacks or credential theft.
  remediation: |
    Update IceWarp Mail Server to a version newer than 11.4.0. Implement proper URL validation and restrict redirects to trusted domains only.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2025-40630
    - https://www.incibe.es/en/incibe-cert/notices/aviso/multiple-vulnerabilities-icewarp-mail-server
  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-2025-40630
    cwe-id: CWE-601
    epss-score: 0.00425
    epss-percentile: 0.33844
    cpe: cpe:2.3:a:icewarp:mail_server:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: icewarp
    product: mail_server
    shodan-query: 'http.title:"IceWarp"'
    fofa-query: 'title="IceWarp"'
    google-query: intitle:"icewarp"
  tags: cve,cve2025,icewarp,redirect,open-redirect,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/%2f%5c%2foast.pro%2f.."

    matchers-condition: and
    matchers:
      - type: regex
        part: header
        regex:
          - '(?m)^(?:Location\s*?:\s*?)(?:https?://|//)?(?:[a-zA-Z0-9\-_\.@]*)oast\.pro.*$'

      - type: status
        status:
          - 302
# digest: 4b0a00483046022100c17d5d91141568668a88f6851c4d386d097a459a900fa54011a39f2cb549d17c022100c6c1498d110e2f4cf977fae9361ba16354ed925c4f917ea74d9cdfe5bc6923ef:922c64590222798bb761d5b6d8e72950