Tips

GraphQL tips

A GraphQL API exposes one endpoint with a rich query language, so authorization has to be checked on every field and object. Introspection, batching and nested queries add problems of their own.

Published tips, newest first. Payloads and commands are shown as plain text.

GraphQL: how to hunt it

Where to look

  • Introspection, or field suggestions in errors, revealing hidden queries and mutations.
  • Objects reachable through relationships that skip the checks of the direct query.
  • Batching and aliases that multiply attempts past rate limits, on login or one-time codes for example.
  • Mutations the interface never calls, tried with a low-privilege token.

What proves it

Show the query, the role of the account that sent it, and the data or change it should not have reached.

Read further

Writeups on GraphQL, by hunters and researchers, most with a short summary.

Related classes