Skip to content
IDOR Disclosed report Intermediate

[h1-2102] shopApps query from the graphql at /users/api returns all existing created apps, including private ones

The shopApps GraphQL query on the users API returned all apps, including private ones, to an authenticated admin. An attacker with admin access could enumerate private app details such as handles and client IDs.

inhibitor181 Follow

Originally disclosed on HackerOne

Bounty$1,900 Medium 4.3 View original
  • Triaged in 5 days
  • Fixed in 2 months
  • Paid in 9 days
  • Disclosed after 18 months

Summary:

I have seen that there is query called shopApps executable on the /[ID]/users/api graphql that returns a huge amount of apps (it timeouts with a limiting). In the response I have noticed the returned apps also include the private apps, so I do not think that this is intented like this. Using this method, one can grab all the apps, including private ones from shopify.

Steps To Reproduce:

  1. Login to shopify.plus as the admin
  2. Go to users, monitor the request and send the POST made to /[ID]/users/api to repeater
  3. Change the body with this one :
{"query":"query xxx { shopApps(first:10000) { edges { node { id isPrivate handle name title shopifyApiClientId } } } }"}

In the response, if you search for "isPrivate":true you will see also private apps.

Supporting Material/References:

Screenshots attached

Impact

One can grab all the shopify apps, including the private ones that I assume are not meant to be accessible.

Attachments

Screenshot_from_2021-01-23_15-03-07.png
Screenshot_from_2021-01-23_15-03-07.png From the original on HackerOne
Screenshot_from_2021-01-23_15-02-39.png
Screenshot_from_2021-01-23_15-02-39.png
Screenshot_from_2021-01-23_15-02-25.png
Screenshot_from_2021-01-23_15-02-25.png

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the shopApps GraphQL resolver did not filter results by the requesting user's permissions, returning private apps alongside public ones.

Impact

An authenticated admin could retrieve details of all Shopify apps, including private ones that were assumed not to be accessible.

What the attacker needed

Admin access to Shopify Plus

How it was found

  1. Log in to Shopify Plus as an admin.
  2. Go to the users page and capture the POST request to the users API endpoint.
  3. Send the request to a repeater tool and replace the body with a shopApps GraphQL query requesting many apps and private fields.
  4. Search the response for private apps to confirm they are included.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A GraphQL query is a way to ask a server for specific data. Here, a query meant to list apps also returned private apps that should have been hidden, so someone with admin login could see information about apps they should not access.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More by inhibitor181

View all

10 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.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.