Skip to content
Access control Disclosed report Intermediate

create staff member without owner access

An admin without store-owner rights could create a new staff user through the admin users API, even though only the store owner should be allowed to do so. By then resetting that user's password and toggling their access, the attacker could turn the new account into a full-access admin.

supernatural Follow

Originally disclosed on HackerOne

Bounty$1,000 View original
  • Triaged in 4 days
  • Fixed in 2 months
  • Paid in 3 months
  • Disclosed after 5 months

Hi

as you mentioned in #56726

"Only the the store owner is allowed to create new staff members"

admins can't create new staff members! but with this vulnerability admins can use api to create user!

steps:

  • get access token for one full access admin (you can send request to xauth or sniff it from mobile device)

  • send request with POST method to "https://ShopName.myshopify.com/admin/users.json"

data :

{ "user": { "email": "[email protected]", "first_name":"fname", "last_name" : "lname", "pin" : 1234 } }

now, a user will be created! this user marked as POS staff member, without any access to admin shop!

  • go to "https://ShopName.myshopify.com/admin/auth/recover"

  • enter new admin email address

  • follow instructions to reset password

after recovering password user will convert to normal limited access

  • open that first full access admin and then select new created admin

  • unselect limited access

Done, a new admin will full access created!

Regards

The original report as published on HackerOne, by supernatural. 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 admin users API endpoint did not check that the caller was the store owner, only that they were an admin.

Impact

An admin who should not be able to add staff could create a new account and escalate it to full admin access, bypassing the owner-only restriction.

What the attacker needed

Access token for a full-access admin; ability to receive email for the new user

How it was found

  1. Obtain an access token for a full-access admin account.
  2. Send a POST request to the shop's admin users endpoint with new user details.
  3. Confirm the new user was created as a POS staff member with no admin access.
  4. Go to the admin password recovery page and enter the new user's email.
  5. Complete the password reset so the user becomes a limited-access admin.
  6. Open the original full-access admin, select the new user, and remove the limited-access restriction.

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 shop has different levels of staff accounts. The shop owner is meant to be the only person who can add new staff. This report shows that a lower-level admin could still add a user by calling an internal web address directly, and then use the password reset flow to give that new user full admin rights.

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 supernatural

View all

12 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.