[account-global.ubnt.com] CRLF Injection
A redirect endpoint reflected unescaped carriage-return and line-feed characters from the URL path into the Location response header. An attacker could inject arbitrary response headers, such as a cookie scoped to the parent domain, which could then be combined with other flaws like cookie-based XSS or CSRF bypass.
- Triaged in 4 months
- Fixed in 7 months
- Paid in 7 months
- Disclosed after 9 months
PoC (any browser except FireFox):
http://account-global.ubnt.com/%3f%0dSet-Cookie:crlf=injection%3bdomain=.ubnt.com%3b
HTTP Response:
HTTP/1.1 302 Found
Content-Type: text/html; charset=iso-8859-1
Date: Thu, 16 Jun 2016 09:59:15 GMT
Location: https://account-global.ubnt.com/index.html? <= injection \r
Set-Cookie:crlf=injection;domain=.ubnt.com;
This vulnerability could be used in combination with others. For example, XSS via Cookie, session fixation or bypass Double-Submit Cookie CSRF protection.
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 the request path into the Location header without stripping carriage-return and line-feed characters, allowing header injection.
Impact
An attacker could inject response headers, potentially setting cookies for the parent domain that could be chained with other issues such as cookie-based XSS, session fixation or bypassing double-submit cookie CSRF protection; the report notes the behaviour was observed in browsers other than Firefox.
What the attacker needed
Victim visits a crafted link; browser other than Firefox
How it was found
- Send a request to the account-global host with encoded CRLF and a Set-Cookie header embedded in the path.
- Observe the 302 response where the injected characters split the Location header and add a new Set-Cookie 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.
When a web server sends a response, it starts with a set of headers, which are lines of text ending in special newline characters. If a site copies part of the URL into a header without removing those newline characters, an attacker can sneak in extra header lines of their own. Here that let the attacker set a cookie for the whole parent domain, which can be abused together with other weaknesses.
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.