Bypass access restrictions from API
Users with limited access could log into the Shopify Mobile app, capture their own access token, and use it against the API to create new users with full access or delete other users. Separately, users with no access could view the complete list of users in the store, though no sensitive information was shown.
Originally disclosed on HackerOne
- Triaged in 2 months
- Fixed in 3 months
- Paid in 3 months
- Disclosed after 3 months
Summary by the program
This issue allowed users with limited access to login into a Shopify Mobile application, capture their own access token, and perform queries against Shopify's API in order to create new users with full access, or delete other users.
An additional issue was reported, where users with no access could view the complete list of users in the Shopify store, and although no sensitive information were being shown, we changed the access restriction for the users endpoint to match that of the web interface.
Summary by the researcher
Bypass admin users permission model with API call Allowed limited access admin to gain Full Access
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 API trusted the mobile app's access token without checking the user's actual permission level, and the users endpoint had weaker access checks than the web interface.
Impact
A limited-access user could escalate to full access, create admin users, or delete other users; the user-list exposure showed no sensitive information.
What the attacker needed
A limited-access staff account; Shopify Mobile app
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.
Some staff accounts are meant to have only limited permissions. This report found that the mobile app gave those accounts a token that the API trusted too much, so they could do admin-only things like adding or removing users. A second problem let people with no permissions see the list of users, though not their private details.
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.