HTTP Request Smuggling
A technique exploiting parsing discrepancies between front-end and back-end servers to smuggle hidden HTTP requests that bypass security controls.
HTTP Request Smuggling is a technique that exploits discrepancies in how front-end and back-end servers parse HTTP requests. By crafting ambiguous requests, attackers can "smuggle" a hidden request that gets interpreted differently by each server, bypassing security controls and poisoning other users' requests.
How It Works
HTTP provides two ways to specify request body length: Content-Length header and Transfer-Encoding: chunked. When both are present, servers may disagree on where one request ends and the next begins.
Attack Impact
- Bypass security controls: WAF, access controls, IP restrictions
- Request hijacking: Capture other users' requests/credentials
- Cache poisoning: Store malicious responses for other users
- Credential theft: Redirect users' authenticated requests
- Web cache deception: Cache sensitive user data
Prevention
- Use HTTP/2 end-to-end (no downgrading)
- Configure front-end to normalize ambiguous requests
- Reject requests with both Content-Length and Transfer-Encoding
- Use the same server software on front-end and back-end
- Disable back-end connection reuse