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.
- 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:
- 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
- change parameter
xtl_amount_typeto </script><svg/onload=alert()>>note:if you go enter this the payload not work but!!!!! you changextl_coupon_codeandxtl_amount` payload will work - change
xtl_coupon_codeandxtl_amountto any think
Supporting Material/References:

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.
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
- Open the coupon redemption URL with the four coupon parameters set to normal values.
- Replace the xtl_amount_type value with a closing script tag followed by an SVG element carrying an onload handler.
- Also change xtl_coupon_code and xtl_amount to arbitrary values, because the payload only fires when those are altered too.
- 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.