Skip to content
XSS Disclosed report Intermediate

Dom Based Xss DIV.innerHTML parameters store.starbucks*

A DOM-based cross-site scripting flaw existed on Starbucks store subdomains because the page read the URL fragment and inserted it into the page through jQuery's HTML insertion, allowing script execution. An attacker could craft a link that runs arbitrary JavaScript in the victim's browser on the store's domain.

e3xpl0it Follow

Originally disclosed on HackerOne

  • Triaged in 19 days
  • Fixed in 31 days
  • Paid in 19 days
  • Disclosed after 39 days

Hi! this subdomain store.starbucks* vulnerable to dom based xss. you are using the vulnerable library jQuery.V1_10_1 parameters location.hash DIV.innerHTML . Vulnerable all subdomains store.starbucks* It works Chrome,and IE 11 the current version POC http://shop.starbucks.de/on/demandware.store/Sites-StarbucksDE-Site/de_DE/Default-Start?#a.remote[href$=<img onerror="alert(document.domain)" src=x.jpg"/> http://store.starbucks.ca/on/demandware.store/Sites-StarbucksDE-Site/de_DE/Default-Start?#a.remote[href$=<img onerror="alert(document.domain)" src=x.jpg"/> http://store.starbucks.fr/on/demandware.store/Sites-StarbucksDE-Site/de_DE/Default-Start?#a.remote[href$=<img onerror="alert(document.domain)" src=x.jpg"/> http://store.starbucks.co.uk/on/demandware.store/Sites-StarbucksDE-Site/de_DE/Default-Start?#a.remote[href$=<img onerror="alert(document.domain)" src=x.jpg"/>

Attachments

store.starbucks.de-dom_xss.jpg
store.starbucks.de-dom_xss.jpg From the original on HackerOne
store.starbucks.co.uk_-dom_xss.jpg
store.starbucks.co.uk_-dom_xss.jpg

The original report as published on HackerOne, by e3xpl0it. 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 application used the URL fragment (location.hash) as input to a jQuery HTML insertion sink (DIV.innerHTML) without sanitising it, and the bundled jQuery version was vulnerable.

Impact

An attacker could run arbitrary JavaScript on the store subdomain; the report only demonstrates an alert.

What the attacker needed

Victim opens a crafted link

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.

The page took part of the web address after the # symbol and placed it directly into the page's HTML without cleaning it. Because the address can be controlled by anyone who sends a link, an attacker could make the page run their own JavaScript. That script would run as if it came from the store's website, so it could read or change things the user sees there.

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 e3xpl0it

View all

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