Skip to content
Open redirect Write-up Beginner

A Simple Shopify Open Redirect That Paid $500 ‍

The Shopify login page appended the user-supplied checkout_url parameter directly to the store's subdomain, so a value beginning with a dot caused the final redirect to point to an attacker-controlled domain. An attacker could craft a link that, after login, sent the victim to a phishing site that appeared to be part of Shopify.

ahmedbelahcen2018 Follow

Published on medium.com

Open redirects are often labeled as “low severity,” so I didn’t pay much attention to them at first. That changed when I came across an old Shopify report that paid $500 for what looked like a very simple bug.

ab.infosec, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the backend concatenated untrusted input onto a trusted domain without validating the resulting hostname, ignoring how DNS labels and special characters change the effective domain.

Impact

An attacker could redirect users after login to a domain they control, which could be used for phishing and account compromise scenarios.

What the attacker needed

Victim clicks a crafted login link; victim logs in successfully

The fix

The redirect target should be validated so that user input cannot alter the hostname, for example by allowing only relative paths or an explicit allowlist of destinations.

How it was found

  1. Visit the Shopify account login page.
  2. Supply a checkout_url value that starts with a dot followed by an attacker domain.
  3. Log in successfully.
  4. Observe the browser being redirected to the attacker-controlled 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 write-up has not been written yet. The Original tab links to the source.

An open redirect is when a website takes a link parameter and sends you to that address without checking it is safe. Here, the site glued the user's input onto its own domain name, so input starting with a dot made the browser treat the attacker's domain as the real one. A victim who logged in through such a link would end up on a fake page controlled by the attacker.

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 ahmedbelahcen2018

View all

3 more disclosed reports, best first.

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.