[www.*.myshopify.com] CRLF Injection
A CRLF injection in the Request-URI allowed an attacker to inject a Set-Cookie header into the HTTP response, setting a cookie for the entire myshopify.com domain.
- Triaged in 2 days
- Fixed in 3 days
- Paid in 3 days
- Disclosed after 3 days
CRLF Injection via Request-URI
PoC: http://www.myshopify.com/xxcrlftest%0aSet-Cookie:test=test3;domain=.myshopify.com; https://www.blackfan.myshopify.com/xxx%0aSet-Cookie:test=test2;domain=.myshopify.com;
HTTP Response:
HTTP/1.1 302 Moved Temporarily
...
Location: http://myshopify.com/xxcrlftest
Set-Cookie:test=test;domain=.myshopify.com;
Result: Creating a cookie-param "test=test" on *.myshopify.com
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 failed to sanitise newline characters in the Request-URI before using it in the Location header, allowing header injection.
What the attacker needed
None
How it was found
- Send a request to a myshopify.com subdomain with a URL containing encoded newline characters followed by a Set-Cookie header.
- Observe the HTTP response containing the injected 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 builds a response, it uses the URL you requested. If it doesn't clean the URL properly, an attacker can sneak in special newline characters that make the server think the attacker is adding extra instructions, like setting a cookie. Here, that let the attacker set a cookie that would be sent to every Shopify subdomain.
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.