Staff Member can Get POS Access Without User Interaction
A staff member with only the 'Manage Locations' permission could enable POS access for their own account by sending a GraphQL mutation, without needing admin approval. This allowed them to take over the POS system.
- Triaged in 3 days
- Fixed in 6 days
- Paid in 6 days
- Disclosed after 26 days
Hi,
I found that it is possible for a staff member to grant themselves POS access without user interaction from admin.
Steps to reproduce
- Login as a staff member with
Manage Locationspermission only, in a shop that has POS channel up and running (Could be Lite) - Make sure your staff member account didn't have POS enabled
- Make this GraphQL call
{"query":"mutation {retailUserDataUpdate(id:\"gid://shopify/StaffMember/63779504283\",retailUserData:{posAccess:true,pin:\"1423\"}){staffMember{name canAccessPrivateApps authenticationSettings{tfaEnabled}}userErrors{message}}}"}
Replace 63779504283 with your personal staff member id, you can find it in https://your-store.myshopify.com/admin/settings/account/ and click your account name, then you staff member id is in the url.
- Now your staff member account has POS enabled, and pin is set.
Impact
It will allow to a staff member to POS takeover without user interaction.
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 GraphQL mutation for updating staff member data did not properly check if the requesting user had permission to modify POS access settings.
What the attacker needed
Staff account with 'Manage Locations' permission; shop with POS channel active
How it was found
- Log in as a staff member with only 'Manage Locations' permission in a shop with POS enabled.
- Ensure the staff member account does not have POS enabled.
- Send a GraphQL mutation to update the staff member's retail data, setting posAccess to true and a pin.
- The staff member account now has POS enabled with the set pin.
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 with limited permissions could enable POS access for their own account by sending a GraphQL request, without an admin's help.
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.