CRLF injection in info.hacker.one
The report claims that the info.hacker.one server reflects CRLF sequences from the request path into the Location header of a redirect response, allowing an attacker to inject arbitrary HTTP headers. The author states this could enable response splitting attacks such as cache poisoning or cross-site scripting, though no such exploitation is demonstrated.
Originally disclosed on HackerOne
- Fixed in 5 days
- Disclosed after 35 days
Vulnerable URL: info.hacker.one
Vulnerability description This script is possibly vulnerable to CRLF injection attacks.
HTTP headers have the structure "Key: Value", where each line is separated by the CRLF combination. If the user input is injected into the value section without properly escaping/removing CRLF characters it is possible to alter the HTTP headers structure. HTTP Response Splitting is a new application attack technique which enables various new attacks such as web cache poisoning, cross user defacement, hijacking pages with sensitive user information and cross-site scripting (XSS). The attacker sends a single HTTP request that forces the web server to form an output stream, which is then interpreted by the target as two HTTP responses instead of one response.
URI was set to headername: headervalue Injected header found:
headername: headervalue
Request GET /%0d%0a%09headername:%20headervalue HTTP/1.1 Host: info.hacker.one Connection: Keep-alive Accept-Encoding: gzip,deflate User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.21 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.21 Accept: /
Response HTTP/1.1 301 Moved Permanently Date: Wed, 29 Mar 2017 18:11:47 GMT Location: http://info.hacker.one/ headername: headervalue/ P3P: CP="This is not a privacy policy." X-Powered-By: Page Server II 2.1.117 bab5965 X-Server-Instance: ps2-07ebf0a99d.ap-southeast-1.unbounce.net Content-Length: 0 Connection: keep-alive
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server decoded percent-encoded CRLF characters in the request path and placed them unescaped into the Location header of a redirect.
Impact
The author claims this could lead to web cache poisoning, cross-user defacement, hijacking of pages with sensitive information, or cross-site scripting, but no such exploitation is shown.
What the attacker needed
None
How it was found
- Send a request to the host with encoded CRLF characters and a header name/value in the path.
- Observe the redirect response containing the injected header.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Web servers send responses made of lines, and each line ends with two invisible characters called CR and LF. If a server copies part of the request into a response without removing those characters, an attacker can sneak in extra lines and add their own headers. This report shows that happening but does not prove any real harm.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.