Skip to content
XSS Disclosed report Beginner

XSS in www.shopify.com/markets?utm_source=

A reflected cross-site scripting flaw existed in the utm_source parameter of the Shopify markets page, allowing an attacker to inject a script that executes in a victim's browser. An attacker could use a crafted link to steal cookies, create a phishing page, or bypass CSRF protections.

noblesix Follow

Originally disclosed on HackerOne

  • Triaged in 9 hours
  • Fixed in 7 days
  • Paid in 6 days
  • Disclosed after 34 days

Hello, hope you are having a good day :)

Summary:

I found a reflected XSS in www.shopify.com/markets using the utm_source parameter

Reflected XSS vulnerabilities arise when the application accepts a malicious input script from a user and then it is executed in the victim's browser. Since the XSS is reflected, the attacker has to trick the victim into executing the payload, usually using another website or by sending a specially crafted link

URL: https://www.shopify.com/markets
INJECTION POINT: utm_source parameter
PAYLOAD: injection%22%20style=%22animation-name:swoop-up%22%20onanimationstart=%22alert(document.domain)

Steps To Reproduce:

Visit this URL:

https://www.shopify.com/markets?utm_source=INJECTION%22%20style=%22animation-name:swoop-up%22%20onanimationstart=%22alert(document.domain)

By visiting that link you'll get an alert on your screen, that demonstrates the existence of the vulnerability.

Schermata_2022-09-14_alle_10.27.11.png
Schermata_2022-09-14_alle_10.27.11.png From the original on HackerOne

The attack is unauthenticated

Recommended Fix

Correctly escape special characters such as < > " ' based on the context where the string gets reflected.

Thank you.

Impact

An attacker could steal user cookies, create a trusted phishing page or bypass any CSRF protection mechanism.

The original report as published on HackerOne, by noblesix. 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 reflected the utm_source parameter into an HTML attribute without properly escaping double quotes and other special characters.

Impact

An attacker could steal user cookies, create a trusted phishing page or bypass any CSRF protection mechanism.

What the attacker needed

Victim clicks a crafted link; no authentication needed

How it was found

  1. Visit the Shopify markets page with a crafted utm_source value containing a quote, a style attribute, and an animation event handler.
  2. Observe that the injected JavaScript executes and an alert box appears.

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.

Cross-site scripting (XSS) is when a website takes text from a link and puts it into the page without cleaning it first. Here, the utm_source value was inserted into an HTML attribute, so adding a quote and an event handler made the browser run JavaScript. The attacker only needs to send a specially crafted link to the victim.

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