Shopify · Report #842035
Open Redirect in www.shopify.dev Environment
Validstatus
mediumseverity
12upvotes
18 Nov 2021disclosed
How it was found
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 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