Skip to content
XSS Disclosed report Beginner

Reflected XSS on $Any$.myshopify.com/admin

A reflected cross-site scripting flaw existed in the admin authentication endpoint of any Shopify store, via the return_url parameter. An attacker could craft a link that, when visited, executes JavaScript in the context of the store's admin domain.

dr_dragon Follow

Originally disclosed on HackerOne

Bounty$1,500 High View original
  • Triaged in 6 hours
  • Fixed in 6 days
  • Paid in 10 days
  • Disclosed after 33 days

Description :

Hi, I have found a reflected cross site scripting vulnerability in <any>.myshopify.com/admin through return_url parameter .

Step to reproduce :

1-Go to https://<Any>.myshopify.com/admin/authenticate?return_url=javascript:alert(100)// 2-Click on reload this page 3-Xss alert message

Impact

Xss attack in <Any>.myshopify.com/admin

Attachments

1.PNG
1.PNG From the original on HackerOne
2.PNG
2.PNG

The original report as published on HackerOne, by dr_dragon. 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 return_url parameter was reflected into the page without proper validation or encoding, allowing a javascript: URL to execute.

Impact

An attacker could execute JavaScript in the context of a store's admin domain.

What the attacker needed

Visit the crafted admin authentication URL

How it was found

  1. Open the admin authentication URL with a javascript: value in the return_url parameter.
  2. Reload the page.
  3. Observe the JavaScript alert executing.

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) lets an attacker run their own JavaScript in a victim's browser on a trusted website. Here, a parameter called return_url was not checked properly, so a link could make the admin page run code.

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 dr_dragon

View all

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