# [h1-2102] Break permissions waterfall

Injecting the FULL permission token into a role's permissions array granted users full access while the role UI showed limited access.

- Payout: $500
- Severity: low
- Program: Shopify
- Found by: hogarth45
- Disclosed: 2022-02-12
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/1088159
- Library page: https://bugbountylibrary.com/r/h1%3A1088159
- Tags: area:web domain:web impact:privesc kind:bounty platform:hackerone sev:low tech:graphql technique:param-pollution vuln:access-control vuln:business-logic vuln:privilege-escalation

**Target:** Shopify Plus admin UpdateRole GraphQL mutation (users/api)
**Root cause:** The UpdateRole mutation trusts the client-supplied permissions array; the FULL sentinel is accepted alongside granular permissions and escalates effective access, while invalid tokens (e.g. 'cheese') are silently ignored, leaving stale FULL access in place.
**Steps:**
1. Create a Plus role with a few permissions and assign to a user; confirm propagation.
2. Enable proxy, edit role permissions, save, capture the UpdateRole POST in Repeater.
3. Modify permissions array to include `"FULL"` alongside others: `["DASHBOARD","ORDERS","GIFT_CARDS","FULL","REPORTS","OVERVIEWS"]` and send.
4. Observe role and user now reflect FULL access.
5. Resend with FULL replaced by garbage `"cheese"`; role UI shows limited access but users retain FULL access.
**How found:** Noticed role changes propagate to users, then tested sending FULL mixed with granular permissions and invalid tokens to see how the backend reconciles the array versus the UI.
**Exploitation:** An admin/role-editor with limited privileges submits the UpdateRole mutation with FULL injected into the permissions array, granting all assigned users full access; replacing FULL with an invalid token hides the escalation from the role UI while access persists.
**Escalation:** Persistent privilege escalation: users keep FULL access even after the role is reverted to limited, defeating permission audits.
**Insight:** When a permission model has a sentinel like FULL/ALL, try mixing it with granular tokens and with invalid tokens—backends often accept the sentinel and silently drop unknowns, desyncing effective access from the displayed role.

