$ ./guess_the_languageCybersecurity
Cybersecurity · medium · #302

Why do many teams disable this kind of GraphQL query in production?

POST /graphql
{"query":"{ __schema { types { name fields { name } } } }"}
  1. It disables the API's rate limits
  2. It deletes cached query results
  3. It forces responses over plain HTTP
  4. It reveals the whole API schema
Introspection returns every type, field and mutation, handing an attacker a full map of hidden or internal operations. It is useful in development but often turned off publicly.
Play Cybersecurity ▸