Accessing Payments page and adding payment methods with limited access accounts
Users with only the Orders permission could access the store's payment gateway information and add or change payment settings, which should have required the Settings permission. This allowed limited-access users to modify payment data without administrator notice.
Originally disclosed on HackerOne
- Triaged in under an hour
- Fixed in 30 days
- Paid in 36 days
- Disclosed after 36 days
Summary by the program
Users with the Orders permission were allowed to see the store's payment gateway information. This page should have been restricted to users with the Settings permission only.
Summary by the researcher
Using this vulnerability a User with limited access/ No access to Settings could add/alter/change Payment settings while having disallowed by the Administrator.
It was possible to use this Authorization bypass to add payment data without administrator notice. Shopify resolved this issue by applying the authorization check on that function
What the report shows
The report concerns the Payments page that holds a store's payment gateway information. The weakness is classified as privilege escalation: a user account with limited permissions could reach functionality that should have been reserved for administrators.
The researcher's summary states that a user with limited access, or no access at all, to Settings could add, alter or change payment settings even though the administrator had disallowed this. The program's own summary narrows the cause to one permission boundary: users holding the Orders permission were allowed to see the store's payment gateway information, when that page should have been restricted to users with the Settings permission only.
In practical terms the sequence was:
- An administrator creates a staff account with limited permissions, granting
Ordersbut withholdingSettings. - That staff user reaches the payments area and can view the store's payment gateway information.
- The same user can add or change payment data, which the administrator had intended to prevent.
The researcher describes this as an authorisation bypass that allowed payment data to be added without the administrator noticing. Shopify fixed it by applying the authorisation check on that function. The report was disclosed on 10 November 2015 and a bounty of 500.00 USD was paid. No severity rating or CVSS score is given, and the report contains no requests, parameters, headers or response bodies.
Root cause
The mistake is a mismatch between the permission that guards a page and the permission that the page's actions actually require. The Payments page was reachable by anyone holding Orders, so the check in front of it was tied to the wrong privilege. The report says the fix was to apply the authorisation check on the function itself, which suggests the write action (adding or altering payment data) was not independently verifying the caller's permission and relied on the page-level gate. When a sensitive write is protected only by the navigation or view check, any route that reaches the underlying function inherits that weaker check. The report does not describe the code path or the exact mechanism.
Impact
Within the report's own framing, a limited staff account could view the store's payment gateway information and add or change payment settings despite the administrator's restrictions. The researcher notes that payment data could be added without administrator notice. The report does not state what an attacker could do with the gateway information itself, whether funds could be redirected, or whether any real store was affected, so those consequences should not be assumed. The impact described is unauthorised change to payment settings by a limited account.
How this kind of bug works
Multi-tenant administration panels usually define a set of permissions (orders, settings, billing, staff) and attach them to roles. The bug class appears when the mapping between permission and operation is inconsistent: the menu hides an item, the route renders a page, and the API behind it performs the action, and each of these three layers may check a different permission, or none.
Two patterns are common. First, a view-level check that is too permissive, as here, where the wrong permission admits the user to a page whose actions belong to another permission. Second, a missing check on the write endpoint, where the server trusts that the client only sends requests it was shown. Both produce the same result: a user acts outside their granted scope. Defences are server-side enforcement of the specific permission on every action, not just on page rendering; a single authorisation layer that maps each endpoint to a required permission; and tests that exercise each role against each endpoint rather than relying on the UI to hide what a role cannot use.
How to test for it
- Map the permission model. With an administrator account, list the roles and permissions available and note which screens each permission is meant to unlock.
- Create a low-privilege account that holds one permission (for example orders) and deliberately lacks the sensitive one (for example settings or billing).
- As the low-privilege user, request the sensitive pages and their underlying API endpoints directly, rather than through the menu. Watch for pages that render and for JSON responses that return data the role should not see.
- Attempt the write actions: submit the forms or replay the API calls that add or modify the sensitive configuration, using the low-privilege session.
- Compare against the administrator's view to confirm the change actually persisted, and check whether the administrator receives any notification.
A positive result is a successful read of restricted data or a persisted change made by an account that lacks the corresponding permission. Common false positives are cached pages, client-side hiding that still blocks the server action, endpoints that return an empty success response without changing state, and actions that are permitted by design for that role. Always verify persistence and re-check the role definition before reporting.
How it is fixed
Enforce the required permission on the server for every action, not only when rendering the page. In this case that meant applying the authorisation check on the function that handles payment settings. Beyond the single fix, the durable approach is a central authorisation layer that maps each endpoint to a permission, with tests that run each role against each endpoint.
Hunting notes
They also appear wherever a feature is reachable from more than one navigation path, since one path may carry a weaker check.
Comparing responses between an administrator session and a limited session for the same endpoint is often enough to spot the gap.
State the security consequence in the target's terms, and avoid overstating what the data could be used for beyond what you demonstrated.
What happened, in plain words
Shopify is a platform that lets people run an online shop. Each shop has an administration area, a set of web pages where the shop owner manages products, orders, payments and so on. Owners often give staff members their own accounts and decide what each person may do by ticking permissions such as Orders or Settings.
This report is about the Payments page, which holds a shop's payment gateway information. A payment gateway is the service that processes card payments for the shop, so its configuration is sensitive.
The researcher found that a staff account with limited permissions could reach that page and change payment settings, even though the administrator had deliberately not given that person access to Settings. The program's own summary explains the cause: users holding the Orders permission were allowed to see the shop's payment gateway information, when the page should have been restricted to users with the Settings permission only.
In practical terms the sequence was:
- An administrator creates a staff account with limited permissions, granting
Ordersbut withholdingSettings. - That staff user reaches the payments area and can view the shop's payment gateway information.
- The same user can add or change payment data, which the administrator had intended to prevent.
The researcher describes this as an authorisation bypass that allowed payment data to be added without the administrator noticing. Shopify fixed it by applying the authorisation check on that function. The report was disclosed on 10 November 2015 and a bounty of 500.00 USD was paid. No severity rating or CVSS score is given, and the report contains no requests, parameters, headers or response bodies.
Why it happened
The mistake is a mismatch between the permission that guards a page and the permission that the page's actions actually require. The Payments page was reachable by anyone holding Orders, so the check in front of it was tied to the wrong privilege. The report says the fix was to apply the authorisation check on the function itself, which suggests the write action (adding or altering payment data) was not independently verifying the caller's permission and relied on the page-level gate. When a sensitive write is protected only by the navigation or view check, any route that reaches the underlying function inherits that weaker check. The report does not describe the code path or the exact mechanism.
What the impact was
Within the report's own framing, a limited staff account could view the shop's payment gateway information and add or change payment settings despite the administrator's restrictions. The researcher notes that payment data could be added without administrator notice. The report does not state what an attacker could do with the gateway information itself, whether funds could be redirected, or whether any real shop was affected, so those consequences should not be assumed. The impact described is unauthorised change to payment settings by a limited account.
In general, how this kind of bug works
Administration panels that serve many customers usually define a set of permissions (orders, settings, billing, staff) and attach them to roles. Think of a hotel: the front desk clerk can check guests in, but should not be able to change the room rates. If the door to the rates office happens to open with the clerk's key, the rule on paper means nothing.
The bug class appears when the mapping between permission and operation is inconsistent. The menu hides an item, the route renders a page, and the API behind it performs the action, and each of these three layers may check a different permission, or none. An API is the part of the server that the page talks to behind the scenes; a request is simply the message the browser sends to ask for a page or an action.
Two patterns are common. First, a view-level check that is too permissive, as here, where the wrong permission admits the user to a page whose actions belong to another permission. Second, a missing check on the write endpoint, where the server trusts that the client only sends requests it was shown. Both produce the same result: a user acts outside their granted scope. Defences are server-side enforcement of the specific permission on every action, not just on page rendering; a single authorisation layer that maps each endpoint to a required permission; and tests that exercise each role against each endpoint rather than relying on the interface to hide what a role cannot use.
In general, how to test for it
- Map the permission model. With an administrator account, list the roles and permissions available and note which screens each permission is meant to unlock.
- Create a low-privilege account that holds one permission (for example orders) and deliberately lacks the sensitive one (for example settings or billing).
- As the low-privilege user, request the sensitive pages and their underlying API endpoints directly, rather than through the menu. Watch for pages that render and for JSON responses that return data the role should not see.
- Attempt the write actions: submit the forms or replay the API calls that add or modify the sensitive configuration, using the low-privilege session.
- Compare against the administrator's view to confirm the change actually persisted, and check whether the administrator receives any notification.
A positive result is a successful read of restricted data or a persisted change made by an account that lacks the corresponding permission. Common false positives are cached pages, client-side hiding that still blocks the server action, endpoints that return an empty success response without changing state, and actions that are permitted by design for that role. Always verify persistence and re-check the role definition before reporting.
In general, how it is fixed
Enforce the required permission on the server for every action, not only when rendering the page. In this case that meant applying the authorisation check on the function that handles payment settings. Beyond the single fix, the durable approach is a central authorisation layer that maps each endpoint to a permission, with tests that run each role against each endpoint.
In general, where to look
They also appear wherever a feature is reachable from more than one navigation path, since one path may carry a weaker check.
Comparing responses between an administrator session and a limited session for the same endpoint is often enough to spot the gap.
State the security consequence in the target's terms, and avoid overstating what the data could be used for beyond what you demonstrated.
Glossary
- Shopify: a platform for running an online shop, including an administration area for the shop owner.
- Payment gateway: the service that processes card payments and moves money to the shop.
- Permission: a named right, such as
OrdersorSettings, that decides what an account may do. - Privilege escalation: a situation where an account reaches actions or data beyond the rights it was given.
- Authorisation: the server's decision about whether a given user is allowed to perform a given action.
- Authorisation bypass: getting past that decision without holding the required right.
- Request: the message a browser sends to a server to fetch a page or trigger an action.
- Endpoint: the specific address on the server that handles one kind of request.
- API: the interface the page uses to talk to the server behind the scenes.
- Server-side check: a permission test performed on the server, which the user cannot skip by editing the page.
- Client-side hiding: hiding a button or menu in the browser without the server enforcing the same rule.
- JSON: a text format servers commonly use to return data to a page.
- Session: the server's memory of who is logged in, usually tied to a cookie.
- Cookie: a small piece of data the browser stores and sends back with requests so the server recognises the user.
- False positive: a finding that looks like a bug but is not, for example because nothing actually changed.
- Persistence: whether a change really survives and is stored, rather than only appearing to succeed.
- CVSS: a standard scoring system for rating the severity of a vulnerability.
- Bounty: a payment made by a company to a researcher who reports a valid security issue.