Skip to content
Access control Disclosed report Intermediate

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.

flashdisk Follow

Originally disclosed on HackerOne

  • 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

  1. create partners account on partners.shopify.com and add staff member with manage shops permissions.

  2. create development store and login to the store with the created staff account with manage shops permissions.

  3. install order printer app and access that app and press on manage templates button and create template.

  4. after creating the template press on delete for the created template and intercept the request with burp, don;t send it.

  5. go to https://partners.shopify.com/664398/memberships and remove manage shops permissions for the staff account.

  6. send the request from step 4 and you will notice that the template was deleted although the user doesn't have manage shops permissions.

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

The original report as published on HackerOne, by flashdisk. 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 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

  1. Create a partner account and add a staff member with manage shops permission.
  2. Create a development store and log in with that staff account.
  3. Install an app, open it, and create a template.
  4. Start deleting the template and intercept the request without sending it.
  5. Remove the manage shops permission from the staff account on the partner dashboard.
  6. 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.

More by flashdisk

View all

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