Skip to content
Access control Disclosed report Intermediate

H1514 Get access to non public information by pivoting with graphql queries

A user with only app access could use GraphQL queries to retrieve store information they should not have access to, such as locations, inventory, marketing activities, and API keys. This allowed disclosure of non-public data across different parts of the store.

emitrani Follow

Originally disclosed on HackerOne

Bounty$1,500incl. $1,000 bonus Low View original
  • Triaged in 10 days
  • Fixed in 3 months
  • Paid in 11 days
  • Disclosed after 13 months

Hi security team,

Summary: It is possible to pivot with queries to get access to information you shouldn't have access to according to docs located at https://help.shopify.com/en/api/graphql-admin-api/reference/queryroot

Description: I will try to write up all the ones I can find related to information disclosure where a user with only access to Apps can get from other parts of the store using the graphiql app.

  • Example 1:

User with no home access can use locations query to find out store locations and address

image_(1).png
image_(1).png From the original on HackerOne

It is also possible to use inventoryLevel(inventoryItemId) to get access to inventory without access

  • Example 2:

Marketing activities with no marketing access

marketing.JPG
marketing.JPG From the original on HackerOne

even though it is possible to ask for more this is the basic query I used. Note it doesn't say access denied. query{marketingActivities(first:100){edges{node{id,title, createdAt, budget{total{amount}}}}}}

  • Example 3:

Publications and api keys(I suspect app access makes you see api keys but still)

publications.JPG
publications.JPG From the original on HackerOne

Query I used: query{publications(first: 100){edges{node{name, id, supportsFuturePublishing, app{apiKey}}}}}

Impact

This means the graphql can be used to disclose information about other parts of the store that a low permissions user shouldn't have access to.

Best, Eray

The original report as published on HackerOne, by emitrani. 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 missing authorization checks on certain GraphQL query fields, allowing users with only app access to retrieve data from other store sections.

Impact

A low-permission user could disclose non-public information about other parts of the store, including locations, inventory, marketing activities, and API keys.

What the attacker needed

A user account with only app access; access to the GraphiQL app

How it was found

  1. Log in as a user with only app access.
  2. Use the GraphiQL app to send a query for store locations.
  3. Observe that location and address data is returned despite no home access.
  4. Send a query for marketing activities and receive data without marketing access.
  5. Send a query for publications and receive API keys.

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.

GraphQL is a way for apps to ask a server for specific data. The server should check if the user is allowed to see each piece of data, but here it did not, so a low-privilege user could ask for and receive information from other store areas.

What is Access control?

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.

More by emitrani

View all

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