HexBrain

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

  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

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original