TOPIC 10/1918 MINNOT STARTED

GraphQL security checks for testers

A GraphQL service lets a client ask for any shelf by name. Learn five safe checks on the test site: the stock list, deep queries, batches, field access and odd inputs.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: a shop that lets you ask for any shelf by name. You may ask for a tin of beans, or for the stock list, or for every shelf in the building in one go. In this shop, the agreed rule keeps the stock list for staff and limits large orders. Another shop may deliberately publish its catalogue; the rules matter.

Daily List is a to-do list app. Its mobile feed uses GraphQL, a query language where the client writes the question and names the fields it wants. Leo, the developer, built it. Tom, the tester, has from Nina to test it on the test site.

Tom has five questions. Does the service hand over its own plan to strangers? Can one question be made so deep that it burdens the server? Can one request hide many tries? Can Lily see only Lily's fields? Does a strange value get a clear refusal?

These are the GraphQL security checks. Some checks exercise attack-like inputs and can affect the service, so the agreed scope and operational limits matter. Tom runs them in small steps, only on the test site, and only with that permission.

The picture has a limit. A shop assistant uses judgement. A server only follows its rules, so a missing rule is a gap.

(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)

PICTURE IT

The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.

THE REAL JOB Five safe checks on a GraphQL service: the stock list, deep questions, batches, field access and odd values.

  1. Ask for the list
  2. Go one level over
  3. Hide tries in one request
  4. Ask for another user's object
  5. Send an odd value
List, depth, batch, access, odd values

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
The stock list kept for staffIntrospection kept off in public
A request for every shelf at onceA query that is too deep or too costly
Asking for the same shelf under ten namesAliases and batches that hide tries
The staff-only roomField and object access checks

WHERE THIS PICTURE STOPS

  • A shop can use judgement. A server only follows its rules.
  • A shop sees each customer. A server may see only one request for many tries.
  • A shop can ban a customer. A test can only report a gap.

HOOK

List, depth, batch, access, odd values.

REMEMBER IT THIS WAY

A rule of thumb: if you see this, think that.

If a GraphQL question could burden the server or hide many tries, usually run it in small steps on the test site with Nina's .

What each part of the trick stands for
In the trickWhat it stands for
Small stepsTom runs them in small steps
Permissionwritten permission from Nina

A server only follows its rules, so passing small checks does not prove there is no gap.

TELL A FRIEND

A shop where you can ask for any shelf by name. A good shop keeps the stock list for staff and refuses a request for the whole warehouse.

OFTEN MIXED UP WITH Testing GraphQL, gRPC and WebSocket APIs. The application programming interface () styles lesson shows how GraphQL is asked and read. This lesson is about the security checks on it.

Sources & standards — 3 sources
  1. Market practice

    GraphQL cheat sheet (Open Worldwide Application Security Project cheat sheet series) ↗ — Open Worldwide Application Security Project (OWASP) · Actual input/depth/amount/time/cost/rate/access/batching/introspection sections; policy-specific schema exposure and executed-operation evidence; reviewed6November2026.

    Actual depth/amount/cost/time/rate, resolver access, batching/aliases and introspection guidance. Public-schema policy is contextual; depth alone does not limit all cost. The source has a BOLA authentication-label typo, qualified against API1:2023. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

    V34 review, 6 November 2026: Read actual relevant current sections6November2026, including batching and introspection details. Do not claim the primary sheet omits batching or use its BOLA authentication typo as a definition.

  2. Market practice

    Broken Object Level Authorization, the first risk in the 2023 Open Worldwide Application Security Project API Security Top 10 ↗ — Open Worldwide Application Security Project (OWASP) · Actual API1:2023 definition and prevention: authorisation for the action/object; distinguishes BFLA; corrects GraphQL-sheet authentication-label typo; read6November2026.

    API1:2023 Broken Object Level Authorization: permission for the requested action on the requested object. Identifier format, authentication and matching a session user ID alone do not establish that permission. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: 2023 edition. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

    V34 review, 6 November 2026: Read actual API1:2023 body6November2026: definition, examples and prevention. Use its authorisation term to resolve the GraphQL sheet typo; do not equate every access to another owner's intentionally shared object with a vulnerability.

  3. Market practice

    Authentication cheat sheet (Open Worldwide Application Security Project cheat sheet series) ↗ — Open Worldwide Application Security Project · Actual automated-attack/throttling/lockout sections: threshold, observation window, duration and denial-of-service tradeoffs; reviewed6November2026.

    Guidance page. Defines authentication as verifying that someone or something is who or what it claims to be. Search excerpt only. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

    V34 review, 6 November 2026: actual automated-attack/throttling/lockout section read; distinguish threshold, observation window and duration, and consider lockout denial-of-service tradeoffs.

