Add new development stores without permission
A staff member whose permissions had been reduced to only adding and removing managed stores could still create development stores, because the dev store signup endpoint returned a token without checking the development store permission. The attacker could then use that token to create and log into a development store, an action that should have required a permission they no longer held.
- Fixed in 4 days
- Paid in 11 days
- Disclosed after 48 days
Details A staff member who only has permission to add and remove managed stores can also create development stores. It appears proper permission checks are not performed when /organizationID/stores/signup_object/dev_store endpoint is queried, as long as a staff member has store access, a token is returned. I decided to do this from the partner dashboard to proof that not only can development stores be created, they can also be logged into. Further information on setup and steps to reproduce are provided below.
Setup Organization owner - Owner Staff member - Doe
- Owner gives Doe both development store and managed store permission. See dev_store_B.png for details.
- Doe logs in and visits https://partners.shopify.com/organizationID/stores/new and selects development store.
- Owner edits Doe's permission so he can only add and remove managed stores. See dev_store.png for details.
Steps to reproduce
- Doe proceeds to create the development store and gets logged in automatically. See dev_store_A.png, dev_store_C.png and dev_store_D.png for details.
- Alternatively, send a GET request to /organizationID/stores/signup_object/dev_store to obtain the required token. See dev_store_G.png for details.
- The token obtained above should be used in the following POST request.See dev_store_E.png and dev_store_F.png.
POST /services/signup/create HTTP/1.1
Host: app.shopify.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/86.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Content-Length: 1224
Origin: https://app.shopify.com
DNT: 1
Connection: close
Cookie: ...
_y=&ref=&ssid=&source=&source_url=&source_url_referer=&signup_code=&signup_source=development+shop&signup_source_details=test_app_or_theme&signup_page=&signup_page_referer=&signup_locale=&domain_to_connect=&signup%5Bshop_name%5D=newiez2&signup%5Bsubdomain%5D=&signup%5Bfirst_name%5D=&signup%5Blast_name%5D=&signup%5Bemail%5D=example%40gmail.com&signup%5Bpassword%5D=5syyyypT&signup%5Bconfirm_password%5D=5syyyypT&signup%5Baddress1%5D=Suite+10&signup%5Bcity%5D=London&signup%5Bprovince%5D=&signup%5Bzip%5D=Swe10928&signup%5Bcountry%5D=GB&signup%5Bphone%5D=&signup%5Bpos%5D=&signup%5Bextra%5D%5Baffiliate_shop%5D=eyJfcmFpbHMiOnsibWVzc2F&signup%5Bextra%5D%5Borganization_id%5D=1022333&signup%5Bextra%5D%5Bpartner_test_shop%5D=&signup%5Bsignup_types%5D%5B%5D=affiliate_shop&identity_account_experiment=
Impact
Staff member can perform actions that require permission
Attachments








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 dev store signup endpoint issued a signup token based only on general store access, without verifying the specific development store permission.
Impact
A staff member could perform actions that require a permission they do not hold, creating and accessing development stores.
What the attacker needed
A staff account in the organisation; owner reduces staff permissions; staff has general store access
How it was found
- The owner grants the staff member both development store and managed store permissions.
- The staff member visits the new store page and selects development store.
- The owner edits the staff member's permissions so only managed store add and remove remain.
- The staff member creates the development store and is logged in automatically.
- Alternatively, the staff member sends a GET request to the dev store signup object endpoint to obtain a token.
- The token is used in a POST request to the signup creation service to create the store.
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 company can give each staff member only certain abilities, such as managing one kind of store but not another. The website was supposed to check those abilities before handing out a special pass (a token) that lets someone create a new store. It did not check properly, so a staff member with limited rights could still create and open a store they were not allowed to.
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.