In-depth lesson · Smuggling / CRLF
Root causes
Every point the Smuggling / CRLF reports back under this heading, best-backed first, each with the reports it is seen in.
-
The front end and back end use different rules for parsing request boundaries.
Seen in 18 reports
-
User input is placed into a response header without stripping carriage return and line feed characters, including via redirect handling, the request path and query-string values.
Seen in 7 reports
-
The Node.js HTTP parser does not reject malformed header names or values.
Seen in 4 reports
-
The front end ignores an obfuscated Transfer-Encoding header while the back end honours it.
Seen in 3 reports
-
The llhttp parser did not correctly parse multi-line Transfer-Encoding headers.
Seen in 3 reports
-
The llhttp parser did not strictly enforce the CRLF sequence as the header field delimiter.
Seen in 3 reports
-
The HTTP parser accepts whitespace between a header name and the colon, contrary to the specification, as seen in Squid.
Seen in 2 reports
-
urllib does not reject line breaks in URLs.
Seen in 2 reports
-
The llhttp parser did not properly handle edge cases in Transfer-Encoding header parsing.
Seen in 2 reports
-
Reset links are built from the Host header without validation.
Seen in 1 report
-
The HTTP parser normalises a carriage return in a header name to a hyphen instead of rejecting it.
Seen in 1 report
-
The HTTP parser accepts duplicate Transfer-Encoding headers and uses only the first.
Seen in 1 report
-
Chunk extension characters are not validated, allowing a newline.
Seen in 1 report
-
Transfer-Encoding is matched with a loose regular expression or substring instead of an exact token, as in WEBrick.
Seen in 1 report
-
HTTP/2 pseudo-header values are not rejected when they contain spaces, including the method pseudo-header in Apache mod_proxy.
Seen in 1 report
-
The HTTP client does not reject or normalise unusual Unicode whitespace and line breaks in the request path.
Seen in 1 report
-
Medium
-
-
The legacy URL parser does not reject line breaks in the hostname.
Seen in 1 report
-
Caching of redirects combined with a parsing mismatch allows a smuggled request to poison the cache.
Seen in 1 report
-
The share URL field accepts a server address without validation.
Seen in 1 report
-
PHP cURL options are built from user input without validation.
Seen in 1 report
-
The nginx configuration is insecure.
Seen in 1 report
-
The script-src directive includes unsafe-inline.
Seen in 1 report
-
Load balancers and backends disagree on request boundaries when both Content-Length and Transfer-Encoding are present.
Seen in 1 report
-
Mobile app URI handling allows obfuscation.
Seen in 1 report
-
The reset password cookie accepts arbitrary values.
Seen in 1 report
-
String manipulation functions in the ruleset engine did not sanitise or reject hexadecimal escape sequences that decode to carriage return and line feed.
Seen in 1 report
-
The host_header action parameter lacked input validation, allowing CRLF characters into the Host header.
Seen in 1 report
-
There is a mismatch between how mod_proxy_ajp parses request boundaries and how the AJP backend interprets them.
Seen in 1 report
-
Apache failed to close the inbound connection when an error occurred while discarding the request body.
Seen in 1 report
-
$4,000 High
-
-
An error while parsing trailer headers that exceed the size limit caused Tomcat to split one request into two.
Seen in 1 report
-
$4,660 High
-
-
Tomcat's trailer parser skipped lines without a colon until it found a valid colon-separated header.
Seen in 1 report
-
The server did not correctly process the Content-Length of incomplete POST requests, so an error response reused data from a previous request.
Seen in 1 report
-
The parser accepted a non-standard header block terminator instead of requiring the exact double carriage-return line-feed sequence.
Seen in 1 report
-
The add2list function did not check for carriage return or line feed before passing the header value to the list append function.
Seen in 1 report
-
The SMTP request builder formatted sender and recipient addresses into protocol lines without rejecting or stripping carriage return and line feed.
-
curl's HTTP request handling did not remove or reject a Content-Length header when a Transfer-Encoding header was also present.
Seen in 1 report
-
The header conversion code appended raw QPACK header values to an internal buffer without checking for carriage return or line feed.
Seen in 1 report
-
The response-handling loop tested for a Content-Length body before checking the chunked flag, so it stopped at the short Content-Length and never ran the chunked parser.
Seen in 1 report
-
A chunked-upload flag is not reset when a redirect switches the protocol from HTTP/1.1 to HTTP/2, so header-setting code still adds the chunked transfer-encoding header.
-
The client IP option lacks input validation, allowing header injection through the PROXY protocol.
Seen in 1 report
-
The response status-line parser accepts a second carriage return even when the lenient flag is unset, unlike the request path which only accepts a line feed.
Seen in 1 report
-
The connection token parser accepts comma, space, carriage return and line feed after close but not a tab, and the tab fallback drops the pending close state.
Seen in 1 report
-
The proxy did not restrict HTTP/1 upgrade requests to WebSocket only, so it forwarded h2c upgrades and treated the upgraded connection as a filter-bypassing tunnel.
Seen in 1 report
-
Input was sanitised before a later unescape call turned an escaped sequence into a real carriage return, and no downstream component removed the lone carriage return.
Seen in 1 report