Skip to content
Open redirect Disclosed report Beginner

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.

ashish_r_padelkar Follow

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

ShopifyCOD.png
ShopifyCOD.png From the original on HackerOne

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

ShopifyAct.png
ShopifyAct.png From the original on HackerOne

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

The original report as published on HackerOne, by ashish_r_padelkar. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Assume a victim shop has the app installed but not activated.
  2. Send the crafted URL with the victim's shop name and a malicious return_url.
  3. 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.

More by ashish_r_padelkar

View all

13 more disclosed reports, best first.

More from Shopify

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.