Cyber Risks · PortSwigger Research

Bypassing WAFs with the phantom $Version cookie

Summary: PortSwigger researcher Zak Fedotkin published research showing that legacy cookie-parsing features, including the RFC2109 $Version attribute, quoted cookie values, comma separators, and multiple Cookie headers, create parser discrepancies that can be abused to bypass web application firewalls. The post demonstrates that frameworks such as Spring Boot with Apache Tomcat 9.0.83 and Python's SimpleCookie handle these headers differently, and that AWS WAF signatures can be evaded using quoted strings and multiline Cookie header continuation.

What you should know: The same parser gaps that hide a payload from a WAF can also carry SQL injection and command injection separators like semicolons, commas, newlines, and backslashes past that WAF, so a signature your edge relies on may not be inspecting what your origin actually parses.

Read the original at PortSwigger Research ↗

Topics
Vulnerabilities & Patching
Related