← back to room
GraphQL
GraphQL IDOR
Scenario
PeopleGraph lets clients query user records by id through a GraphQL API. Each user object includes a secret field meant for HR only. Retrieve the administrator's secret without authorisation.
Your approach
- Open the GraphQL IDE or POST endpoint and explore the schema.
- Query user objects with different numeric ids.
- Request the secret field on the admin user's record.
- Copy the admin secret flag from the response.
- Submit that flag.
POST JSON to /labs/graphql/1/graphql. Enumerate
user(id: N). Admin is not id 1.Flag: