Skip to content
Smuggling / CRLF Disclosed report Beginner

CRLF Inection at `██████████`

A URL parameter on the site was not sanitised, so carriage return and line feed characters supplied by the user were reflected into the HTTP response headers. An attacker could use this to inject extra headers or split the response, which the reporter says could lead to cross-site scripting, open redirects or response splitting.

mo3giza Follow

Originally disclosed on HackerOne

  • Disclosed after 2 months

Summary by the program

A CRLF injection vulnerability was present in the website ██████████. This vulnerability occurs when a website or application fails to properly sanitize or encode user-supplied data that contains carriage return and line feed (CRLF) sequences. The attacker can leverage this vulnerability to inject malicious headers or content into the application's responses.

The report

Summary:

A CRLF Injection attack occurs when a user manages to submit a CRLF into an application. This is most commonly done by modifying an HTTP parameter or URL.

Steps To Reproduce:

Navigate to this URL █████:

┌──(azab㉿kali)-[~]
└─$ curl -i ███████ 
HTTP/1.1 307 Temporary Redirect
Date: █████ █████████ GMT
Content-Type: text/html
Content-Length: 164
Connection: keep-alive
Server: nginx
Location: ████████
Set-Cookie: CRLF_Injection_By_ze2pac

<html>
<head><title>307 Temporary Redirect</title></head>
<body>
<center><h1>307 Temporary Redirect</h1></center>
<hr><center>nginx</center>
</body>
</html>

Impact

XSS, Open Redirect, HTTP Response Splitting... etc.

The original report as published on HackerOne, by mo3giza. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 application placed user-controlled input from a URL parameter into a response header without stripping carriage return and line feed characters.

Impact

The reporter claims this could enable cross-site scripting, open redirects or HTTP response splitting, though the shown response only demonstrates an injected cookie header.

What the attacker needed

Ability to send a crafted request to the URL

How it was found

  1. Send a request to the affected URL with a crafted parameter.
  2. Observe the server's redirect response and its headers.
  3. Note that an injected Set-Cookie header appears in the response.

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 separate their reply into a header section and a body section using special line-break characters. If a site copies something you typed into that header section without cleaning it, you can add your own line breaks and sneak in extra headers. Here the tester showed that a cookie header of their choosing appeared in the server's reply.

What is Smuggling / CRLF?

A front end and a back end split one connection's bytes into requests differently, letting an attacker hide a request inside another user's.

More by mo3giza

View all

1 more disclosed report, best first.

More from Mars

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Request smuggling and header injection

The lesson behind this report.

A front end and a back end split one connection's bytes into requests differently, letting an attacker hide a request inside another user's.