Prevent Shop Admin From Seeing his Installed Apps / Install Persistent Unremovable App
A Shopify app with a malformed redirect URI could be installed, after which the shop's installed apps page returned a server error, preventing the admin from viewing or removing any apps. The malicious app could only be removed by its developer.
Originally disclosed on HackerOne
- Triaged in 24 days
- Fixed in 3 months
- Disclosed after 3 months
Hi,
This is an interesting vulnerability, when a Shopify app whose redirect_uri points to a malformed URI handler like shit:google.com gets installed to a Shop then, it will effectively prevent the admins to see and remove installed apps to his/her shop.
Reproduction
- Create a Shopify App at https://app.shopify.com/services/partners/api_clients/new
- Enter any for the App and set its Application Callback URL to shit:google.com
- Save the App.
- Create an OAuth URL for the App, Like - https://vulnstore.myshopify.com/admin/oauth/authorize?scope=read_customers&client_id=cad94488c733b0f377a9a1d7952db802
- Now try to install the app by clicking "Install <AppName>" in the OAuth permission dialogue. It won't redirect after clicking.
- Go and visit https://vulnstore.myshopify.com/admin/apps The page will throw internal server 500 and usual error message.
This will not let admin remove any of his app till the malicious app is deleted by the app developer.
POC App: https://[store].myshopify.com/admin/oauth/authorize?scope=read_customers&client_id=cad94488c733b0f377a9a1d7952db802
If you have any doubt in reproduction, you can watch the following short screencast as well - https://www.dropbox.com/s/1h8gjg07r5h9gkj/Shopify%20DoS.mov?dl=0
Regards, Prakhar Prasad
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 installed apps page did not handle a malformed redirect URI stored for an installed app, causing an unhandled error when rendering the list.
What the attacker needed
A Shopify partner account; victim installs the crafted app
How it was found
- Create a Shopify app in the partner dashboard.
- Set the app's callback URL to a malformed URI scheme.
- Build an OAuth authorisation link for the app and open it.
- Click install in the permission dialogue; the redirect does not happen.
- Visit the shop's installed apps page, which returns a server error.
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.
When you install an app on a Shopify shop, the app is told where to send you afterwards using a callback address. If that address is written in a broken format, the shop's app management page crashes. The shop owner then cannot see or uninstall any apps, including the bad one, until the app's creator removes it.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.