Shopify · Report #159522
Open redirect using checkout_url
How it was found
Hi , I would like to report an open redirect issue in <account>.myshopify.com/account/logout and <account>.myshopify.com/account/login
#Details:
Your application allow redirecting to https://checkout.shopify.com/ through https://<shop>.myshopify.com/account/logout?return_url=<url>
The page https://checkout.shopify.com/<Store_id> will display the 404 page of the store.
Here is how this can be used for open redirection:
- Attacker creates a store then adds a new URL redirect with
/[Store_id]in the Old path field and the malicious website(e.g:evil.com) in the Redirect to field. {F112369} - Attacker sends the victim a link like this:
https://<victim>.myshopify.com/account/logout?return_url=https://checkout.shopify.com/[Attacker's_store_id] - The victim will be redirected to the malicious website.
#PoC:
https://<account>.myshopify.com/account/logout?return_url=https://checkout.shopify.com/14372648
This will redirect you to evil.com
https://<account>.myshopify.com/account/login?checkout_url=https://checkout.shopify.com/14372648
This will redirect you to evil.com after you login.
Thanks!