List of devices is accessible regardless of the account limitations
- Triaged in 44 hours
- Fixed in 7 days
- Paid in 7 days
- Disclosed after 7 days
Summary by the program
The /admin/mobile_devices.json endpoint could disclose the SNS tokens for each connected mobile device. While this token would not be useful for an attacker on its own, we have removed the endpoint since it was no longer useful.
The report
List of devices is accessible regardless of the account limitations.
PoC
. Create a limited account A with no rights. . Log some devices with a different account B. . From account A, GET /admin/mobile_devices.json. . List of devices.
What the report shows
The target is Shopify's admin interface, and the feature in question is the mobile device listing. The endpoint /admin/mobile_devices.json returned the list of connected mobile devices, and with it the SNS tokens associated with each device.
The researcher's point was that this list was reachable regardless of the account's limitations. The proof of concept is short and is reproduced here exactly as given:
. Create a limited account A with no rights.
. Log some devices with a different account B.
. From account A, GET /admin/mobile_devices.json.
. List of devices.
So the setup is two accounts: account A is deliberately limited and has no rights, while account B is used to register some mobile devices. The request is then made from account A:
GET /admin/mobile_devices.json
The result is that account A receives the list of devices, even though it should not have access to that data. The report does not include the response body, so the exact JSON structure is not shown.
The program's summary adds context on what the data contained: the endpoint could disclose the SNS tokens for each connected mobile device. The program also states that such a token would not be useful to an attacker on its own. The program states it removed the endpoint because it was no longer useful.
Root cause
The report does not state the cause. The list was reachable regardless of the account's limitations. Because the check was absent rather than wrong, the limitation on account A had no effect: the account could not use admin features, yet the endpoint still answered its request.
Impact
In this report the impact is bounded by what the leaked value is worth. The program states plainly that the SNS token would not be useful to an attacker on its own, so the practical consequence is information disclosure: an account with no rights could enumerate the mobile devices connected to the shop and obtain their tokens. The report does not describe any follow-on attack, and none should be assumed. The finding is that a limited account could read the device list.
How this kind of bug works
This is a broken access control issue, specifically a missing function-level or object-level authorisation check on an API route. Web applications usually enforce permissions in one of two places: in shared middleware that wraps a group of routes, or inside each handler. When a route is added later, or moved, or exposed as a JSON variant of an existing page, it is easy for it to fall outside the middleware that protects its neighbours. The route still resolves, the framework still routes the request, and the handler runs with whatever identity the session provides, without asking whether that identity may perform the action.
The classic pattern is a page that is protected and an API twin that is not. The HTML view of a resource goes through a controller that checks the role, while the .json endpoint used by a mobile client or an internal tool queries the model directly. The same applies to identifiers: an endpoint may check that the user is logged in but not that the requested object belongs to them, which is the object-level variant of the same mistake.
Defences are layered. Authorisation should be enforced server-side on every route, ideally centrally so that a new endpoint cannot be added without a policy, and default-deny so that an unlisted route is refused rather than allowed. Responses should carry only the fields the caller needs, which limits the damage when a check is missed. Logging and alerting on access to sensitive endpoints from low-privilege sessions helps detect the gap in production.
How to test for it
- Map the application with two accounts of different privilege, ideally one fully privileged and one with the minimum the product allows. Note every endpoint the privileged account touches, including JSON and API variants of pages.
- For each endpoint, replay the request with the low-privilege session. Compare status code, body length and content against the privileged response.
- Pay attention to format variants: if
/admin/thingsis protected, try/admin/things.json,/admin/things.xml, and any API prefix the product uses. - Test object-level access by changing identifiers in requests made from the low-privilege account, and check whether records belonging to the other account come back.
- Test unauthenticated access to the same routes, since a missing check often means no session is required either.
A positive result is a response from the low-privilege session that contains data or actions the account should not have: a full list where an empty one was expected, another account's records, or a successful state change. Record the request and the response, and show the privileged account's equivalent request for contrast.
Common false positives: endpoints that return only public data, responses that are empty or contain a generic error but with status 200, and differences caused by caching or by the low-privilege account legitimately owning the object. Confirm that the data is genuinely sensitive and belongs to another principal before reporting.
How it is fixed
Enforce an authorisation check on the endpoint, in shared middleware where possible, so that the route cannot be reached without the required role. Apply default-deny to new routes. Reduce the response to the fields the caller needs, and stop returning credentials such as push tokens to clients that do not require them. Where an endpoint is no longer used, remove it, as was done here. Add regression tests that call each sensitive route with a low-privilege session and assert a refusal.
Hunting notes
These bugs cluster around routes that are easy to forget: JSON and XML variants of admin pages, endpoints added for mobile apps, internal tools, export and reporting URLs, and anything with a version prefix such as /v1/ or /api/. Recon signals include JavaScript bundles that reference admin paths, mobile app traffic captured through a proxy, and directory or route listings that reveal siblings of known endpoints. Comparing the responses of two accounts is the cheapest reliable test.
If the data is low value on its own, say so, as the program did here, and let the broken access control carry the finding.
What happened, in plain words
Shopify is a platform that lets people run online shops. Each shop has an admin area, the private back office where the owner manages products, orders and settings. Only people the owner has invited, with the permissions the owner gives them, are supposed to see what is in that back office.
One part of the admin area listed the mobile devices connected to a shop. A mobile device here means a phone or tablet that has been linked to the shop, for example through a Shopify mobile app. The list was available at a web address ending in /admin/mobile_devices.json. The .json ending means the answer comes back as JSON, a plain text format that computers use to exchange structured data, rather than as a web page for a human to look at.
The researcher found that this list could be read by an account that had no rights at all. The program's own summary says the endpoint could disclose the SNS tokens for each connected mobile device. An SNS token is a credential used to send push notifications to a device, a short string that acts like a key for that delivery channel. The program also says that such a token would not be useful to an attacker on its own. The program states it removed the endpoint because it was no longer useful.
The report
The finding is stated in one line: the list of devices is accessible regardless of the account limitations. The proof of concept is short and is reproduced exactly as given:
. Create a limited account A with no rights.
. Log some devices with a different account B.
. From account A, GET /admin/mobile_devices.json.
. List of devices.
Step by step, and why each step matters:
- Create a limited account A with no rights. Two accounts are needed because the whole question is whether one account can see another account's data. Account A is the test subject: it is deliberately given the minimum the product allows, so anything it can reach beyond its own business is a gap. Without a low-privilege account there is nothing to compare against.
- Log some devices with a different account B. Account B plays the role of the legitimate owner. Registering devices under B creates the data that A should never see. If no devices existed, an empty answer from A would prove nothing.
- From account A, GET /admin/mobile_devices.json. This is the actual test.
GETis the HTTP method a browser uses when it simply asks for something, as opposed to sending data. The request is:
GET /admin/mobile_devices.json
The path starts with /admin/, which signals that the route is meant to live inside the protected back office. The .json suffix asks for the machine-readable version of the listing. The step matters because the request is made while logged in as A, so the server knows exactly who is asking and can decide whether to answer.
4. List of devices. Account A receives the list, even though it should not have access to that data. The report does not include the response body, so the exact JSON structure is not shown.
The program's summary adds what the data contained: the SNS tokens for each connected mobile device. It also states that such a token would not be useful to an attacker on its own. The practical consequence is information disclosure: an account with no rights could read the list of devices. The report does not describe any follow-on attack, and none should be assumed. The finding is that a limited account could read the device list.
In general, how this kind of bug works
This is a broken access control issue, specifically a missing authorisation check on an API route. Authorisation is the server deciding, for each request, whether the person making it is allowed to do this particular thing. Authentication is only the earlier question of who the person is. A useful comparison is a hotel: authentication is showing your passport at reception and getting a key card; authorisation is the door lock checking that your card opens this room and not the one next door. A missing check is a corridor where every card opens every door.
Web applications usually enforce permissions in one of two places: in shared middleware that wraps a group of routes, or inside each handler. Middleware is code that runs before the real handler and can refuse the request early, like a guard at the entrance to a wing of the building. When a route is added later, or moved, or exposed as a JSON variant of an existing page, it is easy for it to fall outside the middleware that protects its neighbours. The route still resolves, the framework still routes the request, and the handler runs with whatever identity the session provides, without asking whether that identity may perform the action.
The classic pattern is a page that is protected and an API twin that is not. The HTML view of a resource goes through a controller that checks the role, while the .json endpoint used by a mobile client or an internal tool queries the data directly. The same applies to identifiers: an endpoint may check that the user is logged in but not that the requested object belongs to them, which is the object-level variant of the same mistake.
Defences are layered. Authorisation should be enforced server-side on every route, ideally centrally so that a new endpoint cannot be added without a policy, and default-deny so that an unlisted route is refused rather than allowed. Responses should carry only the fields the caller needs, which limits the damage when a check is missed. Logging and alerting on access to sensitive endpoints from low-privilege sessions helps detect the gap in production.
In general, how to test for it
- Map the application with two accounts of different privilege, ideally one fully privileged and one with the minimum the product allows. Note every endpoint the privileged account touches, including JSON and API variants of pages.
- For each endpoint, replay the request with the low-privilege session. Compare status code, body length and content against the privileged response.
- Pay attention to format variants: if
/admin/thingsis protected, try/admin/things.json,/admin/things.xml, and any API prefix the product uses. - Test object-level access by changing identifiers in requests made from the low-privilege account, and check whether records belonging to the other account come back.
- Test unauthenticated access to the same routes, since a missing check often means no session is required either.
A positive result is a response from the low-privilege session that contains data or actions the account should not have: a full list where an empty one was expected, another account's records, or a successful state change. Record the request and the response, and show the privileged account's equivalent request for contrast.
Common false positives: endpoints that return only public data, responses that are empty or contain a generic error but with status 200, and differences caused by caching or by the low-privilege account legitimately owning the object. Confirm that the data is genuinely sensitive and belongs to another principal before reporting.
In general, how it is fixed
Enforce an authorisation check on the endpoint, in shared middleware where possible, so that the route cannot be reached without the required role. Apply default-deny to new routes. Reduce the response to the fields the caller needs, and stop returning credentials such as push tokens to clients that do not require them. Where an endpoint is no longer used, remove it, as was done here. Add regression tests that call each sensitive route with a low-privilege session and assert a refusal.
Glossary
- Admin area: the private back office of an online shop where the owner manages products, orders and settings.
- API: a set of web addresses a program calls to read or change data, usually returning machine-readable formats instead of web pages.
- Authentication: proving who you are, for example by logging in.
- Authorisation: the server deciding whether the identified user is allowed to perform a specific action.
- Broken access control: a flaw where the server does not correctly enforce who may access what.
- Bounty: a payment a company makes to a researcher who reports a valid security problem.
- Cookie: a small piece of data a site stores in your browser so it can recognise your session on later requests.
- CVSS: a standard scoring system that rates the severity of a vulnerability.
- Default-deny: a policy where anything not explicitly allowed is refused.
- Endpoint: a specific web address and method that a server responds to, such as
/admin/mobile_devices.json. - GET: the HTTP method used to ask for a resource without changing it.
- Handler: the piece of server code that runs when a particular route is requested.
- HTTP: the protocol browsers and servers use to exchange requests and responses.
- Information disclosure: a flaw where data is revealed to someone who should not see it.
- JSON: a plain text format for structured data, made of keys and values.
- Middleware: code that runs before the main handler and can allow or refuse a request.
- Object-level authorisation: checking that the specific record requested belongs to the user, not just that the user is logged in.
- Proof of concept (PoC): a short set of steps that reliably demonstrates a bug.
- Push notification: a message delivered to a phone or tablet by a service, here using an SNS token.
- Request: the message a browser sends to a server asking for something.
- Response: the message a server sends back, containing a status code and usually a body.
- Route: the mapping between a web address and the code that handles it.
- Session: the server's record of your logged-in state, usually tied to a cookie.
- SNS token: a credential used to send push notifications to a device; the program states it is not useful to an attacker on its own.
- Status code: a number in the response saying how the request went, such as 200 for success.
- Vulnerability: a weakness in software that can be used to break its intended behaviour.