Skip to content
Access control Disclosed report Intermediate

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.

ngalog Follow

Originally disclosed on HackerOne

Medium 5.4 View original
  • 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 Locations permission 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
JSON
{"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.

The original report as published on HackerOne, by ngalog. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Log in as a staff member with only 'Manage Locations' permission in a shop with POS enabled.
  2. Ensure the staff member account does not have POS enabled.
  3. Send a GraphQL mutation to update the staff member's retail data, setting posAccess to true and a pin.
  4. 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.

More by ngalog

View all

21 more disclosed reports, best first.

More from Shopify

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.