staff memeber can install apps even if have limitied access
A staff member with limited order access could still install an app requesting the read_orders scope, despite an OAuth error shown first.
Originally disclosed on HackerOne
- Triaged in 25 hours
- Fixed in 2 days
- Paid in 8 days
- Disclosed after 8 days
hey ; for example staff member have limit access to orders when this memeber want install app (scope read_orders) ,error message showed :
Oauth error invalid_request: You do not have permission to access the requested scopes
bug:
staff memeber can install app even if have limit access to scops https://youtu.be/AoFLfiDDUog
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
What the attacker needed
A staff account with limited access; ability to install apps
How it was found
- Log in as a staff member with limited access to orders.
- Attempt to install an app that requests the read_orders scope.
- Observe the OAuth error saying you lack permission for the requested scopes.
- Proceed with the installation and find that the app installs successfully.
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, it asks for permissions called scopes, such as reading orders. The system is supposed to check that the person installing the app already has those permissions. Here, a staff member without order access was still able to install an app that asked to read orders, so the check failed.
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.