Skip to content
Open redirect Disclosed report Beginner

Open redirect using theme install

The Shopify theme preview endpoint accepted a domain_name parameter and redirected the user to that domain with /admin appended, without validating the destination. An attacker could craft a link that sends victims to a malicious site, aiding phishing.

blinkms Follow

Originally disclosed on HackerOne

  • Triaged in 7 hours
  • Fixed in 9 days
  • Paid in 19 days
  • Disclosed after 20 days

Summary by the researcher

An open redirection leading to domainname.tld/admin has been identified .

The report

An open redirect is an application that takes a parameter and redirects a user to the parameter value without any validation. This vulnerability is used in phishing attacks to get users to visit malicious sites without realizing it.

Vulnerable Endpoint - https://app.shopify.com/services/google/themes/preview/supply--blue?domain_name=example.com Impact - Medium CVSS - 6.5

Proof of concept :-

[1] Go to https://app.shopify.com/services/google/themes/preview/supply--blue?domain_name=example.com [2] You will be redirected to http://example.com/admin [3] I can host a site where /admin is not 404 {not valid page } , This can lead and increase risk of phisiing attacks & so on .

The original report as published on HackerOne, by blinkms. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 5 min read.

What the report shows

The report concerns an open redirect on a Shopify endpoint that serves theme previews. The researcher describes the vulnerable endpoint as:

Text
https://app.shopify.com/services/google/themes/preview/supply--blue?domain_name=example.com

The feature takes a domain_name parameter and, according to the report, redirects the visitor to that value without any validation. The researcher rates the impact as Medium and gives a CVSS score of 6.5.

The proof of concept is short and consists of three steps:

  1. Go to the URL above.
  2. You will be redirected to http://example.com/admin.
  3. The researcher notes that they can host a site where /admin is not a 404 (not a valid page), which they say increases the risk of phishing attacks and so on.

The summary frames the issue as an open redirection leading to domainname.tld/admin. The report does not describe a fix, a bounty amount or a timeline, and it does not include any request or response beyond the URL itself.

Root cause

The report describes the parameter being used to redirect without any validation. In the reported behaviour the value example.com results in a redirect to http://example.com/admin. The report does not show the server response or the exact redirect header, so the precise construction (whether the scheme and host are taken wholesale from the parameter or assembled from it) is not documented.

Impact

The researcher's stated impact is an increased risk of phishing attacks. The report adds that the researcher can host a site where /admin is not a 404. The report hedges this as an increased risk of phishing "and so on"; it does not demonstrate credential theft, token leakage or any other concrete consequence.

How this kind of bug works

An open redirect exists when an application accepts a destination from the request and issues a redirect to it without constraining where it points. The browser trusts the redirect because it comes from the legitimate origin, so the address bar briefly shows the trusted host before moving to the attacker's site. Users and mail filters treat the trusted link as safe, which is what makes the bug useful in phishing.

Typical sources of the destination are query parameters, path segments, form fields and headers such as Referer. The mistake is usually one of these:

  • The value is used directly as the Location header.
  • A check exists but is bypassable, for example by matching a substring anywhere in the string, by allowing a scheme-relative value such as //host, by accepting a userinfo trick such as [redacted], or by allowing backslashes and encoded characters that browsers normalise differently from the server-side check.
  • The redirect is a legitimate feature (login return, language switch, preview, checkout hand-off) whose allowlist is too broad or absent.

Defences work by not trusting the input at all: redirect to a fixed path, or map an opaque key to a server-side table of allowed destinations, or validate the parsed host against an exact allowlist after normalisation.

How to test for it

Look for parameters whose names suggest a destination: redirect, return, next, url, domain, host, callback, continue, preview, and feature-specific names such as the theme preview parameter in this report. They appear in login and logout flows, language and region switchers, marketing and preview endpoints, OAuth and SSO callbacks, and shorteners.

