FortiOS vulnerabilities
3 real-world CVEs in FortiOS. Each one is a short hands-on exercise in Hexret: find the vulnerable line, follow the exploit and learn the fix.
- CVE-2024-21762critical 9.82024
FortiOS two-byte chunk-trailer stack overwrite
A padded zero-length HTTP chunk carries a large raw line length into trailer processing, where an incomplete remaining-space check permits a fixed CRLF pair to be written beyond a stack buffer.
- CVE-2023-27997critical 9.82023
XORtigate: FortiOS SSL-VPN hex-length heap overflow
The SSL-VPN parser validates a raw-byte length against the hexadecimal character count, allowing its XOR decryption loop and terminator write to continue beyond the decoded heap buffer.
- CVE-2022-42475critical 9.82022
FortiOS SSL-VPN: oversized Content-Length wraps the heap allocation
An unauthenticated HTTP request can supply a body length above the 32-bit range, causing the SSL-VPN daemon to reserve a truncated heap buffer and then receive substantially more body data into it.