HexBrain

Shopify · Report #188266

Redirect in adding advance cash on delivery app

Validstatus
lowseverity
7upvotes
27 Jun 2017disclosed

How it was found

Hello,

When you install Advance Cash on delivery App in your shop, it takes you to the url

{F140362}

https://<YourShop>.myshopify.com/admin/authorize_gateway/1041328?api_key=ceb1a596e2b039d02dfb5772303f6273&return_url=https://cod.shopifyapps.com/gateway_enabled

{F140363}

Here, return_url can be used for redirection.

So if any shop which has this app installed but not yet activated, attacker can just send the above url to the victim by just changing the shop name in the url to the victim's shop name and return_url with some malicious url . api_key will remain the same.

https://<YourShop>.myshopify.com/admin/authorize_gateway/1041328?api_key=ceb1a596e2b039d02dfb5772303f6273&return_url=https://google.com

#Steps

  1. Lets assume a victim Shop with Advance cash on delivery app installed but not activated yet

  2. Send the url https://<YourShop>.myshopify.com/admin/authorize_gateway/1041328?api_key=ceb1a596e2b039d02dfb5772303f6273&return_url=https://google.com to the victim.

  3. On click of Activate button, victim will be redirected to https://google.com

Thanks & Regards Ashish

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