Skip to content
XSS Disclosed report Beginner

Reflected Cross site Scripting (XSS) on www.starbucks.com

The sign-in page's ReturnUrl parameter was reflected into the page without proper escaping, so a crafted link could run script in the victim's browser after they logged in. An attacker could use this to execute JavaScript in the context of the victim's Starbucks account.

cujanovic Follow

Originally disclosed on HackerOne

Medium 4.8 View original
  • Triaged in 11 hours
  • Fixed in 4 months
  • Paid in 14 days
  • Disclosed after 4 months

Summary: Reflected Cross site Scripting (XSS) on https://www.starbucks.com/account/signin?ReturnUrl

Description: The attacker can execute javascript on the victims account just after the authentication process.

Platform(s) Affected: www.starbucks.com www.starbucks.ca www.starbucks.com.br www.starbucks.co.uk www.starbucks.de www.starbucks.fr

Steps To Reproduce:

  1. Open the url: https://www.starbucks.com/account/signin?ReturnUrl=%19Jav%09asc%09ript%3ahttps%20%3a%2f%2fwww%2estarbucks%2ecom%2f%250Aalert%2528document.domain%2529
  2. Login
  3. The JS will execute on users(victims) account.

Supporting Material/References:

Screenshot:

Screenshot_20181109_150007.png
Screenshot_20181109_150007.png From the original on HackerOne

How can the system be exploited with this bug?

The attacker can execute JS code.

How did you come across this bug ?

I was testing for open redirect vulnerability.

Recommendations for fix

Content based escaping on the users input, in this case the redirect parameter.

Impact

The attacker can execute JS code.

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

Likely the ReturnUrl parameter was reflected into the page without content-based escaping, allowing a javascript: value to be executed.

Impact

An attacker could execute JavaScript in the victim's account after authentication, though the report gives no further detail on what that script could achieve.

What the attacker needed

Victim clicks a crafted link; victim logs in

How it was found

  1. Open the crafted sign-in URL containing the manipulated ReturnUrl value.
  2. Log in to the account.
  3. The injected JavaScript runs in the victim's account.

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 you sign in, the site can send you back to a page you asked for using a value in the web address. Here that value was placed into the page without being made safe, so a link could carry hidden code that the browser runs. That lets an attacker run their own code as if it were part of the Starbucks site.

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 cujanovic

View all

4 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.