Skip to content
XSS Disclosed report Beginner

Reflected XSS in chat

A parameter on the Shopify live chat start page was reflected into the page without proper encoding. An attacker could craft a link that runs script in the victim's browser after the victim clicks the start chat button.

skavans Follow

Originally disclosed on HackerOne

  • Triaged in 21 days
  • Fixed in 41 days
  • Paid in 41 days
  • Disclosed after 41 days

https://livechat.shopify.com/customer/chats/new?chat%5Bemail%5D=mymail%40mail.com&chat%5Bname%5D=My+Name&utm_source=partner&chat%5Btags%5D=123%27%5D%29;alert%281%29;//&chat%5Bmetadata%5D%5Bshop_id%5D=90909090%22

Vulnerable param is chat[tags]. If fill it with 123']);alert(1);// the XSS fill fire after click "Start chat@ button (screen).

Attachments

______________2015-07-02___2.40.02.png
______________2015-07-02___2.40.02.png From the original on HackerOne

The original report as published on HackerOne, by skavans. 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 chat tags parameter was inserted into the page without correct output encoding, so characters that end a script context were treated as code.

Impact

An attacker could run script in a victim's browser on the Shopify live chat domain, but only after the victim opened a crafted link and clicked the start chat button.

What the attacker needed

Victim opens a crafted link; victim clicks the start chat button

How it was found

  1. Open the live chat start page with a crafted chat tags value in the URL.
  2. Click the start chat button.
  3. The script in the tags value 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.

A reflected cross-site scripting bug means text you put in a web address is echoed back into the page as if it were code. Here the chat tags value was placed into the page in a way that let it run as a script. The script only ran once the visitor pressed the button to start the chat, so a victim would need to open a crafted link and click that button.

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 skavans

View all

8 more disclosed reports, best first.

More from Shopify

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.