Redirect in adding advance cash on delivery app
The Shopify app's authorization endpoint accepted a user-controlled return_url parameter and redirected the victim to it after activation. An attacker could send a crafted link to a shop owner who had installed but not activated the app, causing a redirect to a malicious site.
Originally disclosed on HackerOne
- Triaged in 5 days
- Fixed in 7 months
- Disclosed after 7 months
Hello,
When you install Advance Cash on delivery App in your shop, it takes you to the url

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

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
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application did not validate or restrict the return_url parameter to trusted domains before redirecting.
Impact
An attacker could redirect a shop owner to a malicious site after they activate the app, which may be used for phishing.
What the attacker needed
Victim shop has the app installed but not activated; victim clicks the crafted link and activates
How it was found
- Assume a victim shop has the app installed but not activated.
- Send the crafted URL with the victim's shop name and a malicious return_url.
- The victim clicks Activate and is redirected to the malicious URL.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
An open redirect is when a website takes a link parameter and sends you to that address without checking it is safe. Here, after a shop owner clicked 'Activate', the app sent them to whatever web address was in the link, so an attacker could make it look like a trusted shop link but land on a fake page.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.