Skip to content
Access control Disclosed report Beginner

Staff without Manage Themes permissions can update themes

A staff member with only 'Manage public listings' permission could bypass the intended restriction and upload a new theme version to the Shopify Theme Store by directly visiting a specific URL. This allowed privilege escalation to the 'Manage themes' permission.

harshdranjan Follow

Originally disclosed on HackerOne

Medium 4.3 View original
  • Disclosed after 21 months

Summary by the program

Per our policy page, we accept Staff Member Permission issues that have one of the following impacts:

  1. Demonstrates the ability for a staff member to escalate their privileges to one of our Sensitive Permissions (Manage Settings, Manage Payment Settings and Themes).
  2. Demonstrates a direct financial impact on the Shop (The request made must directly result in the impact).
  3. Demonstrates impact on Buyer PII that the staff member isn't already authorized for.

This report falls under number 1 above as it demonstrated the ability of a staff member to escalate their permissions to Manage Themes permissions by visiting a vulnerable URL.

The report

Hey team, as per https://help.shopify.com/en/partners/dashboard/account-access#store-access only people with Manage themes can View and edit the theme listing, and upload a new version to the Shopify Theme Store but Manage public listings can only Manage apps, themes, and experts listings. not upload a new version to the Shopify Theme Store but when a Owner gives his STAFF permission of Manage public listings , he is able to upload a new version to the Shopify Theme Store by just going to the https://themes.shopify.com/services/v2/themes/submission/new

Shops Used to Test:

https://partners.shopify.com/2450201/

Steps To Reproduce:

  1. owner invites the STAFF with Manage public listings and STAFF accept it and Login.
  2. Now he goes to https://partners.shopify.com/2450201/themes but he won't have access to it so he directly went to "https://themes.shopify.com/services/v2/themes/submission/new"

███████ 3. and now he can Uploads a Theme file from the Partner side

and if these are wrong , let me know if there is any detailed version of Permission on Partners.shopify.com as Manage public listings is confusing to me a little because of my previous and this report.

Supporting Material:

Attached

Impact

Permission mis-configuration ,STAFF with Manage public listings permission can Upload Theme which is a feature for Manage themes

The original report as published on HackerOne, by harshdranjan. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

Shopify Partners is the portal where agencies, developers and theme authors manage their relationship with Shopify. A partner account can have staff members, and the account owner assigns each staff member a set of permissions. Among these permissions are Manage themes and Manage public listings.

According to the Shopify Partners documentation the researcher cites, only people with Manage themes can view and edit the theme listing and upload a new version to the Shopify Theme Store. Manage public listings is described as being able to manage apps, themes and experts listings, but not to upload a new version to the Shopify Theme Store.

The theme submission flow lives on a separate host from the partner dashboard: themes.shopify.com, under the path /services/v2/themes/submission/new. The partner dashboard itself is on partners.shopify.com.

Setup

The test used a single partner account, identified in the report by its dashboard URL:

Text
https://partners.shopify.com/2450201/

The roles involved are the account Owner and a Staff member. The precondition is that the Owner invites the Staff member and grants only the Manage public listings permission. The Staff member accepts the invitation and logs in.

Finding it

The researcher read the documentation and then tried the theme submission URL directly. The documentation says Manage public listings covers managing apps, themes and experts listings, while uploading a new version to the Shopify Theme Store belongs to Manage themes. The researcher found that a Staff member holding only Manage public listings could still reach the theme submission endpoint directly and upload a theme file from the partner side. In the researcher's words, the permission split was confusing, and this report (together with a previous one) prompted a request for a more detailed permission description.

The program accepted the report under the first of its staff-permission impact criteria: demonstrating that a staff member can escalate their privileges to one of the sensitive permissions, which include Manage Settings, Manage Payment Settings and Themes. The program accepted the report as an escalation to Manage Themes.

Exploitation

Step 1: Grant the limited permission

The Owner invites the Staff member with Manage public listings only.

Step 2: Confirm the dashboard blocks the themes page, then go direct

The Staff member navigates to the themes page of the partner dashboard:

Text
https://partners.shopify.com/2450201/themes

Access to that page is not granted, which is consistent with the permission model. Instead of using the dashboard, the Staff member goes directly to the theme submission endpoint on the other host:

Text
https://themes.shopify.com/services/v2/themes/submission/new

Because the endpoint is reached directly rather than through the dashboard navigation, the missing permission on the dashboard page does not prevent the Staff member from loading the submission flow.

Step 3: Upload a theme

From the submission endpoint the Staff member can upload a theme file from the partner side. The report states that the Staff member can upload a theme file from the partner side.

Root cause

