Shopify · Report #1102652
staffOrderNotificationSubscriptionCreate Is Not Blocked Entirely From Staff Member With Settings Permission
Validstatus
lowseverity
21upvotes
9 Feb 2022disclosed
How it was found
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
{F1194404}
Impact
I found that the GraphQL call staffOrderNotificationSubscriptionCreate is not blocked from the staff member with Settings permission