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.
Originally disclosed on HackerOne
- 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
- Go to https://shopify.dev/concepts/shopify-introduction
- Click on search
- Type
POCin search box and hit enter - Right click on first result displayed as
POSand 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
-
Modify
result_urlparameter in link shown above to[email protected] -
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
- alternatively You can also directly access below link for your convenience
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
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
- Go to the shopify.dev introduction page.
- Click on search.
- Type 'POC' in the search box and press enter.
- Right-click the first result and copy its link address.
- Modify the result_url parameter to @www.facebook.com.
- 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.