User with removed manage shops permissions is still able to make changes to a shop
A staff member whose manage shops permission was revoked on the partner dashboard could still make changes to a managed shop through an app they had previously installed and logged into. An attacker could delete templates or create discounts in a shop after their access was supposedly removed.
- Triaged in 3 days
- Fixed in 5 days
- Paid in 14 days
- Disclosed after 2.7 years
Summary by the program
@flashdisk reported that revoking access from a staff member in the partner dashboard did not log them out of the admin areas of shops they had logged into.
He also reported that, as a further implication, the partner would still have access to embedded apps they might have logged into. This is expected and something we were already aware of, as Shopify has no way to let apps know of a user logging out at this time. Sessions managed by apps are separate from admin sessions by design.
The report
#Description
it has been noticed that when a partner account user with manage shops permissions installs app in the one of the managed shops he can still be able to make changes to the shop through that app although his manage shops permissions were revoked on partners.shopify.com.
#POC
-
create partners account on partners.shopify.com and add staff member with
manage shopspermissions. -
create development store and login to the store with the created staff account with
manage shopspermissions. -
install order printer app and access that app and press on
manage templatesbutton and create template. -
after creating the template press on
deletefor the created template and intercept the request with burp, don;t send it. -
go to https://partners.shopify.com/664398/memberships and remove
manage shopspermissions for the staff account. -
send the request from step 4 and you will notice that the template was deleted although the user doesn't have
manage shopspermissions.
#NOTE
I also tested this Bulk Discounts app and it gave me permissions to create new discount code for each order although I was missing the manage shops permissions.
#IMPACT a partner staff member can make drastic changes to a store after revoking his permissions.
thanks.
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 app's session was not invalidated when the partner permission was revoked, so the app continued to authorise actions based on the earlier login.
Impact
A former staff member could still make changes such as deleting templates or creating discount codes in a shop after their permission was revoked; the report notes app-managed sessions are separate from admin sessions by design.
What the attacker needed
A partner account; a staff member with manage shops permission; an app installed and logged into; ability to intercept requests
How it was found
- Create a partner account and add a staff member with manage shops permission.
- Create a development store and log in with that staff account.
- Install an app, open it, and create a template.
- Start deleting the template and intercept the request without sending it.
- Remove the manage shops permission from the staff account on the partner dashboard.
- Send the intercepted request and observe the template is still deleted.
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.
The app session was separate from the admin session, so the person could still delete or create things after the permission was removed.
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.