In-depth lesson · Smuggling / CRLF
Typical fixes
Every point the Smuggling / CRLF reports back under this heading, best-backed first, each with the reports it is seen in.
-
Reject or strip carriage return and line feed characters from all values written into protocol lines.
Seen in 26 reports
-
Make front end and back end agree on request boundaries and reject ambiguous requests.
Seen in 18 reports
-
Reject requests with both Transfer-Encoding and Content-Length, and reject malformed or multi-line Transfer-Encoding headers.
Seen in 7 reports
-
Strip carriage return and line feed characters from user input before placing it in a response header, including redirect handling.
Seen in 6 reports
-
Enforce strict CRLF delimiters and reject non-standard header block terminators.
Seen in 5 reports
-
Reject malformed header names and values instead of normalising them.
Seen in 3 reports
-
Do not cache redirects that depend on request headers.
Seen in 3 reports
-
Sanitise or encode CRLF characters in the request path before reflecting it into response headers.
Seen in 2 reports
-
Strip CR and LF from query-string values before inserting them into response headers.
Seen in 2 reports
-
Medium -
Medium
-
-
Reject or normalise unusual Unicode whitespace and line breaks in URLs.
Seen in 2 reports
-
Reject line breaks in URLs passed to urllib.
Seen in 2 reports
-
Reject trailer lines that lack a colon and enforce the trailer size limit.
Seen in 2 reports
-
Validate the Host header and forwarded host headers against an allowlist before using them in links or redirects.
Seen in 1 report
-
Build reset links from a configured host rather than the Host header.
Seen in 1 report
-
Reject duplicate Transfer-Encoding headers.
Seen in 1 report
-
Validate characters in chunk extensions.
Seen in 1 report
-
Require an exact, valid Transfer-Encoding token instead of a substring match.
Seen in 1 report
-
Reject spaces in HTTP/2 pseudo-header values before downgrading.
Seen in 1 report
-
Validate the server address in share URL fields.
Seen in 1 report
-
Validate values passed into PHP cURL options.
Seen in 1 report
-
Review nginx configuration for header reflection.
Seen in 1 report
-
Remove unsafe-inline from script-src.
Seen in 1 report
-
Reject whitespace between header names and colons.
Seen in 1 report
-
Do not accept arbitrary values in the reset password cookie.
Seen in 1 report
-
Do not reuse data from a previous request when building an error response for an incomplete POST.
Seen in 1 report
-
Close the inbound connection when an error occurs while discarding the request body.
Seen in 1 report
-
$4,000 High
-
-
Check the chunked flag before the Content-Length body in proxy response handling.
Seen in 1 report
-
Reject empty HTTP header field names.
Seen in 1 report