Skip to content
Access control Disclosed report Intermediate

staffOrderNotificationSubscriptionDelete Could Be Used By Staff Member With Settings Permission

A staff member holding only the Settings permission could delete staff order notification subscriptions through a GraphQL mutation, even though that action should require the Order permission. This let a lower-privileged staff account remove notifications that other staff relied on.

ngalog Follow

Originally disclosed on HackerOne

  • Triaged in 5 days
  • Fixed in 17 days
  • Paid in 12 days
  • Disclosed after 12 months

Hi,

The staff order notification should be under the control of staff members with Order permission but I found that the staff member with just Settings permission can also delete the order notifications using the GID

Steps to reproduce

  • Login as a staff member with Settings permission
  • Make this GraphQL call to https://yoursubdomain.myshopify.com/admin/internal/web/graphql/core?operation=SwitcherNoStores
{"query": "mutation{staffOrderNotificationSubscriptionDelete(staffOrderNotificationSubscriptionId:\"gid://shopify/StaffOrderNotificationSubscription/82867191864\"){userErrors{message}}} "}
  • Note: you can find the 82867191864 id from /admin/settings/notifications as an admin account, in the Staff order notifications section, after adding a order notification and the id is in the URL

  • The response you see should be {"staffOrderNotificationSubscriptionDelete":{"userErrors":[]}}, and this means you have deleted the subscription already

Impact

The staff order notification should be under the control of staff members with Order permission but I found that the staff member with just Settings permission can also delete the order notifications using the GID

The original report as published on HackerOne, by ngalog. 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 GraphQL mutation checked that the caller was a staff member but did not verify the Order permission, so any staff account could invoke it.

What the attacker needed

A staff account with Settings permission; knowledge of the subscription GID

How it was found

  1. Log in as a staff member who has only the Settings permission.
  2. Send the GraphQL mutation to the admin core endpoint, passing the notification subscription identifier.
  3. Observe an empty userErrors list in the response, which indicates the subscription was deleted.

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.

Shopify lets shop owners give staff accounts different permissions, so someone can manage settings without touching orders. This report found that a settings-only account could still run an action meant for order managers and delete order notifications. That is a permission check that was missing or too loose on one specific action.

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 ngalog

View all

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