Get the App
SLTechnology News&Howtos  ›  Network Security  › 

CRLF injection vulnerability

Shulou Source: shulou.com Published: 2022-06-01 04:57:47 10月04日 Update

CRLF is the abbreviation of "enter + newline" (\ r\ n). In the HTTP protocol, HTTP Header and HTTP Body are separated by two CRLF, and the browser is based on these two CRLF (tested with payload% 0a%0d%0a%0d) to extract the HTTP content and display it. So, once we can control the characters in the HTTP header and inject some malicious line breaks, we can inject some session Cookie (http://www.xx.com%0a%0d%0a%0dSet-cookie:JSPSESSID%3Dxxx) or HTML code (http://www.xx.com/?url=%0a%0d%0a%0d)

), so CRLF Injection is also called HTTP Response Splitting, or HRS for short.

Repair recommendations:

Filter newline characters such as\ r and\ n to avoid contamination of input data to other HTTP headers.

Tags: Two code content characters that is suggestions malicious newline characters data browsers messages control pollution testing browsing input vulnerabilities Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information OPPO Reno Microsoft Apple Docker