An administrator without any permission is able to get order notifications using his APNS Token.
An administrator without the 'Settings' permission could still add a mobile device for order notifications via the mobile_devices.json endpoint, bypassing the UI restriction. An attacker with such an account could receive order notifications despite lacking permission.
- Triaged in 2 days
- Fixed in 11 days
- Paid in 22 days
- Disclosed after 22 days
Description
An administrator who lacks the 'Settings' permission is not able to add notifications through the UI. But the endpoint shop.myshopify.com/admin/mobile_devices.json does allow the unprivileged user to add his own device.
PoC
This PoC simply show how to get & re-use the mobile APNS Token.
. Log in the Shopify phone app with a full access account
. Intercept the request to POST /admin/mobile_devices.json
. Remove all permissions of that account.
. Remove the mobile notification added.
. Replay the request to POST /admin/mobile_devices.json
The order notification has been added in /admin/settings/notifications
Make an order, and the mobile will get the notification.
What the report shows
The target is Shopify's admin, specifically the mobile device registration used for push notifications. The feature under scrutiny is the endpoint shop.myshopify.com/admin/mobile_devices.json, which lets an account register a mobile device (identified by an APNS token) so that the phone receives order notifications.
The researcher's observation is a permission mismatch. An administrator who lacks the 'Settings' permission cannot add notifications through the UI, yet the JSON endpoint behind that UI still accepts the request from that same unprivileged user and lets them add their own device.
The proof of concept is short and is reproduced here exactly as the report gives it:
- Log in the Shopify phone app with a full access account
- Intercept the request to
POST /admin/mobile_devices.json - Remove all permissions of that account.
- Remove the mobile notification added.
- Replay the request to
POST /admin/mobile_devices.json
The report does not include the captured request itself, so the headers, body and parameters of the POST are not shown. What it does say is the result: the order notification was added and appeared in /admin/settings/notifications. Making an order then caused the mobile device to receive the notification.
The report records a bounty of 500.00 USD. It does not state a severity rating or a CVSS score, and it does not describe a fix.
Root cause
The report shows a permission mismatch on a state-changing endpoint. The UI hides the notification settings from an administrator without the 'Settings' permission, but the endpoint that actually creates the mobile device record does not enforce the same permission. The UI hides the feature, yet a direct request to the endpoint is still accepted.
Impact
Within the report's own framing, an administrator with no permissions can still register a device and receive order notifications. The researcher demonstrates this by replaying the request after stripping all permissions from the account and removing the previously added notification. The practical consequence shown is that a device registered by the unprivileged account receives order notifications. The report does not go further than this, so any wider impact is not established in the text.
How this kind of bug works
This is a broken function-level authorisation issue. Applications commonly gate features in two places: the interface, which hides controls the user should not use, and the server, which must independently decide whether the caller is allowed to perform the action. When only the interface enforces the rule, the server trusts any well-formed request that reaches it. Because the endpoint is a normal authenticated JSON API, a user who can log in can call it directly with a tool, regardless of what the UI shows them.
The bug class appears wherever a permission model exists but is checked inconsistently: some routes check a role or permission, sibling routes that touch the same resource do not. It is especially common around settings, device registration, notification preferences, integrations and other secondary features that were added after the main permission framework.
Defences are straightforward in principle: enforce authorisation on every endpoint server-side, ideally in a central place (middleware, policy layer or per-resource guard) so that new routes inherit the check, and test that the check matches the permission the UI implies.
How to test for it
A general method for this class:
- Map the permission model. With a high-privilege account, enumerate the settings and configuration screens and note which permission each one requires. Record the requests each screen makes.
- Create or use a low-privilege account that lacks the relevant permission, and confirm the UI hides the feature.
- Replay the recorded requests from the low-privilege session. Send the same method, path, headers and body, changing only the session credential. Try both the exact body captured and variants with fields removed or altered.
- Watch for a positive result: a success status and a persistent state change, such as a new record appearing in a listing, a notification being delivered, or a setting taking effect. Confirm the change by reading it back through a privileged view, not just by the response code.
- Repeat across sibling endpoints that touch the same resource, since the check is often present on one route and missing on another.
Common false positives: the request returns 200 but nothing is persisted; the action succeeds only for the user's own account in a way the product intends (self-service settings are often deliberately open); the low-privilege account actually retains an inherited role that grants the permission; or the change is visible only in the attacker's own session and has no effect on shared state. Verify persistence and cross-account effect before reporting.
How it is fixed
The standard fix is to enforce the same permission on the server that the UI implies, at the controller or policy layer, for every method that reads or writes the resource, not just the one the UI calls. Centralising authorisation so new endpoints cannot be added without a check reduces recurrence. Regression tests should exercise each endpoint with a user who lacks the permission and assert a denial.
Hunting notes
This bug class tends to hide in secondary features: notification and device registration, webhooks, API tokens, export jobs, integrations and per-user preferences. These are often built after the core permission model and wired to their own handlers. Recon signals include endpoints whose UI is gated but which appear in traffic from a privileged session, JSON APIs under admin paths, and routes that accept identifiers or tokens supplied by the client.
To make a report land, show the permission boundary clearly: the privileged request, the same request from an account without the permission, and evidence that the state change persisted and had an observable effect (a delivered notification, a record visible to another user, a setting that changed behaviour). Keep the reproduction minimal and state exactly which permission was removed.
What happened, in plain words
Shopify is an online platform that lets people build and run online stores. Its admin area is where store owners and their staff manage orders, products and settings. One of its features is push notifications: when a new order arrives, a phone running the Shopify app can receive an alert. To make that work, the app registers the phone with the store's admin, and the phone is identified by an APNS token. APNS stands for Apple Push Notification Service, Apple's system for delivering alerts to iPhones and iPads. The token is a long identifier that tells Shopify which specific device to send the alert to.
The report looks at the endpoint shop.myshopify.com/admin/mobile_devices.json. An endpoint is simply a web address that a program (or a browser) sends a request to. A request is the message your browser or app sends to a server: it says what you want to do, for example "create a new mobile device record". The server is the computer that runs Shopify and answers the request.
The researcher found a mismatch. An administrator account that does not have the 'Settings' permission cannot add notifications through the normal user interface (the screens and buttons you see in a browser). But the endpoint behind that screen still accepts the request from that same account and lets it register a device. In other words, the button is hidden, but the door behind it is still open.
The proof of concept (PoC, a short set of steps that demonstrates the bug) is reproduced exactly as the report gives it:
- Log in the Shopify phone app with a full access account
- Intercept the request to
POST /admin/mobile_devices.json - Remove all permissions of that account.
- Remove the mobile notification added.
- Replay the request to
POST /admin/mobile_devices.json
Here is what each step means and why it matters:
- Log in with a full access account. You start with an account that can do everything, so you can capture what a legitimate, fully privileged request looks like. The phone app is used to produce the request that registers the device.
- Intercept the request. Intercepting means capturing the request before it leaves your device, using a tool that sits between the app and the server. The captured request is a
POSTto/admin/mobile_devices.json.POSTis an HTTP method used when you want the server to create or change something. The report does not show the captured request itself, so its headers and body are not available here. - Remove all permissions. You take away every permission from that account, so it should no longer be allowed to configure notifications. This creates the low-privilege situation the test needs.
- Remove the mobile notification added. You remove the mobile notification that was added, so the replayed request is what adds it back.
- Replay the request. Replaying means sending the captured request again, now from the account with no permissions. If the server still accepts it, the permission check is missing.
The result, according to the report, is that the order notification was added and appeared in /admin/settings/notifications. Making an order then caused the mobile device to receive the notification. The report records a bounty of 500.00 USD. It does not state a severity rating or a CVSS score, and it does not describe a fix.
In general, how this kind of bug works
This is a broken function-level authorisation issue. Authorisation is the process of deciding whether a logged-in user is allowed to perform a particular action. Function-level means the check is about a specific feature or endpoint, not just about whether you are logged in at all.
Applications usually guard a feature in two places. The first is the interface: the screen hides buttons or menu items the user should not use. The second is the server: it must independently decide, for every request, whether the caller is allowed to do what is being asked. When only the interface enforces the rule, the server trusts any well-formed request that reaches it. A user who can log in can call the endpoint directly with a tool, regardless of what the interface shows them. A useful comparison is a hotel: the reception desk may not give you a key to the pool, but if the pool door has no lock, you can still walk in.
The bug class appears wherever a permission model exists but is checked inconsistently: some routes check a role or permission, while sibling routes that touch the same resource do not. It is especially common around settings, device registration, notification preferences, integrations and other secondary features that were added after the main permission framework.
Defences are straightforward in principle: enforce authorisation on every endpoint server-side, ideally in a central place (middleware, policy layer or per-resource guard) so that new routes inherit the check, and test that the check matches the permission the interface implies.
In general, how to test for it
A general method for this class:
- Map the permission model. With a high-privilege account, go through the settings and configuration screens and note which permission each one requires. Record the requests each screen makes.
- Create or use a low-privilege account that lacks the relevant permission, and confirm the interface hides the feature.
- Replay the recorded requests from the low-privilege session. Send the same method, path, headers and body, changing only the session credential. Try both the exact body captured and variants with fields removed or altered.
- Watch for a positive result: a success status and a persistent state change, such as a new record appearing in a listing, a notification being delivered, or a setting taking effect. Confirm the change by reading it back through a privileged view, not just by the response code.
- Repeat across sibling endpoints that touch the same resource, since the check is often present on one route and missing on another.
Common false positives: the request returns 200 but nothing is persisted; the action succeeds only for the user's own account in a way the product intends (self-service settings are often deliberately open); the low-privilege account actually retains an inherited role that grants the permission; or the change is visible only in the attacker's own session and has no effect on shared state. Verify persistence and cross-account effect before reporting.
In general, how it is fixed
The standard fix is to enforce the same permission on the server that the interface implies, at the controller or policy layer, for every method that reads or writes the resource, not just the one the interface calls. Centralising authorisation so new endpoints cannot be added without a check reduces recurrence. Regression tests should exercise each endpoint with a user who lacks the permission and assert a denial.
In general, where to look
This bug class tends to hide in secondary features: notification and device registration, webhooks, API tokens, export jobs, integrations and per-user preferences. These are often built after the core permission model and wired to their own handlers. Recon signals include endpoints whose interface is gated but which appear in traffic from a privileged session, JSON APIs under admin paths, and routes that accept identifiers or tokens supplied by the client.
To make a report land, show the permission boundary clearly: the privileged request, the same request from an account without the permission, and evidence that the state change persisted and had an observable effect (a delivered notification, a record visible to another user, a setting that changed behaviour). Keep the reproduction minimal and state exactly which permission was removed.
Glossary
- APNS token: a long identifier issued by Apple Push Notification Service that tells a server which specific Apple device to send a push notification to.
- Authorisation: the process of deciding whether a logged-in user is allowed to perform a particular action.
- Broken function-level authorisation: a bug where a specific feature or endpoint does not check whether the user has the permission it requires.
- Bounty: a payment made by a company to a researcher who reports a valid security bug.
- CVSS: a standard scoring system for the severity of security vulnerabilities.
- Endpoint: a web address that a program or browser sends a request to.
- HTTP method: the verb in a request that says what kind of action is wanted, such as
GETto read orPOSTto create or change. - Interface (UI): the screens, buttons and menus a user sees and interacts with.
- Intercept: to capture a request before it leaves the device, usually with a tool that sits between the app and the server.
- JSON: a text format for structured data, commonly used by APIs.
- Middleware: software that sits in the path of every request and can apply checks, such as authorisation, before the request reaches the feature code.
- Permission: a rule that says whether an account may use a particular feature.
- Policy layer: a central place in the code where authorisation rules are defined and applied.
- Proof of concept (PoC): a short set of steps that demonstrates a bug.
- Push notification: an alert delivered to a phone by a service such as APNS.
- Replay: to send a previously captured request again.
- Request: the message a browser or app sends to a server asking it to do something.
- Server: the computer that runs the application and answers requests.
- Session credential: the value, such as a cookie or token, that identifies which logged-in user is making a request.
- State change: a lasting change to data stored on the server, such as a new record being created.