Skip to content
Access control Disclosed report Intermediate

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.

ngalog Follow

Originally disclosed on HackerOne

  • 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 Settings permission
  • 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_settings access 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/notifications as an admin, you should notice the email [email protected] is added to the order notification already

Screenshot video

poc_settings_email.mov From the original on HackerOne

Impact

I found that the GraphQL call staffOrderNotificationSubscriptionCreate is not blocked from the staff member with Settings permission

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

  1. Log in as a staff member with Settings permission.
  2. Send a GraphQL mutation to create a staff order notification subscription.
  3. Observe the access denied error response.
  4. Log in as an admin and visit the notifications settings page.
  5. 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.

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.