Testing for HTTP Splitting/Smuggling
Check whether CRLF injection or request-length ambiguity lets you split one HTTP message into two, or desync a front-end/back-end pair.
Goal
Confirm no input can inject CRLF sequences into headers, and that front-end/back-end servers agree on where each request ends.
How to test
Splitting — inject CRLF into a value that’s reflected into a response header (a redirect target is the classic case):
curl -s "https://example.com/redirect?url=/%0d%0aSet-Cookie:%20injected=1"
Smuggling — send a request with both Content-Length and Transfer-Encoding set, and see whether the front-end and back-end parse the boundary differently (use Burp’s HTTP Request Smuggler extension for reliable detection — this is easy to get wrong by hand and risks affecting other users’ traffic).
What to look for
Injected headers/cookies landing in the response (splitting), or a desync causing one request’s body to be prepended to the next user’s request (smuggling).
Notes
Smuggling tests can affect other live users of the target — run them cautiously, ideally in a staging environment, and only with clear scope for it.
References
- OWASP WSTG-INPV-15 — Testing for HTTP Splitting/Smuggling.