The report does not describe the server-side implementation, so the exact mistake is not stated. What the behaviour shows is that the authorisation check for the theme submission endpoint on themes.shopify.com does not enforce the Manage themes permission: a session belonging to a Staff member with only Manage public listings is accepted. The dashboard page at partners.shopify.com/.../themes does restrict access, so the control that exists is on the dashboard route rather than on the submission service. The report does not describe how the endpoint performs its checks. Hiding the entry point in the dashboard UI is not an access control, and going to the URL directly bypasses it.

Impact

A Staff member who has been granted only Manage public listings can perform an action reserved for Manage themes: uploading a new version to the Shopify Theme Store. This is a privilege escalation from a less sensitive permission to one of the program's sensitive permissions. The report frames it as a permission misconfiguration. The program rated it medium severity with a CVSS score of 4.3.

Fix

The fix that follows from the finding is to enforce the Manage themes permission on the theme submission endpoint itself, on themes.shopify.com, so that a session with only Manage public listings is rejected regardless of how the endpoint is reached, rather than relying on the dashboard page to gate access.

Variants to test

  1. Other cross-host service endpoints. For each action that the documentation ties to a sensitive permission, find the service endpoint that performs it (often on a different host from the dashboard) and call it with a session holding only a weaker permission. A positive result is the action succeeding when the dashboard page for it is blocked.
  2. Direct navigation past hidden UI. Where a dashboard hides a menu item or button for a permission the user lacks, request the underlying route or API directly. A positive result is the page or API returning data or accepting a write.
  3. Permission pairs that look adjacent. Test permissions whose descriptions overlap, such as listing management versus content upload, and check whether the weaker one is accepted by the stronger one's endpoint. A positive result is a write action succeeding under the weaker permission.
  4. Staff invitation flows. After inviting a staff member with a minimal permission set, enumerate the endpoints the account can reach and compare them with the documented permission matrix. A positive result is any endpoint outside the granted permission's scope responding successfully.

Hunting notes

This class of bug hides where a product splits one feature across two hosts or services: the dashboard enforces the permission, the service that does the work does not. During recon, map every host a program uses and look for service paths such as /services/... that the dashboard calls, then try them with a low-privilege session. The signal is a permission description that lists what a role can manage but omits a specific action, combined with a UI that hides that action. The researcher showed enough impact by matching the behaviour to the program's published criteria: the escalation reached one of the named sensitive permissions (Themes), which is exactly the first accepted impact category. Framing the finding against the program's own policy page is what made the report land.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 12 min read.

What happened, in plain words

Shopify Partners is a website where agencies, developers and theme authors manage their business relationship with Shopify. Think of it like a shared office: one person owns the office (the Owner), and they can give other people (called Staff) keys to specific rooms. Each key is a permission, and each permission is supposed to open only certain doors.

Two of those permissions are Manage themes and Manage public listings. The documentation says that only someone with Manage themes can view and edit the theme listing and upload a new version to the Shopify Theme Store. Manage public listings is described as being able to manage apps, themes and experts listings, but not to upload a new version to the Shopify Theme Store.

The researcher found that a Staff member who had only Manage public listings could still upload a new version of a theme. They did this by typing a special web address directly into the browser instead of clicking through the normal dashboard. The dashboard page for themes was blocked, but the separate service that actually accepts the upload was not.

This is called privilege escalation: doing something with a small amount of access that should require a bigger amount of access. The program accepted the report because it matched the first of its published criteria for staff permission issues: showing that a staff member can escalate their privileges to one of the sensitive permissions, which include Manage Settings, Manage Payment Settings and Themes.

The pieces you need to know first

Before walking through the steps, here are the ideas the report relies on.

  • Partner account: a business account on Shopify Partners. It has an owner and can have staff.
  • Owner: the person who created the account and controls who gets which permissions.
  • Staff member: an invited person who works inside the partner account with a limited set of permissions.
  • Permission: an allowed action, like a key to a room. The owner hands out keys one by one.
  • Dashboard: the normal web interface you see after logging in, with menus and buttons. It is the front door with a receptionist.
  • Host: the part of a web address after https:// and before the first /. For example, partners.shopify.com and themes.shopify.com are two different hosts. Think of them as two different buildings.
  • Endpoint: a specific web address that performs an action when your browser (or a program) requests it. It is like a service window in a building: you go to the right window to get a specific job done.
  • API: short for Application Programming Interface. It is a set of endpoints that a website's own pages use behind the scenes to fetch or send data. When you click a button, the page often quietly calls an API endpoint. You can also call that endpoint yourself by typing its address.
  • URL: the full web address you type into the browser, such as https://themes.shopify.com/services/v2/themes/submission/new.
  • Session: the state of being logged in. After you log in, your browser holds a small piece of proof (often a cookie) that tells the server who you are on each request. Think of it as a wristband you get at the door: every time you ask for something, you show the wristband.
  • Cookie: a small piece of data a website stores in your browser. It is how the site remembers your session between page loads.
  • Authorisation check: the server's decision about whether the logged-in person is allowed to do the requested action. Authentication is "who are you"; authorisation is "are you allowed to do this".
  • Privilege escalation: using a lower level of access to perform an action that should require a higher level.
  • Permission misconfiguration: a setup where the permissions are not enforced the way the documentation says they should be.
  • CVSS: a scoring system that rates how severe a security issue is. A score of 4.3 is in the medium range.

