Shopify · Report #1085332
[h1-2102] shopApps query from the graphql at /users/api returns all existing created apps, including private ones
Validstatus
mediumseverity
$1,900bounty
35upvotes
15 Jul 2022disclosed
How it was found
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:
- Login to shopify.plus as the admin
- Go to users, monitor the request and send the POST made to
/[ID]/users/apito repeater - 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.