Skip to content
Path traversal Write-up Intermediate

CVE-2025–64446 | The FortiWeb Vulnerability Everyone Slept On

FortiWeb fails to sanitise URL paths, allowing an unauthenticated attacker to read arbitrary files outside the intended directory. This can expose configuration files, SSL private keys, and system files, potentially leading to further compromise.

medium.com

Published on medium.com

When security teams think edge device compromise, they usually imagine firewalls, VPN appliances, or exposed RDP endpoints. What they rarely expect is the very tool meant to protect their web apps quietly becoming the attacker’s entry point.

Motasem Hamdan, 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 appliance does not properly canonicalise or restrict user-supplied path strings, allowing directory traversal sequences to escape the intended base directory.

Impact

An unauthenticated attacker could read sensitive files such as configuration files, SSL private keys, and system files, potentially leading to remote code execution, credential harvesting, and man-in-the-middle attacks.

What the attacker needed

No authentication required; Network access to FortiWeb HTTP/HTTPS

The fix

Apply the vendor patch immediately; as temporary mitigations, restrict admin interface access, deploy custom WAF rules to block traversal sequences, disable unused services, segment the appliance, and regenerate SSL certificates if key exposure is suspected.

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.

A web application firewall (WAF) is a security device that sits in front of websites to filter out attacks. In this case, the WAF itself has a flaw: it does not properly check the file paths that users ask for, so an attacker can trick it into showing files it should not, like password files or private keys. This is dangerous because those files can help attackers break into other systems.

What is Path traversal?

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

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.