In-depth lesson · Smuggling / CRLF
Tips for beginners
Every point the Smuggling / CRLF reports back under this heading, best-backed first, each with the reports it is seen in.
-
Show impact, not just the primitive. A reflected header on its own is weak. Chain it: inject a cookie-setting header and fix a CSRF token, add a permissive cross-origin header and read authenticated data, poison a cached redirect and show a legitimate user being served your content, or smuggle a request to steal a session cookie. The reports here that paid well are the ones that reached account takeover, session hijacking or internal access.
Seen in 10 reports
-
Test client libraries as well as servers. The evidence covers curl and libcurl across HTTP, SMTP, IMAP and gopher, Python urllib, Ruby net/http and CGI, Node.js undici and memcached clients. If a library formats user input into a protocol line without stripping newlines, that is a real bug, and it is worth checking whether the application passes user input into it.
Seen in 10 reports
-
Try obfuscating the Transfer-Encoding header rather than sending it plainly. A space before the colon, a tab, unusual casing, a multi-line value or a duplicate header can make one parser ignore it while the other honours it. The evidence shows this working against proxies, Node.js parsers, WEBrick and Squid, so it is worth trying on any host behind a proxy.
Seen in 9 reports
-
For smuggling, send a request with both Content-Length and Transfer-Encoding, with a smuggled request after the chunked body terminator, and check whether two responses come back on one connection. A delayed 504 response is also a useful indicator that something is desyncing, so watch for it on streaming and video subdomains.
Seen in 8 reports
-
Do not report a parser difference with no demonstrated consequence. A server accepting a malformed header is not a finding on its own. You need to show that the difference lets you do something the application would not otherwise allow, such as reaching a blocked path, bypassing access control, poisoning a cache or reading another user's data.
Seen in 8 reports
-
Keep your evidence clean and reproducible. Record the exact requests and responses, show the two responses on one connection or the injected header in the response, and explain the chain from primitive to impact in plain terms. Reviewers are much more likely to accept a smuggling report that shows the desync happening than one that only argues it should be possible.
Seen in 8 reports
-
Before hunting smuggling, hunt the simpler header injection. Send a request whose URL, redirect parameter or query value contains encoded newline characters followed by a header name and value, and inspect the response headers. If you see your injected header, you have a finding, and it often chains into response splitting, cookie injection or cross-site scripting.
Seen in 7 reports
-
Check scope before you spend time. Many of these bugs sit on documentation, API, info, VPN and remote-access subdomains, and some programs exclude those or treat them as out of scope. Confirm the host is in scope and that the impact you are claiming is on an in-scope asset before writing anything up.
Seen in 7 reports
-
Start where two parsers meet. A front-end proxy or CDN in front of a back-end server is the highest-value place to look, because that is where a boundary disagreement turns into a smuggled request. Look for hosts behind a cache, load balancer or reverse proxy, and check whether the front end and back end handle conflicting or malformed framing headers the same way.
Seen in 6 reports
-
Test non-standard header delimiters. Send header fields delimited with bare line feeds or other sequences instead of the required carriage return and line feed pair, and check whether the server accepts them. If it does, test for smuggling behind a proxy, because that acceptance is exactly the kind of parser difference that enables it.
Seen in 5 reports
-
Watch for the CL.0 client-side desync variant. Send a request with a Content-Length body that the server ignores, then check whether the next request on the same browser connection is treated as a new request. This is a distinct pattern from classic smuggling and the evidence shows it being reported separately.
Seen in 5 reports
-
When you find a cookie-setting header injection, try to set the cookie on the parent domain rather than the subdomain. If the application accepts it for the whole domain, the impact grows from a single subdomain to every subdomain, and that is worth showing explicitly in your report.
Seen in 4 reports
-
Look at HTTP/2 downgrade paths. If a front end accepts HTTP/2 and forwards HTTP/1.1 to the back end, send HTTP/2 requests with unusual header casing, pseudo-header values containing spaces or newline characters, and check how the front end converts them before forwarding. The evidence shows this working against Apache mod_proxy and proxies that downgrade.
Seen in 4 reports
-
Test password reset and newsletter flows with a modified Host header or X-Forwarded-Host. Request a reset and check whether the link in the email points at your host. If it does, that is host header injection with a clear path to account takeover, and it is one of the most commonly reported variants in this dataset.
Seen in 1 report