Shopify · Report #188266
Redirect in adding advance cash on delivery app
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
-
Lets assume a victim Shop with
Advance cash on deliveryapp installed but not activated yet -
Send the url
https://<YourShop>.myshopify.com/admin/authorize_gateway/1041328?api_key=ceb1a596e2b039d02dfb5772303f6273&return_url=https://google.comto the victim. -
On click of Activate button, victim will be redirected to
https://google.com
Thanks & Regards Ashish