Skip to content

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.

Back to the lesson 1 to 44 of 44
  1. The front end and back end use different rules for parsing request boundaries.

    Seen in 18 reports
  2. 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
  3. The Node.js HTTP parser does not reject malformed header names or values.

    Seen in 4 reports
  4. The front end ignores an obfuscated Transfer-Encoding header while the back end honours it.

    Seen in 3 reports
  5. The llhttp parser did not correctly parse multi-line Transfer-Encoding headers.

    Seen in 3 reports
  6. The llhttp parser did not strictly enforce the CRLF sequence as the header field delimiter.

    Seen in 3 reports
  7. The HTTP parser accepts whitespace between a header name and the colon, contrary to the specification, as seen in Squid.

    Seen in 2 reports
  8. urllib does not reject line breaks in URLs.

    Seen in 2 reports
  9. The llhttp parser did not properly handle edge cases in Transfer-Encoding header parsing.

    Seen in 2 reports
  10. Reset links are built from the Host header without validation.

    Seen in 1 report
  11. The HTTP parser normalises a carriage return in a header name to a hyphen instead of rejecting it.

    Seen in 1 report
  12. The HTTP parser accepts duplicate Transfer-Encoding headers and uses only the first.

    Seen in 1 report
  13. Chunk extension characters are not validated, allowing a newline.

    Seen in 1 report
  14. Transfer-Encoding is matched with a loose regular expression or substring instead of an exact token, as in WEBrick.

    Seen in 1 report
  15. 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
  16. The HTTP client does not reject or normalise unusual Unicode whitespace and line breaks in the request path.

    Seen in 1 report
  17. The legacy URL parser does not reject line breaks in the hostname.

    Seen in 1 report
  18. Caching of redirects combined with a parsing mismatch allows a smuggled request to poison the cache.

    Seen in 1 report
  19. The share URL field accepts a server address without validation.

    Seen in 1 report
  20. PHP cURL options are built from user input without validation.

    Seen in 1 report
  21. The nginx configuration is insecure.

    Seen in 1 report
  22. The script-src directive includes unsafe-inline.

    Seen in 1 report
  23. Load balancers and backends disagree on request boundaries when both Content-Length and Transfer-Encoding are present.

    Seen in 1 report
  24. Mobile app URI handling allows obfuscation.

    Seen in 1 report
  25. The reset password cookie accepts arbitrary values.

    Seen in 1 report
  26. 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
  27. The host_header action parameter lacked input validation, allowing CRLF characters into the Host header.

    Seen in 1 report
  28. There is a mismatch between how mod_proxy_ajp parses request boundaries and how the AJP backend interprets them.

    Seen in 1 report
  29. Apache failed to close the inbound connection when an error occurred while discarding the request body.

    Seen in 1 report
  30. An error while parsing trailer headers that exceed the size limit caused Tomcat to split one request into two.

    Seen in 1 report
  31. Tomcat's trailer parser skipped lines without a colon until it found a valid colon-separated header.

    Seen in 1 report
  32. 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
  33. The parser accepted a non-standard header block terminator instead of requiring the exact double carriage-return line-feed sequence.

    Seen in 1 report
  34. 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
  35. The SMTP request builder formatted sender and recipient addresses into protocol lines without rejecting or stripping carriage return and line feed.

    Seen in 1 report
  36. 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
  37. 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
  38. 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
  39. 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.

    Seen in 1 report
  40. The client IP option lacks input validation, allowing header injection through the PROXY protocol.

    Seen in 1 report
  41. 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
  42. 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
  43. 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
  44. 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