Context: two permissions that look similar

Shopify Partners is the portal where agencies, developers and theme authors manage their relationship with Shopify. A partner account can have staff members, and the account owner assigns each staff member a set of permissions. Among these permissions are Manage themes and Manage public listings.

According to the Shopify Partners documentation the researcher cites, only people with Manage themes can view and edit the theme listing and upload a new version to the Shopify Theme Store.

The theme submission flow lives on a separate host from the partner dashboard: themes.shopify.com, under the path /services/v2/themes/submission/new. The partner dashboard itself is on partners.shopify.com.

Why does the split across two hosts matter? Because a website can enforce a rule in one place and forget it in another. The dashboard is one building; the theme submission service is another building. If the receptionist in the first building checks your wristband but the service window in the second building does not, you can walk to the second building and get served anyway. That is the shape of this bug.

Setup: creating the test situation

The test used a single partner account, identified in the report by its dashboard URL:

Text
https://partners.shopify.com/2450201/

This is the address of the partner account's home page in the dashboard. The number 2450201 is the account's identifier.

The roles involved are the account Owner and a Staff member. The precondition is that the Owner invites the Staff member and grants only the Manage public listings permission. The Staff member accepts the invitation and logs in.

Why set it up this way? To make the test fair. If the Staff member had Manage themes, uploading a theme would be expected and there would be nothing to report. The whole point is to give the smallest relevant permission and see whether a bigger action still works. This is the everyday equivalent of giving a new employee a key to the storeroom and checking whether it also opens the safe.

Finding it: comparing the documentation with reality

The researcher read the documentation and then tried the theme submission URL directly. The documentation says Manage public listings covers managing apps, themes and experts listings, while uploading a new version to the Shopify Theme Store belongs to Manage themes. The researcher found that a Staff member holding only Manage public listings could still reach the theme submission endpoint directly and upload a theme file from the partner side. In the researcher's words, the permission split was confusing, and this report (together with a previous one) prompted a request for a more detailed permission description.

Why start from the documentation? Because documentation is a promise about how the product behaves. When the product does something the documentation says it should not, you have a concrete, arguable finding rather than a vague feeling. It also tells you exactly which permission is supposed to guard which action, so you know what to test.

The program accepted the report under the first of its staff-permission impact criteria: demonstrating that a staff member can escalate their privileges to one of the sensitive permissions, which include Manage Settings, Manage Payment Settings and Themes. The program accepted the report as an escalation to Manage Themes.

Exploitation: the three steps

Step 1: Grant the limited permission

The Owner invites the Staff member with Manage public listings only.

Why this step? It creates the exact situation under test: a real logged-in person with a known, limited set of keys. Everything after this depends on that person being able to log in normally, so the test reflects what a real staff member could do.

Step 2: Confirm the dashboard blocks the themes page, then go direct

The Staff member navigates to the themes page of the partner dashboard:

Text
https://partners.shopify.com/2450201/themes

This address is the themes section of the partner account in the dashboard. The 2450201 is the same account identifier as before, and /themes points at the themes area. Typing it into the browser's address bar is the same as clicking a link to it.

Access to that page is not granted, which is consistent with the permission model. In other words, the dashboard behaves correctly: the Staff member without Manage themes is turned away. That is the expected result and it confirms the test setup is right.

Instead of using the dashboard, the Staff member goes directly to the theme submission endpoint on the other host:

Text
https://themes.shopify.com/services/v2/themes/submission/new

This is a different host (themes.shopify.com) and a specific path. Reading it from left to right: services suggests a service area, v2 is a version label, themes/submission/new points at the flow for submitting a new theme. This is the theme submission endpoint on the themes host.

Why go direct? Because the dashboard page is only one way to reach the action. The page is like a reception desk that checks your wristband before letting you into a room. The endpoint is the room's own door. If the door does not have its own lock, walking around the reception desk gets you in. Typing the address into the browser is exactly that walk around.

Because the endpoint is reached directly rather than through the dashboard navigation, the missing permission on the dashboard page does not prevent the Staff member from loading the submission flow. The browser sends the same session (the same wristband) either way, so the server knows who is asking; the question is whether it checks the right permission.

Step 3: Upload a theme

From the submission endpoint the Staff member can upload a theme file from the partner side. The report states that the Staff member can upload a theme file from the partner side.

