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.
- 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
Settingspermission - 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
82867191864id from/admin/settings/notificationsas an admin account, in theStaff order notificationssection, 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
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
- Log in as a staff member who has only the Settings permission.
- Send the GraphQL mutation to the admin core endpoint, passing the notification subscription identifier.
- 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.