CRLF Injection
What is CRLF? :- When a browser sends a request toa web server, the web server answers back with a response containing both the HTTP response headers and the actual website content, i.e. the response body. The HTTP headers and the HTML response (the website content) are separated by a specific combination of special characters, namely a carriage return and a line feed. For short they are also known as CRLF . An example of CRLF Injection in a log file:- Imagine a log file in an admin panel with the output stream pattern of IP - Time - Visited Path, such as the below: 123.123.123.123 - 08:15 - /index.php?page=home If an attacker is able to inject the CRLF characters into the HTTP request he is able to change the output stream and fake the log entries. He can change the response from the webs application to something like the below: /index.php?page=home& %0d%0a 127.0.0.1 - 08:15 - /index.php?page=home&restrictedaction=edit HTTP Response Splitting :- Since t...