CVE-2023-40779: IceWarp Mail Server Deep Castle 2 v.13.0.1.2 - Open Redirect

2025-08-01 IceWarp Mail Server Deep Castle 2 PoC Public

Description

An issue in IceWarp Mail Server Deep Castle 2 v.13.0.1.2 allows a remote attacker to execute arbitrary code via a crafted request to the URL.

PoC

id: CVE-2023-40779

info:
  name: IceWarp Mail Server Deep Castle 2 v.13.0.1.2 - Open Redirect
  author: r3Y3r53
  severity: medium
  description: |
    An issue in IceWarp Mail Server Deep Castle 2 v.13.0.1.2 allows a remote attacker to execute arbitrary code via a crafted request to the URL.
  impact: |
    Attackers can craft malicious redirect URLs to phish IceWarp Mail Server users, potentially stealing email credentials by redirecting victims to attacker-controlled domains that mimic the legitimate login page.
  remediation: |
    Update IceWarp Mail Server Deep Castle 2 to a version newer than 13.0.1.2 that validates redirect URLs and prevents open redirect attacks.
  reference:
    - https://medium.com/@muthumohanprasath.r/open-redirection-vulnerability-on-icewarp-webclient-product-cve-2023-40779-61176503710
    - https://nvd.nist.gov/vuln/detail/CVE-2023-40779
    - https://medium.com/%40muthumohanprasath.r/open-redirection-vulnerability-on-icewarp-webclient-product-cve-2023-40779-61176503710
  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-2023-40779
    cwe-id: CWE-601
    epss-score: 0.01422
    epss-percentile: 0.72045
    cpe: cpe:2.3:a:icewarp:deep_castle_g2:13.0.1.2:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: icewarp
    product: deep_castle_g2
    shodan-query:
      - title:"IceWarp"
      - http.title:"icewarp"
    fofa-query: title="icewarp"
    google-query: intitle:"icewarp"
  tags: cve2023,cve,icewarp,redirect,vuln

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

    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: 4a0a0047304502206ab616c91e8f0d0a2105889485f686ab2f2ade43b644b2fbaee61cbba5e0d9520221008f76d7813c2610dd446879fc520148a69f356ac5d607874afa490e60c0705c6a:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities