Skip to content

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.

Back to the lesson 1 to 28 of 28
  1. Reject or strip carriage return and line feed characters from all values written into protocol lines.

    Seen in 26 reports
  2. Make front end and back end agree on request boundaries and reject ambiguous requests.

    Seen in 18 reports
  3. Reject requests with both Transfer-Encoding and Content-Length, and reject malformed or multi-line Transfer-Encoding headers.

    Seen in 7 reports
  4. Strip carriage return and line feed characters from user input before placing it in a response header, including redirect handling.

    Seen in 6 reports
  5. Enforce strict CRLF delimiters and reject non-standard header block terminators.

    Seen in 5 reports
  6. Reject malformed header names and values instead of normalising them.

    Seen in 3 reports
  7. Do not cache redirects that depend on request headers.

    Seen in 3 reports
  8. Sanitise or encode CRLF characters in the request path before reflecting it into response headers.

    Seen in 2 reports
  9. Strip CR and LF from query-string values before inserting them into response headers.

    Seen in 2 reports
  10. Reject or normalise unusual Unicode whitespace and line breaks in URLs.

    Seen in 2 reports
  11. Reject line breaks in URLs passed to urllib.

    Seen in 2 reports
  12. Reject trailer lines that lack a colon and enforce the trailer size limit.

    Seen in 2 reports
  13. Validate the Host header and forwarded host headers against an allowlist before using them in links or redirects.

    Seen in 1 report
  14. Build reset links from a configured host rather than the Host header.

    Seen in 1 report
  15. Reject duplicate Transfer-Encoding headers.

    Seen in 1 report
  16. Validate characters in chunk extensions.

    Seen in 1 report
  17. Require an exact, valid Transfer-Encoding token instead of a substring match.

    Seen in 1 report
  18. Reject spaces in HTTP/2 pseudo-header values before downgrading.

    Seen in 1 report
  19. Validate the server address in share URL fields.

    Seen in 1 report
  20. Validate values passed into PHP cURL options.

    Seen in 1 report
  21. Review nginx configuration for header reflection.

    Seen in 1 report
  22. Remove unsafe-inline from script-src.

    Seen in 1 report
  23. Reject whitespace between header names and colons.

    Seen in 1 report
  24. Do not accept arbitrary values in the reset password cookie.

    Seen in 1 report
  25. Do not reuse data from a previous request when building an error response for an incomplete POST.

    Seen in 1 report
  26. Close the inbound connection when an error occurs while discarding the request body.

    Seen in 1 report
  27. Check the chunked flag before the Content-Length body in proxy response handling.

    Seen in 1 report
  28. Reject empty HTTP header field names.

    Seen in 1 report