# GraphQL resolver missing object authorization

GraphQL queries/mutations resolving objects by id without ownership, privacy or role checks

_Area: Web access control and IDOR. Seen in 3 disclosed reports; latest 2021-06-16. Updated 2026-12-05._

## How it works
A GraphQL field takes an identifier (listId, staffMemberId, session id) and returns or mutates the object behind it. The resolver trusts that whoever holds the id is entitled to it. Authentication is enforced at the endpoint, but the per-object authorization check — is this caller allowed to see or change *this* object — is simply absent. The assumption that breaks is "the id is hard to guess, so possession implies permission." Ids leak, are enumerable, or are supplied by the caller, and the object is served anyway [E1](https://bugbountylibrary.com/r/blog%3Ablog-ryotak-net-post-twitter-list-chain.md)[E2](https://bugbountylibrary.com/r/h1%3A885539.md)[E3](https://bugbountylibrary.com/r/h1%3A905543.md).

## Where it shows up
- Resolvers that look up by id and return the row without comparing owner, tenant, privacy flag or role [E1](https://bugbountylibrary.com/r/blog%3Ablog-ryotak-net-post-twitter-list-chain.md)[E2](https://bugbountylibrary.com/r/h1%3A885539.md).
- Mutations that accept an actor id (e.g. `staffMemberId`) from the request body instead of deriving it from the session [E3](https://bugbountylibrary.com/r/h1%3A905543.md).
- Persisted-query GraphQL: opaque `/graphql/[queryId]/[Name]` paths hide the schema but not the missing check [E2](https://bugbountylibrary.com/r/h1%3A885539.md).
- Endpoints with no rate limit, or that echo processing time in a header (`x-response-time`), next to an id-taking resolver [E1](https://bugbountylibrary.com/r/blog%3Ablog-ryotak-net-post-twitter-list-chain.md)[E2](https://bugbountylibrary.com/r/h1%3A885539.md).
- Mobile/POS-only mutations assumed to be gated by the app UI rather than the server [E3](https://bugbountylibrary.com/r/h1%3A905543.md).

## How to review
The invariant: every resolver that fetches or mutates an object by caller-supplied id must, before returning or writing, verify the authenticated principal is permitted for that specific object — owner match, tenant match, privacy flag, or required role — server-side, using identity from the session, not the payload.
- For each id argument, find the authorization line; if it is missing or only checks login, it is a finding.
- Confirm actor/attribution fields are overwritten from the token, never trusted from input [E3](https://bugbountylibrary.com/r/h1%3A905543.md).
- Check private/restricted objects are filtered, not just non-existent ones.
- Treat "ids are unguessable" as no control; ask what confirms an id exists [E1](https://bugbountylibrary.com/r/blog%3Ablog-ryotak-net-post-twitter-list-chain.md)[E2](https://bugbountylibrary.com/r/h1%3A885539.md).

## How finders spotted it
- Noticed ListMembers returned private list contents, then, when told ids were hard to obtain, analyzed Snowflake id structure and hunted an existence oracle, finding missing rate limits and a timing header [E1](https://bugbountylibrary.com/r/blog%3Ablog-ryotak-net-post-twitter-list-chain.md).
- Saw unusual `/graphql/[random]/[name]` endpoints, learned they were persisted queries, and since the random queryId blocked guessing, read web/Android/Tweetdeck JS bundles (and old ones via Wayback) to harvest queryId-endpoint pairs, then tested each and spotted ListMembers lacked a private check [E2](https://bugbountylibrary.com/r/h1%3A885539.md).
- Noticed the POS app's cash-tracking mutation and replayed it with a low-privileged token, finding no server-side permission enforcement [E3](https://bugbountylibrary.com/r/h1%3A905543.md).

## Variants seen
- Read IDOR on a query returning private members [E1](https://bugbountylibrary.com/r/blog%3Ablog-ryotak-net-post-twitter-list-chain.md)[E2](https://bugbountylibrary.com/r/h1%3A885539.md).
- Write/act-above-role via a mutation with no permission check [E3](https://bugbountylibrary.com/r/h1%3A905543.md).
- Attribution spoofing by supplying another user's id [E3](https://bugbountylibrary.com/r/h1%3A905543.md).

## Impact and severity
Private list membership disclosure [E1](https://bugbountylibrary.com/r/blog%3Ablog-ryotak-net-post-twitter-list-chain.md)[E2](https://bugbountylibrary.com/r/h1%3A885539.md); low-privileged users adjusting cash and framing other staff [E3](https://bugbountylibrary.com/r/h1%3A905543.md). Impact rose when chained: a timing side channel plus missing rate limit turned an "unguessable id" IDOR into practical enumeration and full disclosure [E1](https://bugbountylibrary.com/r/blog%3Ablog-ryotak-net-post-twitter-list-chain.md)[E2](https://bugbountylibrary.com/r/h1%3A885539.md). Severity tracks object sensitivity and whether ids are enumerable.

## Evidence
- E1: https://bugbountylibrary.com/r/blog%3Ablog-ryotak-net-post-twitter-list-chain.md
- E2: https://bugbountylibrary.com/r/h1%3A885539.md
- E3: https://bugbountylibrary.com/r/h1%3A905543.md
