staffOrderNotificationSubscriptionCreate Is Not Blocked Entirely From Staff Member With Settings Permission
A staff member with only the Settings permission could add an email address to the order notification settings via a GraphQL mutation, even though the response claimed access was denied. The change was actually applied, allowing unauthorised modification of notification recipients.
- Triaged in 5 days
- Fixed in 17 days
- Paid in 12 days
- Disclosed after 12 months
Hi,
I found that the GraphQL call staffOrderNotificationSubscriptionCreate is not blocked from the staff member with Settings permission
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{staffOrderNotificationSubscriptionCreate(notificationRecipientIdentifier:\"[email protected]\",notificationRecipientType:EMAIL){staffOrderNotificationSubscription{id}}} "}
- The response you see should be
Access denied for staffOrderNotificationSubscription field. Required access:read_notification_settingsaccess scope. Also: User must have access to orders., and you would think this means a dead end, but reality is you have already added the order notification to the settings - Visit
/admin/settings/notificationsas an admin, you should notice the email[email protected]is added to the order notification already
Screenshot video
Impact
I found that the GraphQL call staffOrderNotificationSubscriptionCreate is not blocked from the staff member with Settings permission
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 performed the database update before checking the required access scope, so the permission check failed after the change was already made.
Impact
A staff member with only Settings permission could add an email address to order notifications.
What the attacker needed
A staff account with Settings permission
How it was found
- Log in as a staff member with Settings permission.
- Send a GraphQL mutation to create a staff order notification subscription.
- Observe the access denied error response.
- Log in as an admin and visit the notifications settings page.
- See that the email address from the mutation has been added.
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 staff member with limited permissions could add an email address to order notification settings. The system returned an error, but the change still happened.
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.