Skip to content
Open redirect Disclosed report Beginner

Open Redirect in www.shopify.dev Environment

The search result page on shopify.dev accepted a user-controlled result_url parameter and redirected to it after a check that could be bypassed with an @ character, redirecting a victim to an external site.

beerboy_ankit Follow

Originally disclosed on HackerOne

Medium 5.8 View original
  • Triaged in 22 hours
  • Fixed in 23 days
  • Disclosed after 19 months

Summary

Reported vulnerability allows attacker for open/unknown redirect for victim user

Steps to reproduce

  1. Go to https://shopify.dev/concepts/shopify-introduction
  2. Click on search
  3. Type POC in search box and hit enter
  4. Right click on first result displayed as POS and click on copy link address which will look like below.
https://shopify.dev/search/result?query=poc&rank=1&result_gid=ae6c33f6-62d4-4ff2-966e-96c09267ee87&result_url=%2Ftools%2Fapp-bridge%2Factions%2Fpos&search_uuid=34eeea9d-2b99-4f86-bf00-807efd4036ba&suggested=false
  1. Modify result_url parameter in link shown above to [email protected]

  2. Final link will look like this

https://shopify.dev/search/result?query=poc&rank=1&result_gid=ae6c33f6-62d4-4ff2-966e-96c09267ee87&[email protected]&search_uuid=34eeea9d-2b99-4f86-bf00-807efd4036ba&suggested=false

  1. alternatively You can also directly access below link for your convenience

https://shopify.dev/search/result?query=poc&rank=1&result_gid=ae6c33f6-62d4-4ff2-966e-96c09267ee87&[email protected]&search_uuid=34eeea9d-2b99-4f86-bf00-807efd4036ba&suggested=false

Culprit for redirect is @ character which will bypass the logic implemented to redirect user to access resource on www.shopify.dev itself and follow url after @

Note: I am submitting this report as this bypass technique can be use to any other domain on Shopify if same logic is implemented and could leads attacker for wider attack scope.

Thanks you!

Impact

Invalidated Redirect

The original report as published on HackerOne, by beerboy_ankit. 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 redirect validation only checked that the URL started with a relative path or contained the expected domain, but did not account for the userinfo component (the part before @) in a URL, allowing an external host after the @.

Impact

An attacker could redirect a victim to an external website via the crafted link.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Go to the shopify.dev introduction page.
  2. Click on search.
  3. Type 'POC' in the search box and press enter.
  4. Right-click the first result and copy its link address.
  5. Modify the result_url parameter to @www.facebook.com.
  6. Access the modified link to be redirected to facebook.com.

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 website takes a link parameter and sends you to another site without checking it properly. Here, the site tried to keep you on shopify.dev, but adding an @ sign bypassed the check, so you could be sent to an external 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 beerboy_ankit

View all

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