Skip to content
XSS Disclosed report Beginner

XSS - URL Redirects

The admin page for adding URL redirects accepted a javascript: or data: URI as the redirect target, and clicking the resulting link executed script in the shop's domain. An attacker with admin access could run script in the context of the admin panel.

vlazeg Follow

Originally disclosed on HackerOne

Informational View original
  • Disclosed after 30 days

Hi! I found that https://[shop name].myshopify.com/admin/redirects is vulnerable to XSS To Reproduce:

  1. Click Add Url Redirect
  2. set page for redirect
  3. add redirects as:

javascript:alert(document.domain) or data:text/html;base64,PHNjcmlwdD5hbGVydCgiY29va2llIHN0ZWFsOiAiK2RvY3VtZW50LmNvb2tpZSk7d2luZG93LmxvY2F0aW9uLmhyZWY9J2h0dHA6Ly93d3cuZ29vZ2xlLmNvbSc7PC9zY3JpcHQ+ (XSS and URL redirect) 4. A new redirect link created 5. Click on link 6. XSS

Thanks Fr33d0m from vlazeg team

Attachments

inject_point.png
inject_point.png From the original on HackerOne
xss.png
xss.png

The original report as published on HackerOne, by vlazeg. 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

Impact

An attacker who can create redirects could run script in the shop admin context, but the report does not show how a non-admin would reach the link.

What the attacker needed

Access to the shop admin redirects page

How it was found

  1. Open the Add URL Redirect form in the shop admin.
  2. Choose the page to redirect.
  3. Enter a javascript: or data: URI as the redirect target.
  4. Save the new redirect.
  5. Click the created redirect link.
  6. Script runs in the shop domain.

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 URL redirect is a feature that sends visitors from one address to another. Here the redirect target was not checked, so a value starting with 'javascript:' or 'data:' was treated as a web address and run as code when clicked. This lets someone who can already edit redirects run their own script inside the shop's admin pages.

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.