QID 153001
Date Published: 2023-07-14
QID 153001: Ruby on Rails - HTTP Response Splitting (CRLF Injection)
HTTP Response Splitting attacks occur when the server-side application embeds user-supplied data in HTTP response headers. When a user manages to submit a CRLF - Carriage Return (%0d or \r) Line Feed (%0a or \n) characters into an application by modifying an HTTP parameter or URL. Example: An application that embeds user-supplied data in the Location header of a redirection response and an application that embeds user-supplied data in a cookie value.
As a result of an HTTP Response Splitting attack, user-supplied data becomes part of the HTTP response headers, and can facilitate several attacks including HTML injection, cross-site scripting, web cache poisoning, hijacking pages with user-specific information, and browser cache poisoning.
Solution
Any data from the client side should be URL-encoded before inclusion into HTTP Response headers. Carriage return and line feed characters should be rejected as well.
Vendor References
CVEs related to QID 153001
Software Advisories
| Advisory ID | Software | Component | Link |
|---|