Skip to content

Fortinet FortiWeb Authentication Bypass (CVE-2025-64446)

FortiWeb

Description

A critical vulnerability in Fortinet FortiWeb allows remote attackers to bypass authentication and impersonate the built-in admin user. Attackers exploit a path traversal flaw combined with a crafted CGIINFO header containing Base64-encoded JSON. This flaw is being actively exploited to create rogue admin accounts, giving attackers full control over the WAF device.


Technical Details

Component / Area Details
CVE CVE-2025-64446
Vulnerability Type Path Traversal + Authentication Bypass
Affected Feature fwbcgi internal CGI handler
Attack Vector Crafted HTTP POST with Base64 JSON in CGIINFO header
Privilege Level Achieved Full Administrative Control

Combined Vulnerabilities

  1. Path Traversal to reach the internal CGI binary:

/api/v2.0/cmdb/system/admin%3F/../../../../../cgi-bin/fwbcgi
2. Authentication Bypass via Base64-encoded JSON specifying:
  • username
  • profname
  • vdom
  • loginname

FortiWeb fails to verify authentication and accepts the supplied values, causing admin impersonation.

Affected Versions

  • 8.0.0–8.0.1
  • 7.6.0–7.6.4
  • 7.4.0–7.4.9
  • 7.2.0–7.2.11
  • 7.0.0–7.0.11

Attack Scenario

  1. Attacker sends a malicious POST request to the vulnerable endpoint.
  2. JSON blob in CGIINFO header is Base64-encoded and mimics the internal admin identity.
  3. FortiWeb treats the attacker as an authenticated administrator.
  4. Attacker creates new privileged accounts, such as:

  5. Testpoint / AFodIUU3Sszp5

  6. trader / 3eMIXX43
  7. test1234point / AFT3$tH4ck
  8. With persistence established, the attacker can:

  9. Modify WAF policies

  10. Disable protections
  11. Intercept or manipulate traffic
  12. Install backdoors
  13. Pivot internally

Impact Assessment

  • Full administrative compromise of FortiWeb
  • Rogue administrator accounts created
  • Ability to disable or tamper with WAF rules
  • Long-term persistence via hidden accounts
  • Potential internal network pivoting
  • High risk of sensitive traffic interception or alteration

Mitigation Strategies

πŸ”„ Immediate Patching

Upgrade to fixed versions:

  • 8.0.2
  • 7.6.5
  • 7.4.10
  • 7.2.12
  • 7.0.12

🌐 Reduce Exposure

  • Disable HTTP/HTTPS admin access on internet-facing interfaces.

πŸ” Detection & Threat Hunting

  • Check for unauthorized admin accounts.
  • Inspect logs for POST requests to fwbcgi.
  • Search for Base64 patterns in the CGIINFO header.

πŸ”’ Network Hardening

  • Restrict management access to internal networks only.

πŸ“˜ CISA KEV Compliance

  • Apply patches within required remediation windows.

Resources & References