Skip to content
Path traversal Write-up Advanced

CVE-2025–64446 — A Red Team Offensive Playbook for FortiWeb RCE via Path Traversal +…

A path traversal flaw in FortiWeb's API routing allows an unauthenticated attacker to reach an internal CGI handler, which then trusts a forged CGIINFO header to grant admin privileges. The attacker can create a new admin user, achieving full remote administrative control.

verylazytech Follow

Published on medium.com

Fortinet products are some of the most battle-tested appliances protecting enterprise networks today — and ironically, the moment a Forti appliance becomes vulnerable, the blast radius is catastrophic. In late 2025, one of the most dangerous vulnerabilities ever discovered in FortiWeb surfaced: CVE-2025–64446, a…

Very Lazy Tech 👾, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the API routing parser mishandles encoded question marks in path segments, allowing traversal to an internal CGI script that trusts an unsigned identity header.

Impact

An unauthenticated attacker could create a new admin user and gain full administrative control of the FortiWeb appliance.

What the attacker needed

Management interface exposed; appliance is pre-patch; vulnerable API routing stack

How it was found

  1. Send a request to the vulnerable API endpoint with a path traversal sequence to reach the internal CGI handler.
  2. Include a forged CGIINFO header containing base64-encoded JSON with admin identity details.
  3. Send a POST request with a JSON body to create a new admin user with chosen credentials.
  4. Check the response status; a 200 indicates the new admin user was created.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

FortiWeb is a security appliance that protects websites. A bug let anyone skip the login screen by crafting a special web request that sneaks past the normal checks and then pretends to already be an administrator. This meant an attacker could create their own admin account and take full control of the device.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More by verylazytech

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.