HexBrain

Shopify · Report #90688

create staff member without owner access

Validstatus
$1,000bounty
5upvotes
29 Feb 2016disclosed

How it was found

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

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original