PRACTISE AND KEEP

Sources for this topic — 7 sources
  1. Market practice

    GraphQL cheat sheet (Open Worldwide Application Security Project cheat sheet series) ↗ — Open Worldwide Application Security Project (OWASP) · Actual input/depth/amount/time/cost/rate/access/batching/introspection sections; policy-specific schema exposure and executed-operation evidence; reviewed6November2026.

    Actual depth/amount/cost/time/rate, resolver access, batching/aliases and introspection guidance. Public-schema policy is contextual; depth alone does not limit all cost. The source has a BOLA authentication-label typo, qualified against API1:2023. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

    V34 review, 6 November 2026: Read actual relevant current sections6November2026, including batching and introspection details. Do not claim the primary sheet omits batching or use its BOLA authentication typo as a definition.

  2. Market practice

    Avoid GraphQL Denial of Service attacks through batching and aliasing (Escape blog) ↗ — Escape · One request can carry many operations or the same field under many names, so a limit that counts requests can be bypassed (search excerpt, page not opened)

    Explains that one request can carry many operations (batching) or the same field under many names (aliases), so a limit that counts requests can be bypassed. Vendor blog. Practitioner guidance, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  3. Market practice

    GraphQL security testing checklist (Invicti blog) ↗ — Invicti · Limit batched operations by count, identity and cost; check access at the level of each resolver and each object (search excerpt, page not opened)

    Recommends limiting batched operations by count, identity and cost, flags aliases and nested relationships for similar limits, and names resolver-level authorization, broken object level authorization and broken function level authorization as the main access-control checks. Vendor blog. Practitioner guidance, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  4. Market practice

    GraphQL Specification, October 2021 edition ↗ — GraphQL Foundation · The specification defines the type system and introspection (search excerpt, page not opened)

    Defines GraphQL queries, mutations, subscriptions, the type system and introspection. · Checked 2026-11-08

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: October 2021. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

    8 November2026 bounded primary-source update: GraphQL October2021 §§2.7,6.2.3 Delivery Agnostic,6.4.4 and7.1 selected sections actually read 8 November2026. Selection aliases, request versus field errors, partial data/nonnull propagation and transport/QoS boundaries; not full specification reread.

  5. Market practice

    Open Worldwide Application Security Project cheat sheet series: input validation ↗ — Open Worldwide Application Security Project (OWASP) · Check both the syntax and the meaning of a value, and reject invalid input with a clear error (search excerpt, page not opened)

    The Open Worldwide Application Security Project's cheat sheet on input validation. Cited for three points: check both the syntax and the meaning of a value, reject invalid input with a clear error, and check data again where it crosses a trust boundary. · Checked 2026-10-18

    Search excerpt, page not opened: returned by WebSearch on 2026-10-18. The excerpts did not use the phrase as early as possible in the data flow, so this site does not quote it. It is guidance for software in general, not for payments.

    V34 review, 6 November 2026: Read complete official repository sheet. Syntax, semantic business rules, server checks and safe handling of legitimate Unicode/punctuation have distinct roles.

  6. Market practice

    Broken Object Level Authorization, the first risk in the 2023 Open Worldwide Application Security Project API Security Top 10 ↗ — Open Worldwide Application Security Project (OWASP) · Actual API1:2023 definition and prevention: authorisation for the action/object; distinguishes BFLA; corrects GraphQL-sheet authentication-label typo; read6November2026.

    API1:2023 Broken Object Level Authorization: permission for the requested action on the requested object. Identifier format, authentication and matching a session user ID alone do not establish that permission. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: 2023 edition. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

    V34 review, 6 November 2026: Read actual API1:2023 body6November2026: definition, examples and prevention. Use its authorisation term to resolve the GraphQL sheet typo; do not equate every access to another owner's intentionally shared object with a vulnerability.

  7. Market practice

    Authentication cheat sheet (Open Worldwide Application Security Project cheat sheet series) ↗ — Open Worldwide Application Security Project · Actual automated-attack/throttling/lockout sections: threshold, observation window, duration and denial-of-service tradeoffs; reviewed6November2026.

    Guidance page. Defines authentication as verifying that someone or something is who or what it claims to be. Search excerpt only. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

    V34 review, 6 November 2026: actual automated-attack/throttling/lockout section read; distinguish threshold, observation window and duration, and consider lockout denial-of-service tradeoffs.

Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.