Fortinet FortiWeb cat_cgi_paths Out-Of-Bounds Write Remote Code Execution Vulnerability
An out-of-bounds write in FortiWeb's handling of HTTP requests, specifically involving cat_cgi_paths, allows an authenticated remote attacker to write past the end of an allocated buffer. This can be leveraged to execute arbitrary code with root privileges.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Fortinet FortiWeb. Authentication is required to exploit this vulnerability.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a missing bounds check on user-supplied data in the cat_cgi_paths request handling, leading to a write past the end of an allocated buffer.
Impact
An authenticated remote attacker could execute arbitrary code with root privileges on affected FortiWeb installations.
What the attacker needed
Authentication required; network access to FortiWeb
The fix
Fortinet issued an update to correct the vulnerability.
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 report has not been written yet. The Original tab links to the source.
FortiWeb is a web application firewall. A part of it that processes HTTP requests does not check the size of data properly, so an attacker who is already logged in can send crafted input that overwrites memory beyond a buffer. This memory corruption can be turned into running their own commands as the root user, the highest privilege level on the system.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.