CRLF injection
CRLF refers to the special character blocks carriage return and line feed. They are embedded as part of HTTP headers, MIME (emails), and NNTP (news groups) to help split text streams into discrete elements. Attackers use specifically designed words with CRLF injections that can confuse the web application by executing harmful commands in a vulnerable component of the application.
CRLF injection can lead to serious security threats including XSS, proxy, and cache spoil, and can hijack an active user session or control the client's web browsers.
CRLF injection attacks can be controlled by thoroughly validating the user's input and ensuring the encoding is applied on request and response by including HTTP headers to the request/response. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access