Why is this the proof? Because uploading a new version to the Shopify Theme Store is the exact action the documentation reserves for Manage themes. The Staff member did not have that permission, yet the action completed. That is the escalation: a small key opened a door that was supposed to need a bigger key.

Root cause: where the check is missing

The report does not describe the server-side implementation, so the exact mistake is not stated. What the behaviour shows is that the authorisation check for the theme submission endpoint on themes.shopify.com does not enforce the Manage themes permission: a session belonging to a Staff member with only Manage public listings is accepted. The dashboard page at partners.shopify.com/.../themes does restrict access, so the control that exists is on the dashboard route rather than on the submission service. The report does not describe how the endpoint performs its checks. Hiding the entry point in the dashboard UI is not an access control, and going to the URL directly bypasses it.

The general lesson: a lock must be on the thing being protected, not on the corridor leading to it. If the only check is a page that hides a button, anyone who knows the address behind the button can skip the page. Servers must check permissions on every request that performs an action, no matter which page the request came from.

Impact: what an attacker could actually do

A Staff member who has been granted only Manage public listings can perform an action reserved for Manage themes: uploading a new version to the Shopify Theme Store. This is a privilege escalation from a less sensitive permission to one of the program's sensitive permissions. The report frames it as a permission misconfiguration. The program rated it medium severity with a CVSS score of 4.3.

Why does the program care? Because it publishes rules for which staff permission issues it will accept, and this one matches the first rule: a staff member reaching a sensitive permission they were not given. Matching a program's own published criteria is often what turns a curious observation into an accepted report.

Fix: what should change

The fix that follows from the finding is to enforce the Manage themes permission on the theme submission endpoint itself, on themes.shopify.com, so that a session with only Manage public listings is rejected regardless of how the endpoint is reached, rather than relying on the dashboard page to gate access.

In everyday terms: put the lock on the room's door, not only at the reception desk. Then it does not matter whether someone arrives through the lobby or around the back.

Variants to test: where else this pattern hides

  1. Other cross-host service endpoints. For each action that the documentation ties to a sensitive permission, find the service endpoint that performs it (often on a different host from the dashboard) and call it with a session holding only a weaker permission. A positive result is the action succeeding when the dashboard page for it is blocked.
  2. Direct navigation past hidden UI. Where a dashboard hides a menu item or button for a permission the user lacks, request the underlying route or API directly. A positive result is the page or API returning data or accepting a write.
  3. Permission pairs that look adjacent. Test permissions whose descriptions overlap, such as listing management versus content upload, and check whether the weaker one is accepted by the stronger one's endpoint. A positive result is a write action succeeding under the weaker permission.
  4. Staff invitation flows. After inviting a staff member with a minimal permission set, enumerate the endpoints the account can reach and compare them with the documented permission matrix. A positive result is any endpoint outside the granted permission's scope responding successfully.

Hunting notes: how to look for this yourself

This class of bug hides where a product splits one feature across two hosts or services: the dashboard enforces the permission, the service that does the work does not. During recon, map every host a program uses and look for service paths such as /services/... that the dashboard calls, then try them with a low-privilege session. The signal is a permission description that lists what a role can manage but omits a specific action, combined with a UI that hides that action. The researcher showed enough impact by matching the behaviour to the program's published criteria: the escalation reached one of the named sensitive permissions (Themes), which is exactly the first accepted impact category. Framing the finding against the program's own policy page is what made the report land.

Glossary

  • API: a set of web addresses (endpoints) that a website's pages use behind the scenes to fetch or send data; you can also call them yourself.
  • Authorisation check: the server's decision about whether the logged-in person is allowed to perform the requested action.
  • Cookie: a small piece of data a website stores in your browser, often used to remember that you are logged in.
  • CVSS: a scoring system for rating the severity of a security issue; 4.3 is in the medium range.
  • Endpoint: a specific web address that performs an action when requested.
  • Host: the part of a web address after https:// and before the first /, such as partners.shopify.com or themes.shopify.com.
  • Manage public listings: a partner account permission described as being able to manage apps, themes and experts listings, but not to upload a new version to the Shopify Theme Store.
  • Manage themes: a partner account permission that, according to the documentation, allows viewing and editing the theme listing and uploading a new version to the Shopify Theme Store.
  • Owner: the person who created the partner account and controls which permissions each staff member gets.
  • Partner account: a business account on Shopify Partners that can have an owner and staff members.
  • Permission: an allowed action, like a key to a specific room.
  • Permission misconfiguration: a setup where permissions are not enforced the way the documentation says they should be.
  • Session: the state of being logged in, carried by your browser on each request, often through a cookie.
  • Staff member: an invited person who works inside a partner account with a limited set of permissions.
  • URL: the full web address you type into a browser.

More by harshdranjan

View all

7 more disclosed reports, best first.

More from Shopify

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.