Staff member can delete Private Apps
A staff member with full access could delete a private app by changing the app ID in a delete request, even though they were not supposed to have access to private apps. This allowed unauthorised deletion of private apps.
Originally disclosed on HackerOne
- Triaged in 37 hours
- Fixed in 44 hours
- Paid in 8 days
- Disclosed after 8 days
Hi Team,
Bug description : I noticed that Full access staff member doesn't have access to private Apps Even he has access to Apps. But a Staff member can actually Delete Private Apps through the normal App link by changing the ID.
Steps to reproduce :
- Create A shop and install any app. Also create private App.
- Add a staff member with full access .
- Now Login from staff member and go to app section from his account.You will see that he is not able to access private Apps yet.
- Now Try to delete the normal App and Capture the request.The request will look like the following request :
Vulnerable HTTP request :
POST /admin/apps/[App_ID]HTTP/1.1 Host: [your_store].myshopify.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate, br Referer: https://vijaygangani1110store.myshopify.com/admin/apps Cookie: [Cookie] Connection: keep-alive Content-Type: application/x-www-form-urlencoded Content-Length: 132
_method=delete&authenticity_token=[Token]
- Change the App ID to private App ID and you will see from Owners account that the private App has been Deleted.
App_ID parameter is vulnerable here. Server doesn't check the permissions and let the staff member Delete the App.
Let me know if you need any other help from my side.
Best Regards ! Vijay Kumar
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 server did not verify that the staff member had permission to delete the specific app, only that they had general app access.
Impact
A staff member could delete private apps without authorisation.
What the attacker needed
A Shopify store; a staff member with full access; a private app installed
The fix
The server should check permissions so only authorised users can delete private apps.
How it was found
- Create a shop, install an app, and create a private app.
- Add a staff member with full access.
- Log in as the staff member and go to the apps section; note that private apps are not accessible.
- Attempt to delete a normal app and capture the request.
- Change the app ID in the request to the private app's ID.
- Observe that the private app is deleted from the owner's account.
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.
A staff member is a user with limited permissions. They could not see private apps, but by modifying the ID in a delete request, they could delete them anyway. This is like having a key that only opens some doors, but finding that it also opens a locked door if you jiggle it.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.