Open redirect / Reflected XSS payload in root that affects all your sites (store.starbucks.* / shop.starbucks.* / teavana.com)
The report claims that several Starbucks and Teavana websites reflect a crafted URL parameter containing angle brackets and a javascript: URI, leading to reflected cross-site scripting (XSS) and open redirects. An attacker could execute arbitrary JavaScript in a victim's browser or redirect them to an arbitrary site.
Originally disclosed on HackerOne
- Triaged in 3 days
- Fixed in 16 days
- Paid in 4 days
- Disclosed after 5 months
Hello, during some open redirects testing, I have noticed a very strange redirect that occured when I had modified a parameter using something like >cofee. I have digged up further and then I have noticed that one can make a redirect by modifying GET parameters with this structure : <>//google.com
There seems to be a stripping of tags and after that some chained redirect, that will eventually trigger an XSS vulnerability if the payload is like : <>javascript:alert(document.cookie);.
So, based on this I have noticed that all your websites except the starbucks.* are vulnerable to an XSS payload that is written directly in the root URL or almost ANY other get parameter, thus making almost all the websites exploitable with multiple injection points (starbucks.* seems not affected)
POC EXAMPLES
https://shop.starbucks.de/<>javascript:alert(document.cookie);
https://teavana.com/<>javascript:alert(document.cookie);
https://store.starbucks.com/<>javascript:alert(document.cookie);
https://shop.starbucks.de/coffee/coffee,de_DE,sc.html?prefn1=decaffeinated&prefv1=<>javascript:alert('xss parameter');
https://shop.starbucks.de/coffee/coffee,de_DE,sc.html?prefn1=<>javascript:alert('xss parameter');
Bonus - open redirect example :
https://shop.starbucks.de/coffee/coffee,de_DE,sc.html?prefn1=decaffeinated&prefv1=<>//google.com
https://teavana.com/<>//google.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 application strips some characters but then uses the remaining input in a redirect or page output without proper encoding or validation.
What the attacker needed
Victim clicks a crafted link
How it was found
- Modify a GET parameter to include angle brackets and a javascript: URI.
- Load the crafted URL in a browser.
- Observe the JavaScript execution or redirect.
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.
The websites take part of the web address (the URL) and put it directly into the page without cleaning it properly. Because of that, a specially crafted link can make the browser run harmful code or send the user to another site. This is called cross-site scripting (XSS) and open redirect.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.