Skip to content
Open redirect Disclosed report Beginner

Open Redirect possible in https://www.shopify.com/admin/

The Shopify admin redirect endpoint built its destination from the last_shop cookie without validating the value, so an attacker could craft a cookie pointing to any domain and cause a redirect there. This allowed an open redirect from a trusted Shopify URL.

jamesclyde Follow

Originally disclosed on HackerOne

  • Triaged in 17 hours
  • Fixed in 8 days
  • Paid in 11 days
  • Disclosed after 10 days

Summary by the program

To allow documentation pages to provide convenient links to shops' admin pages, requests to https://www.shopify.com/admin/* redirect the user to https://<shop-name>.myshopify.com/admin/*, where <shop-name> is filled in based on the value of the last_shop cookie.

Because input validation was missing, any last_shop value would be accepted, thereby allowing an open redirect to any domain.

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

The redirect target was built directly from the user-controlled last_shop cookie without validating that it was a legitimate shop name.

Impact

An attacker could use a trusted Shopify admin URL to redirect victims to any domain.

What the attacker needed

Attacker can set the last_shop cookie; victim follows 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.

An open redirect is when a trusted website sends you to another site chosen by the person who made the link. Here, Shopify used a cookie called last_shop to decide which shop's admin page to send you to, but it did not check that the cookie contained a real shop name. By setting that cookie to an outside address, someone could make a Shopify link take you to a malicious site.

What is Open redirect?

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.

More by jamesclyde

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.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.