A practical method:

  1. Send a request with the parameter set to an external host you control and observe the response status and Location header without following the redirect.
  2. If the value is rejected or rewritten, try variants: scheme-relative (//your-host), full URL with scheme, mixed case, trailing dot on the host, userinfo before an @, backslashes, and percent-encoded forms of each.
  3. If a substring check seems to be in place, try placing the trusted domain inside the attacker URL (as a subdomain, as a path, or in userinfo) and see whether the check passes while the browser still leaves the site.
  4. Confirm in a real browser that navigation actually leaves the origin, since server-side checks and browser parsing can disagree.

A positive result is a response that redirects to a host you control, or a page that navigates there, from the target's own origin. Common false positives are: the parameter is reflected into a link but no redirect occurs; the redirect only happens after an interstitial warning page; the destination is constrained to the same registrable domain; or the behaviour only works with a value the application itself generated, which an attacker cannot forge.

How it is fixed

  • Do not accept arbitrary destinations. Redirect to a fixed path or to an identifier resolved server-side against a list of permitted targets.
  • If a URL must be accepted, parse it, require an allowed scheme, and compare the host against an exact allowlist after normalisation, rejecting userinfo, scheme-relative values and unexpected encodings.
  • Prefer relative paths and reject anything that parses to a different origin.
  • Where a redirect is unavoidable, show an interstitial for off-site destinations so the user sees where they are going.

Hunting notes

Open redirects cluster in features that hand a user to another place: authentication return URLs, store and domain switching, theme and app previews, localisation, and any endpoint that builds links for emails or integrations. Recon signals include parameters with destination-like names in JavaScript bundles and in links inside transactional emails, plus endpoints that answer with a 3xx and a Location header derived from input.

To make a report land, show the exact request and the response headers, and demonstrate the redirect in a browser so the reviewer sees the address bar change. Explain the realistic attack: a trusted link that lands on a page the attacker controls, ideally one that mimics a login or admin screen. If the program treats plain open redirects as low impact, tie it to a concrete flow where the redirect carries a token or follows authentication, but only claim that when you have observed it.

Difficulty

beginner

Difficulty reason

The report is a single parameter with a direct redirect and a three-step proof of concept, requiring no chaining or specialised tooling to reproduce.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 7 min read.

What happened, in plain words

Shopify is a platform that lets people build and run online shops. The endpoint is on a Shopify host and its path includes a theme preview. The preview lives on a Shopify address, app.shopify.com, so visitors see the Shopify name in their browser.

The researcher found that the address carries a parameter called domain_name and that visiting it redirects the browser. A parameter is simply a named value attached to the end of a web address, after a question mark. Here the parameter is called domain_name. The researcher set it to example.com and the page sent the browser on to http://example.com/admin.

That is the whole bug. A page on a trusted Shopify address will forward anyone who clicks it to a destination chosen by whoever wrote the link. Security people call this an open redirect: an application that takes a destination from the address and redirects the user there without checking it.

The researcher rated the impact as Medium and gave it a CVSS score of 6.5. CVSS is a standard scoring system for the severity of a security flaw; 6.5 is in the middle of the range.

The vulnerable address

The report gives the endpoint, meaning the specific web address that behaves this way, as:

Text
https://app.shopify.com/services/google/themes/preview/supply--blue?domain_name=example.com

Reading it piece by piece:

  • https://app.shopify.com is the trusted Shopify host. The padlock and the name in the address bar are what make a link look safe.
  • /services/google/themes/preview/supply--blue is the path to the preview feature. supply--blue is part of the path.
  • ?domain_name=example.com is the parameter. Everything after the question mark is data handed to the page, and domain_name is the name the page reads.

The proof of concept

The researcher's reproduction is three steps:

  1. Go to the address above.
  2. You will be redirected to http://example.com/admin.
  3. The researcher notes they can host a site where /admin is not a 404 (not a valid page), which they say increases the risk of phishing attacks and so on.

Step 1 matters because it shows the starting point is a genuine Shopify address, not a lookalike. Step 2 is the bug itself: the browser leaves Shopify and lands on http://example.com/admin. Step 3 explains why the landing page matters. A 404 is the standard "page not found" error. If the site returns a real page at /admin instead of an error, the researcher says this increases the risk of phishing attacks.

Phishing is the practice of luring someone to a fake page that imitates a real service, usually to capture a login. The report says the redirect increases the risk of phishing attacks.

The report does not show the server's response or the exact redirect header, so how the destination is assembled from the parameter is not documented. It also does not describe a fix, a bounty amount or a timeline.

In general, how this kind of bug works

An open redirect exists when an application accepts a destination from the request and sends the browser there without constraining where it points. The browser follows the redirect because it comes from the legitimate origin, so the address bar shows the trusted host for a moment before moving on. People and email filters treat the trusted link as safe, and that is exactly what makes the bug useful in an attack.

Destinations typically arrive through query parameters, parts of the path, form fields, or headers such as Referer (the header a browser sends to say which page you came from). The mistake usually takes one of these shapes:

  • The value is used directly as the Location header, the instruction a server sends to tell the browser where to go next.
  • A check exists but can be bypassed, for example by matching a substring anywhere in the string, by allowing a scheme-relative value such as //host, by accepting a userinfo trick such as [redacted], or by allowing backslashes and encoded characters that browsers interpret differently from the server-side check.
  • The redirect is a legitimate feature, such as a login return, a language switch, a preview or a checkout hand-off, whose list of allowed destinations is too broad or missing.

Defences work by not trusting the input at all: redirect to a fixed path, or map a short key to a server-side table of allowed destinations, or parse the value and compare the host against an exact allowlist after normalisation.

How to test for it

Look for parameters whose names suggest a destination: redirect, return, next, url, domain, host, callback, continue, preview, and feature-specific names such as the theme preview parameter in this report. They turn up in login and logout flows, language and region switchers, marketing and preview endpoints, OAuth and SSO callbacks, and link shorteners.

A practical method:

  1. Send a request with the parameter set to an external host you control, and look at the response status and Location header without following the redirect.
  2. If the value is rejected or rewritten, try variants: scheme-relative (//your-host), a full URL with scheme, mixed case, a trailing dot on the host, userinfo before an @, backslashes, and percent-encoded forms of each.
  3. If a substring check seems to be in place, try placing the trusted domain inside the attacker URL (as a subdomain, as a path, or in userinfo) and see whether the check passes while the browser still leaves the site.
  4. Confirm in a real browser that navigation actually leaves the origin, since server-side checks and browser parsing can disagree.

A positive result is a response that redirects to a host you control, or a page that navigates there, from the target's own origin. Common false positives are: the parameter is reflected into a link but no redirect happens; the redirect only occurs after a warning page; the destination is limited to the same registrable domain; or the behaviour only works with a value the application itself generated, which an attacker cannot forge.

How it is fixed

  • Do not accept arbitrary destinations. Redirect to a fixed path, or to an identifier resolved on the server against a list of permitted targets.
  • If a URL must be accepted, parse it, require an allowed scheme, and compare the host against an exact allowlist after normalisation, rejecting userinfo, scheme-relative values and unexpected encodings.
  • Prefer relative paths and reject anything that parses to a different origin.
  • Where a redirect is unavoidable, show a warning page for off-site destinations so the user sees where they are going.

Where to look while hunting

Open redirects cluster in features that hand a user to another place: authentication return URLs, store and domain switching, theme and app previews, localisation, and any endpoint that builds links for emails or integrations. Useful signals include parameters with destination-like names in JavaScript bundles and in links inside transactional emails, plus endpoints that answer with a 3xx status and a Location header derived from input.

To make a report land, show the exact request and the response headers, and demonstrate the redirect in a browser so the reviewer sees the address bar change. Explain the realistic attack: a trusted link that lands on a page the attacker controls, ideally one that mimics a login or admin screen. If the program treats plain open redirects as low impact, tie it to a concrete flow where the redirect carries a token or follows authentication, but only claim that when you have observed it.

Glossary

  • Open redirect: a flaw where an application sends the browser to a destination supplied in the request, without checking it.
  • Parameter: a named value attached to a web address after a question mark, passed to the page as input.
  • Endpoint: the specific web address that handles a request and produces a response.
  • Redirect: an instruction from a server telling the browser to load a different address.
  • Location header: the part of a redirect response that names the address the browser should go to.
  • Host: the domain name part of an address, such as app.shopify.com.
  • Origin: the combination of scheme, host and port that a browser treats as one security boundary.
  • Scheme: the first part of an address, such as https or http, that says how to fetch it.
  • Scheme-relative URL: an address starting with //host, which borrows the current page's scheme.
  • Userinfo: the optional user@ part before a host in a URL, which can be abused to make a link look like it points elsewhere.
  • Allowlist: an explicit list of values that are permitted, with everything else rejected.
  • Normalisation: converting a value to a standard form before comparing it, so that equivalent spellings match.
  • Percent-encoding: writing characters in a URL as % followed by two hex digits.
  • CVSS: a standard scoring system for the severity of a security flaw.
  • Phishing: luring someone to a fake page that imitates a real service, usually to capture a login.
  • 404: the standard response meaning the requested page does not exist.
  • Theme: a design template that controls how an online shop looks.
  • Proof of concept: a short set of steps that demonstrates a flaw actually happens.
  • False positive: a result that looks like a flaw but is not one in practice.
  • OAuth / SSO: login schemes where one service hands you to another to sign in and then sends you back.
  • 3xx status: the family of HTTP response codes that tell the browser to go somewhere else.

More by blinkms

View all

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