Privilege Escalation - A `MEMBER` with no ACCESS to `ORDERS` can still access the orders by using `Order Printer APP`
- Triaged in 39 days
- Fixed in 10 months
- Paid in 11 months
- Disclosed after 11 months
Summary by the program
This researcher pointed out that Shopify's app ecosystem has no built-in way of verifying who is using an app, and therefore most apps do not verify user privileges when requesting and displaying a store's data. To resolve this issue we implemented an "online access" mode in which an app can request temporary access tied to an individual user account. API requests in this mode may fail depending on the privileges that were granted to the user.
Note: We are in the process of upgrading our apps to use the online access mode, but not all apps have been converted yet. Reports pertaining to other apps that fail to verify user privileges will be closed as duplicates.
A complete explanation of online and offline API access modes can be found here: https://help.shopify.com/api/getting-started/authentication/oauth#api-access-modes
What the report shows
The target is Shopify's app ecosystem. The researcher, coolboss, reported a privilege escalation issue: a user with the MEMBER role who has no access to ORDERS could still reach order data through the Order Printer APP. The report title states the finding directly, and the program's summary confirms the underlying problem: Shopify's app ecosystem had no built-in way of verifying who is using an app, so most apps did not verify user privileges when requesting and displaying a store's data.
The report itself is short and contains no request, payload, command or screenshot. The report does not document the steps taken, the exact request the app made or the response it returned. The report does not document the exact request the app made or the response it returned.
The outcome is recorded by the program. Shopify paid a bounty of 1,000 USD and disclosed the report on 20 April 2016. The weakness is classified as privilege escalation. The fix was architectural: Shopify implemented an "online access" mode in which an app can request temporary access tied to an individual user account, and API requests in that mode may fail depending on the privileges granted to that user. The program noted that it was in the process of upgrading its apps to use online access mode, and that reports about other apps failing to verify user privileges would be closed as duplicates.
Root cause
The root cause, as the program describes it, is that the app ecosystem had no built-in way of verifying who is using an app, so most apps did not verify user privileges when requesting and displaying a store's data. The app then displays whatever it fetched to whoever is looking at it. Authorisation is effectively delegated to the app, and the app does not perform it.
Shopify's own summary frames it this way: there was no built-in way of verifying who is using an app, so most apps did not verify user privileges when requesting and displaying data. The missing check is not in one endpoint but in the trust model between the platform, the app and the user.
Impact
A member with restricted permissions could read order data they were not granted access to. The report does not describe any write action, so the demonstrated impact is read access to orders. The program's summary describes the problem in terms of a store's data generally.
How this kind of bug works
Multi-tenant platforms that host third-party apps face a confused deputy problem. The app is a deputy acting for a user, but if its credentials identify the store rather than the user, the platform cannot tell whose privileges should apply. The platform authorises the app, the app does not authorise the user, and the permission model of the store is bypassed.
The same pattern appears wherever an integration layer sits between a user and a backend: dashboard widgets, reporting tools, export utilities, chat bots and mobile clients that call an API with a shared service token. The bug class is broken access control at a trust boundary, and it is easy to miss because each component looks correct in isolation. The platform checks the app's token, the app checks that a session exists, and nobody checks the role.
Defences are user-scoped credentials and server-side authorisation. A token should represent a specific user and a specific set of scopes, and the resource server should enforce the user's permissions on every request rather than trusting the caller to have done so.
How to test for it
- Map the roles. Create or obtain at least two accounts in the same tenant: a privileged one and a restricted one whose permissions you know precisely. Note which features the restricted account cannot use in the main application.
- Enumerate the integration surface. List installed apps, embedded dashboards, export tools and any feature that renders data fetched from a separate service. Each is a candidate for a shared credential.
- Exercise the feature as the restricted user. Open each app and observe whether it displays data the main application hides. A positive result is content, counts or identifiers that the restricted role should not see.
- Confirm at the network layer. Capture the request the app makes and check whether it carries a user session or a store-level token. If the request succeeds while the restricted user's own session is absent or insufficient, the authorisation is happening at the wrong layer.
- Test the reverse direction. Remove the user's session or downgrade the role and repeat the request. If the response is unchanged, the credential is not user-scoped.
Common false positives: data that is genuinely public within the tenant, cached content rendered before a permission change, and features that filter results client-side but still enforce on the server. Verify by comparing the response body against what the privileged account sees, not just what the UI shows.
How it is fixed
The standard fix is to issue credentials per user and per session, with scopes limited to what that user may do, and to enforce the user's permissions on the resource server for every request. Tokens should be short-lived and tied to the authenticated user, so that revoking a role or ending a session immediately reduces what the app can fetch. Apps should also check permissions before rendering, but that check is defence in depth, not the control. Shopify's online access mode is an instance of this pattern: temporary access tied to an individual user account, with requests failing when the user lacks the privilege.
Hunting notes
This bug class hides in the seams between a platform and its integrations: marketplace apps, embedded admin panels, analytics widgets, export and printing tools, and anything that shows a slice of tenant data inside a third-party frame. Recon signals include apps that render data instantly without a visible permission prompt, apps whose network calls go to a different host than the main application, and features that behave identically for every role.
Compare the restricted user's view with the privileged user's view of the same resource, and state clearly that the request succeeded without the restricted user's authority.
One practical note from this case: once a platform fixes the underlying trust model, reports against individual apps that still fail to check privileges may be treated as duplicates. Check whether the root cause has already been addressed before investing in a single app.
What happened, in plain words
Shopify is a platform that lets people run an online shop. A shop can have several staff accounts, each with a role that decides what that person is allowed to do. One role is MEMBER, and a member can be set up with no access to ORDERS, meaning they should not be able to see the shop's orders at all.
Shopify also has an app store. Apps are small add-on programs that shops install to do extra jobs, such as printing order paperwork. The Order Printer APP is one of these apps.
The researcher, coolboss, found that a MEMBER with no access to ORDERS could still see order data by opening the Order Printer APP. The app did not check the member's privileges before requesting and displaying the store's data.
To understand why, you need to know how an app talks to Shopify. When you use a website, your browser sends a request to a server, and the server sends back a response. A request often carries a token, a short string that proves who is asking. The app did not verify the user's privileges when requesting and displaying the store's data.
That is what privilege escalation means here: someone with low privileges reaches data that only a higher privilege should unlock. It is not a password being stolen; it is a check that was never made.
The report itself is short. It contains no request, no payload, no command and no screenshot, so the exact request the app made and the response it returned are not documented. What we have is the title and the program's own explanation of the cause.
Shopify accepted the report, paid a bounty of 1,000 USD, and disclosed it on 20 April 2016. The weakness is classified as privilege escalation.
The fix was not a patch to one screen. Shopify added an "online access" mode, in which an app can request temporary access tied to an individual user account. In that mode, API requests may fail depending on the privileges granted to that user. So the permission check moves back to where it belongs: the platform decides what the person may see, not the app. Shopify also noted that it was upgrading its apps to use online access mode, and that reports about other apps still failing to verify user privileges would be closed as duplicates. That last point matters: once the underlying trust model is fixed, the same finding in a different app is no longer a new bug.
In general, how this kind of bug works
Platforms that host third-party apps face what security people call a confused deputy problem. Think of a deputy with a signed letter of authority from the company. If the letter says "the company authorises this", the deputy can act with the company's full power, no matter which employee handed over the request. If the letter instead named the employee and their role, the deputy could only do what that employee is allowed to do.
When an app holds a token that represents the store rather than the user, the platform cannot tell whose privileges should apply. The platform authorises the app, the app does not authorise the user, and the shop's permission model is bypassed. Each piece looks correct on its own: the platform checks the app's token, the app checks that someone is logged in, and nobody checks the role.
The same pattern appears anywhere an integration layer sits between a person and a backend: dashboard widgets, reporting tools, export utilities, chat bots and mobile clients that call an API with a shared service token. The bug class is broken access control at a trust boundary.
How to test for it
- Map the roles. Have at least two accounts in the same shop: a privileged one and a restricted one whose permissions you know precisely. Write down which features the restricted account cannot use in the main admin.
- List the integration surface. Installed apps, embedded dashboards, export tools, anything that shows data fetched from a separate service. Each is a candidate for a shared credential.
- Use the feature as the restricted user. Open each app and watch whether it shows data the main admin hides. A positive result is content, counts or identifiers the restricted role should not see.
- Confirm at the network layer. In your browser's developer tools you can see the requests a page makes. Check whether the request carries a user session or a store-level token. If it succeeds while the restricted user's own session is absent or insufficient, the authorisation is happening at the wrong layer.
- Test the reverse direction. Remove the user's session or lower the role and repeat the request. If the response is unchanged, the credential is not tied to the user.
Common false positives: data that is genuinely public inside the shop, cached content rendered before a permission change, and features that filter results in the browser but still enforce on the server. Verify by comparing the response body against what the privileged account sees, not just what the screen shows.
How it is fixed
The standard fix is to issue credentials per user and per session, with scopes limited to what that user may do, and to enforce the user's permissions on the server for every request. Tokens should be short-lived and tied to the logged-in user, so that removing a role or ending a session immediately reduces what the app can fetch. Apps should also check permissions before rendering, but that is a second line of defence, not the control. Shopify's online access mode is an instance of this pattern: temporary access tied to an individual user account, with requests failing when the user lacks the privilege.
Where to look
This bug class hides in the seams between a platform and its integrations: marketplace apps, embedded admin panels, analytics widgets, export and printing tools, and anything that shows a slice of shop data inside a third-party frame. Signals worth noticing include apps that render data instantly without a visible permission prompt, apps whose network calls go to a different host than the main application, and features that behave identically for every role.
Compare the restricted user's view with the privileged user's view of the same resource, and state clearly that the request succeeded without the restricted user's authority.
One practical note from this case: once a platform fixes the underlying trust model, reports against individual apps that still fail to check privileges may be treated as duplicates. Check whether the root cause has already been addressed before investing time in a single app.
Glossary
- Request: a message your browser or an app sends to a server asking for something, such as a page or a list of orders.
- Response: the message the server sends back, containing the data or an error.
- Token: a short string that proves who is making a request, like a temporary pass.
- Session: the period during which a server remembers that a particular person is logged in.
- Cookie: a small piece of data a site stores in your browser so it can recognise you on later requests.
- Role: a named set of permissions given to a staff account, such as
MEMBER. - Permission: a specific allowance, such as the right to view orders.
- Privilege escalation: reaching data or actions that your level of permission should not allow.
- Broken access control: a flaw where the system fails to check whether a person is allowed to do what they are asking.
- Confused deputy: a situation where a trusted component with broad authority is tricked into acting on behalf of someone with less authority.
- Trust boundary: the line between two components that trust each other, where checks must happen.
- Scope: the limit on what a token is allowed to do.
- API: the interface a program uses to talk to another program, as opposed to a page a person clicks.
- Multi-tenant: a platform where many separate customers share the same infrastructure, each seeing only their own data.
- False positive: a finding that looks like a bug but is not, because the behaviour is intended or harmless.
- Duplicate: a report describing a problem that has already been reported or fixed.