Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

CRLF injection vulnerability

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report