Skip to content
XSS Disclosed report Beginner

Reflected XSS in https://www.starbucks.com/account/create/redeem/MCP131XSR via xtl_amount, xtl_coupon_code, xtl_amount_type parameters

A Starbucks coupon redemption page reflected user-supplied parameter values into the page without proper encoding, allowing script injection. An attacker could craft a link that runs JavaScript in a victim's browser on the starbucks.com origin.

zl33t Follow

Originally disclosed on HackerOne

Medium 6.4 View original
  • Triaged in 8 hours
  • Fixed in 6 months
  • Paid in 3 months
  • Disclosed after 7 months

Summary by the program

zayn1337 discovered that the endpoint at https://www.starbucks.com/account/create/redeem/MCP131XSR was vulnerable to a reflected cross-site scripting vulnerability.

@zayn1337 — thank you for uncovering this vulnerability, your patience while we followed up on the issue and for confirming the resolution.

The report

HI,

Summary: Reflected XSS Description: the parameters are complementary to each other Platform(s) Affected: my browser firefox 52.7.3

Steps To Reproduce:

  1. go to https://www.starbucks.com/account/create/redeem/MCP131XSR?xtl_coupon_code=1&xtl_coupon_code=81431&xtl_amount=0.0&xtl_amount_type=DOLLAR_VALUE
  2. change parameter xtl_amount_type to </script><svg/onload=alert()>>note:if you go enter this the payload not work but!!!!! you changextl_coupon_codeandxtl_amount` payload will work
  3. change xtl_coupon_code and xtl_amount to any think

1.payload be like https://www.starbucks.com/account/create/redeem/MCP131XSR?xtl_coupon_code=1&xtl_coupon_code=hkjhkjh&xtl_amount=jhkjhj&xtl_amount_type=ayn%3C/script%3E%3Csvg/onload=alert(document%2edomain)%3E

Supporting Material/References:

zayn_xss.png
zayn_xss.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 ?

change xtl_coupon_code and xtl_amount payload will work In this bug the parameters are complementary to each other

Recommendations for fix

In this bug the parameters are complementary to each other try to retreat

Impact

  • The attacker can execute JS code.

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

Impact

An attacker could run JavaScript in a victim's browser on the starbucks.com origin, though the report gives no further detail on what that script could achieve.

What the attacker needed

Victim clicks a crafted link

The fix

The parameters should be properly encoded or validated before being written into the page; the report only offers a vague suggestion and does not state that a fix was applied.

How it was found

  1. Open the coupon redemption URL with the four coupon parameters set to normal values.
  2. Replace the xtl_amount_type value with a closing script tag followed by an SVG element carrying an onload handler.
  3. Also change xtl_coupon_code and xtl_amount to arbitrary values, because the payload only fires when those are altered too.
  4. Load the resulting URL and the injected handler runs in the browser.

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 website takes something from the address bar and puts it straight into the page, it can accidentally let an attacker slip in code. Here the coupon page echoed the coupon amount and type values back without cleaning them, so a crafted link could make the browser run the attacker's JavaScript as if Starbucks had written it. That script could then act on the site on the victim's behalf.

What is XSS?

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

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.