DOM XSS on teavana.com via "pr_zip_location" parameter
A DOM-based cross-site scripting flaw existed on teavana.com because the pr_zip_location URL parameter was used to build a script path without sanitisation. An attacker could craft a link that runs arbitrary JavaScript in the victim's browser on the teavana.com domain, which the reporter says could lead to theft of customer account data and account takeover.
Originally disclosed on HackerOne
- Triaged in 8 days
- Fixed in 24 days
- Paid in 8 days
- Disclosed after 2 months
Hello Starbucks team,,
I've discovered DOM XSS on teavana.com involving pr_zip_location URL parameter. PoC:
Works in all major browsers. Vulnerable code is in full.js:
var DR = Z(DS) + "/content/" + k(DQ) + "/contents.js";
That allows to execute absolutely arbitrary javascript in the context on teavana.com domain. As described in #202011 that directly leads to theft of customer account data and account takeover, hence I set severity to Critical.
Also, I have discovered a number of other XSS attacks on similar pages, involving other parameters and sinks. Should I submit them all as individual bug reports?
Thanks.
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 pr_zip_location parameter was concatenated into a script URL in full.js without validation, allowing an attacker-controlled path to be loaded as JavaScript.
Impact
The reporter claims this could lead to theft of customer account data and account takeover, and states it works in all major browsers.
What the attacker needed
Victim clicks a crafted link
How it was found
- Open a product page on teavana.com.
- Add the pr_zip_location parameter with a value pointing to an attacker-controlled script path.
- Load the crafted URL in a browser to trigger the DOM XSS.
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.
Cross-site scripting (XSS) is when a website takes input from a URL or form and puts it into the page without cleaning it, so an attacker's code runs as if it came from the site. Here the page read a value from the address bar and used it to load a script file, so a crafted link could load the attacker's script instead. Because the script runs on the real site's domain, it can read things the site would normally keep private, such as a logged-in user's data.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.