A 'Full access' administrator is able to see the shop owners user details
A 'Full access' administrator could see the shop owner's user profile through the user listing endpoint, even though direct access to that user's record was forbidden. This leaked the shop owner's user details, including the last-seen IP address.
- Triaged in 10 days
- Fixed in 11 days
- Paid in 11 days
- Disclosed after 11 days
Summary by the program
The IP address last seen for each store user was returned through Shopify's API. We removed the IP address information from the json response returned by the API.
The report
Description
A 'Full access' administrator is usually forbidden to see the shop owners user profile. But the endpoint shop.myshopify.com/admin/users.json does disclose the shop owners profile. As the user listing includes all fields of users this does leak the user details of the shop owner.
A direct query to shop.myshopify.com/admin/users/{USERID}.json does however honer the fact that this shouldn't be allowed by returning { "error": "Forbidden from viewing user" }.
Mitigation
Filter out the shop owner from the user listing provided by the /admin/users.json endpoint for 'Full access' administrators.
What the report shows
The target is Shopify's store administration API. The feature under scrutiny is the user listing endpoint, shop.myshopify.com/admin/users.json, and the per-user endpoint, shop.myshopify.com/admin/users/{USERID}.json.
Shopify's permission model distinguishes a 'Full access' administrator from the shop owner. A 'Full access' administrator is normally forbidden from viewing the shop owner's user profile. The researcher found that this restriction was enforced on the single-user endpoint but not on the listing endpoint.
Step by step:
-
The researcher requested the user listing as a 'Full access' administrator:
-
The response included the shop owner's profile. Because the listing returns all fields of each user, the shop owner's user details were disclosed.
-
The researcher then requested the shop owner's profile directly through the single-user endpoint:
-
That request was correctly refused, returning:
{ "error": "Forbidden from viewing user" }
The inconsistency is the whole finding: the same data is protected on one route and exposed on another. The report's mitigation is to filter the shop owner out of the listing returned by /admin/users.json for 'Full access' administrators.
The program's summary states that the IP address last seen for each store user was returned through the API, and that this IP address information was removed from the JSON response. The report does not give a severity rating or a CVSS score. The bounty was 500.00 USD and the report was disclosed on 2015-11-10.
Root cause
The report does not analyse the root cause; it only shows the detail endpoint refused the request while the listing returned the owner's profile.
Impact
A 'Full access' administrator, who is meant to be kept out of the shop owner's profile, could read the owner's user details through the listing. The report does not enumerate which fields were exposed beyond noting that the listing includes all fields of users, and the program's summary confirms that a last-seen IP address was among the data returned. The practical impact is disclosure of the shop owner's user details, which the role model intends to withhold. The report does not claim that credentials, tokens or the ability to modify the owner account were exposed.
How this kind of bug works
Broken access control at the object level appears when an application checks whether a caller may use a feature but not which records the caller may see within it. Collection endpoints are a common weak point because developers reason about them as "list what belongs to this tenant" rather than "list what this principal is authorised to read". The filter that protects the detail view is often a separate function, and the listing query never calls it.
A second factor is over-serialisation: endpoints frequently return the full model, including fields that no caller of that endpoint needs. Even when record-level access is correct, returning every column widens the blast radius of any mistake.
Defences that stop this class:
- A single authorisation layer that both detail and collection endpoints consult, so the rule is defined once.
- Query-level scoping: the listing query itself excludes records the caller may not read, rather than filtering after retrieval.
- Response schemas per role, so a listing returns only the fields that role is entitled to.
- Tests that assert a restricted principal sees the same record set through every route that can reach the data.
How to test for it
- Map every endpoint that returns a collection of objects, and the corresponding detail endpoint for a single object. Include JSON APIs, export functions, search, autocomplete, activity feeds and admin dashboards.
- Establish two principals: a low-privileged one and a high-privileged one whose records the low-privileged principal should not see. Note the identifiers of the protected records from the high-privileged session.
- As the low-privileged principal, request the detail endpoint for a protected identifier. A refusal here is the baseline.
- Request the collection endpoint with the same session. Inspect the full response body, not just the rendered page, for the protected identifier or its attributes.
- Vary the collection request: pagination, sorting, filters, search parameters, field selectors, alternate formats (JSON, XML, CSV), and older API versions. A filter applied in one view is often missing in another.
- Compare field sets between roles. A record that is legitimately visible may still leak fields that the role should not see.
A positive result is a protected record, or a field of it, appearing in a response to a principal that is refused the same record on the detail route. Record both responses as evidence.
Common false positives:
- The record is visible because the low-privileged principal genuinely has read access to it, and only editing is restricted.
- The identifier appears in a reference (an owner field, a count, a foreign key) without any of the protected attributes.
- The data comes from a cached or shared view that the application intentionally exposes to all members of the tenant.
How it is fixed
- Apply the same record-level authorisation check to collection queries as to detail queries, ideally through one shared policy function.
- Filter protected records out in the query, not after serialisation.
- Filter the shop owner out of the listing returned by
/admin/users.jsonfor 'Full access' administrators. - Add regression tests that request every route reaching a protected record as a restricted principal and assert the record is absent.
Hunting notes
This bug class hides wherever a product has both a list view and a detail view over the same objects, and where roles differ in what they may see rather than what they may do. Multi-tenant admin panels, team and member management screens, audit logs, billing contact lists and API exports are typical. Owner, billing and super-admin accounts are the records most often meant to be hidden from delegated administrators.
Recon signals: role models with names like 'full access', 'admin' or 'manager' that are documented as excluding certain accounts; API documentation that lists a collection endpoint alongside a detail endpoint with stricter wording; error strings such as a forbidden-view message on the detail route, which tell you a rule exists and is worth testing elsewhere.
To make the report land, show the contrast directly: the refused detail request and the collection response containing the protected record, with the sensitive values redacted but the structure intact. State which principal you used, which record should have been hidden, and which fields leaked. Keep the proof minimal and reproducible, and propose the filter as the fix.
What happened, in plain words
Shopify is a platform that lets people run an online shop. Each shop has an owner, and the owner can invite other people to help run it. One role is called a 'Full access' administrator, which is not the shop owner.
Shopify's rules say that a 'Full access' administrator must not be able to look at the shop owner's user profile. The researcher, brakhane, found that this rule was only half enforced. There are two ways to ask Shopify's API for user information: one asks for a single user, the other asks for the whole list of users. The single-user route refused the request, but the list route handed over the owner's details anyway.
An API (Application Programming Interface) is the part of a website that programs talk to, rather than people clicking buttons. When your browser loads a page, it sends a request to a server and gets a response back. An API request works the same way: you ask for a specific address (an endpoint) and the server answers, often with data in a format called JSON, which is just structured text made of names and values.
The report does not give a severity rating or a CVSS score. The bounty was 500.00 USD and the report was disclosed on 2015-11-10.
Step by step
- The researcher, logged in as a 'Full access' administrator, asked for the list of users:
GET is the request method used to fetch something without changing it. shop.myshopify.com is the shop's address, /admin/users.json is the path to the user list, and .json signals that the answer should come back as JSON data.
-
The answer included the shop owner's profile. The listing returns every field of every user, so the owner's user details were disclosed. This is the bug: the data arrived through a door that was supposed to stay shut for this role.
-
To confirm the rule really existed, the researcher asked for the owner's profile directly, one user at a time:
{USERID} is a placeholder for the owner's unique number or identifier. Every user account has one, and the single-user route uses it to pick out exactly one record. This step matters because it tests the same data through a different route, which is how the inconsistency was exposed.
- That request was correctly refused, and the server answered:
{ "error": "Forbidden from viewing user" }
In JSON, the curly braces hold an object, "error" is the name of a field and "Forbidden from viewing user" is its value. In plain terms, the server said: you are not allowed to see this user. This is the contrast at the heart of the finding: the same information is protected on one route and exposed on another.
The report's suggested fix is to filter the shop owner out of the user listing returned by /admin/users.json for 'Full access' administrators. The program's own summary states that the IP address last seen for each store user was returned through the API, and that this IP address information was removed from the JSON response. An IP address is the numeric label a device uses on a network, so it can hint at where someone connected from.
In general, this kind of bug
This is a broken access control bug, and more precisely an object-level one. Access control means deciding who is allowed to do or see what. Object-level means the decision is about individual records, not just about features: it is not enough to ask "may this person use the user list?", you must also ask "which users in that list may this person see?".
A useful comparison is a hotel. The front desk may let a manager into the building and even into the staff corridor, but a particular guest's room stays locked to them. If the manager can walk the corridor and read every guest's name and details off the doors, the lock on the one room achieves nothing.
List endpoints are a common weak spot. Developers often think of them as "show everything belonging to this shop" rather than "show what this particular person is entitled to read". The check that guards the single-record view is often written separately, and the list query never calls it. A second factor is over-sharing: endpoints frequently return the full record, including fields nobody using that endpoint needs, which makes any mistake worse.
Defences that stop this class of bug:
- One shared permission check that both the single-record and the list route consult, so the rule is written once.
- Filtering inside the database query itself, so forbidden records are never fetched, rather than removed afterwards.
- Response formats tailored per role, so a list returns only the fields that role may see.
- Tests that confirm a restricted person sees the same set of records through every route that can reach the data.
How to test for it
- List every endpoint that returns a collection of things, and the matching endpoint that returns one thing. Include APIs, export functions, search, autocomplete and admin dashboards.
- Set up two accounts: a low-privileged one and a high-privileged one whose records the low-privileged account should not see. Note the identifiers of the protected records from the high-privileged session.
- As the low-privileged account, request the single-record endpoint for a protected identifier. A refusal is your baseline: it proves a rule exists.
- Request the collection endpoint with the same session. Read the full response body, not just the page as drawn on screen, looking for the protected identifier or its details.
- Vary the collection request: pagination (page by page), sorting, filters, search terms, field selectors, other formats such as XML or CSV, and older API versions. A filter present in one view is often missing in another.
- Compare which fields each role receives. A record that is legitimately visible may still leak fields the role should not see.
A positive result is a protected record, or a field of it, appearing in a response to an account that is refused the same record on the single-record route. Keep both responses as evidence.
Common false positives:
- The record is visible because the low-privileged account genuinely may read it, and only editing is restricted.
- The identifier appears only as a reference, such as an owner field or a count, without any of the protected details.
- The data comes from a shared view the application deliberately shows to all members of the shop.
How it is fixed
- Apply the same record-level check to list queries as to single-record queries, ideally through one shared function.
- Filter protected records out in the query, not after the data has been assembled.
- Filter the shop owner out of the user listing returned by
/admin/users.jsonfor 'Full access' administrators. - Add regression tests that request every route reaching a protected record as a restricted account and assert the record is absent.
Glossary
- API: the part of a service that programs talk to, sending requests and receiving structured responses.
- Endpoint: a specific address on a server that accepts a particular kind of request.
- Request: a message a browser or program sends to a server asking for something.
- Response: the server's answer to a request, often containing data.
- GET: the request method used to fetch data without changing it.
- JSON: a text format for structured data, built from names and values inside braces and brackets.
- Field: one named piece of data inside a JSON object, such as
"error". - Identifier (USERID): a unique value that picks out one record, such as one user account.
- Collection endpoint: a route that returns a list of records rather than a single one.
- Detail endpoint: a route that returns one specific record.
- Access control: the rules deciding who may do or see what.
- Object-level access control: access rules applied to individual records, not just to whole features.
- Privilege escalation: gaining access to data or actions that your role is not meant to allow.
- Role: a named set of permissions, such as 'Full access' administrator or shop owner.
- Broken access control: a bug where the permission rules are missing, incomplete or applied inconsistently.
- Over-serialisation: returning more fields in a response than the caller needs.
- IP address: the numeric label a device uses on a network, which can hint at where a connection came from.
- Bounty: a payment made to a researcher who reports a valid security bug.
- CVSS: a standard scoring system for measuring how severe a vulnerability is.
- False positive: a finding that looks like a bug but is actually intended behaviour.