Reflected XSS on Starbucks
A reflected cross-site scripting vulnerability was found in the 'namespaces' parameter of the Starbucks Hong Kong online store. An attacker could inject a script that executes in a victim's browser, potentially stealing data or performing actions on their behalf.
Published on medium.com
“Welcome back. Today, our writupe is about a vulnerability I found: a reflected cross-site scripting (XSS) bug on the Starbucks online store.”
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the 'namespaces' parameter was reflected in the response without proper output encoding or sanitisation, and the site lacked a Content-Security-Policy header.
Impact
An attacker could execute arbitrary JavaScript in a victim's browser, potentially leading to data theft or actions performed on behalf of the user, though the report does not demonstrate specific exploitation beyond a proof-of-concept alert.
What the attacker needed
Victim clicks a crafted link; no authentication needed
The fix
The vulnerability was fixed by the Starbucks security team, as confirmed by a retest.
How it was found
- Find the Hong Kong online store domain using a search engine dork.
- Use a URL discovery tool to gather old and forgotten links on the site.
- Filter the list to remove duplicates and uninteresting pages.
- Test each URL for reflected parameters.
- Identify the 'namespaces' parameter as reflecting input.
- Inject a script payload into the parameter and observe the pop-up, confirming 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 write-up has not been written yet. The Original tab links to the source.
Cross-site scripting (XSS) is a type of security flaw where a website lets an attacker sneak harmful code into a page that other people view. When someone visits the page, the code runs in their browser, which can let the attacker steal information or act as that person. This report shows a 'reflected' XSS, where the malicious code is sent in a link and bounced back to the victim's page.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.