# A staff member with no permissions can edit Store Customer Email

A zero-permission staff member could call the undocumented GraphQL mutation emailSenderConfigurationUpdate to change the store's customer-facing sender email.

- Payout: $1,500
- Severity: medium
- Program: Shopify
- Found by: ash_nz
- Disclosed: 2020-10-22
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/980511
- Library page: https://bugbountylibrary.com/r/h1%3A980511
- Tags: area:web domain:api domain:web impact:integrity kind:bounty platform:hackerone sev:medium tech:graphql technique:legacy-endpoint vuln:access-control

**Target:** Shopify Admin internal GraphQL endpoint /admin/internal/web/graphql/core, emailSenderConfigurationUpdate mutation
**Root cause:** The emailSenderConfigurationUpdate GraphQL mutation lacked an authorization check, so any authenticated staff account regardless of permissions could modify the store's customer email configuration.
**Steps:**
1. Create a store with an Owner account and invite a second account as staff with no permissions.
2. Log in as the zero-permission staff user and send `POST /admin/internal/web/graphql/core` with mutation `emailSenderConfigurationUpdate(input:{senderEmail:"attacker@example.com"})` and a valid CSRF token.
3. Log in as Owner, open Store details, and observe the Customer email changed to the attacker-supplied address.
**How found:** Researcher discovered an undocumented internal GraphQL mutation (emailSenderConfigurationUpdate) and tested it from a low-privilege staff account, finding no permission enforcement.
**Exploitation:** Any authenticated staff member with zero permissions sends the undocumented GraphQL mutation to overwrite the store's customer-facing sender email, enabling phishing or misdirecting customer communications.
**Insight:** Internal/undocumented GraphQL mutations under /admin/internal/ often skip the permission checks applied to public admin APIs; enumerate internal mutation names and replay them from a zero-permission staff session.

## Proof of concept (copied exactly from the original report)

**GraphQL mutation letting no-permission staff edit customer email**

```
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":"███"
  }
}}
```

