Skip to content
XSS Disclosed report Intermediate

Persistent XSS in www.starbucks.com

A script on a Starbucks page was loaded from an Elastic Beanstalk subdomain that was not registered, so an attacker could register it and serve malicious JavaScript. This would give persistent cross-site scripting on the Starbucks site.

ddworken Follow

Originally disclosed on HackerOne

  • Triaged in 17 days
  • Fixed in 37 days
  • Paid in 17 days
  • Disclosed after 42 days

There is a persistent XSS in

https://www.starbucks.com/coffee/espresso/latte-macchiato

It is caused by loading scripts from:

//starbucksmacchiato-prod.elasticbeanstalk.com/scripts/bn-v1.0.0-Release-min.js

Note that starbucksmacchiato-prod.elasticbeanstalk.com is not registered on elastic beanstalk. You can verify this by looking up the IP address for this subdomain and noting that it does not resolve. Through registering that domain on elastic beanstalk and deploying a webserver that responds to that request with javascript, an attacker could get a persistent XSS on Starbuck's website.

I have not registered that domain with Elastic Beanstalk since it would give me a large amount of information about the user's of Starbuck's website (and it would incur a large amount of traffic-more than I'd like to pay for on AWS!). If you would like me to do so, let me know but I do not want to go past the bounds of acceptable testing.

Thanks, David Dworken

The original report as published on HackerOne, by ddworken. 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

The page referenced a third-party script from an Elastic Beanstalk subdomain that was not registered, allowing an attacker to claim it and serve arbitrary JavaScript.

Impact

An attacker could run arbitrary JavaScript in the context of the Starbucks site for visitors of that page, potentially accessing user information, though the reporter did not actually register the domain to confirm exploitation.

What the attacker needed

Attacker registers the unclaimed subdomain; victim visits the affected page

The fix

The page should not load scripts from an unregistered third-party domain.

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.

A web page was loading a piece of code (a script) from a web address that nobody owned. Anyone could claim that address and put their own code there, which would then run for every visitor to the Starbucks page. This is called cross-site scripting because the attacker's code runs as if it came from Starbucks.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by ddworken

View all

18 more disclosed reports, best first.

More from Starbucks

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.