This article teaches GraphQL security testing methodology for bug bounty hunters, covering endpoint discovery, introspection abuse, IDOR vulnerabilities, injection attacks, broken authorization on mutations, and batch query rate limit bypasses. GraphQL endpoints are systematically under-tested compared to REST APIs, creating high-value exploitation opportunities for hunters who develop specialized testing skills rather than applying generic XSS and IDOR patterns.
- GraphQL endpoints are discovery targets themselvesFinding GraphQL endpoints requires active reconnaissance since they lack predictable URLs like Swagger UI. The article details probing common paths (/graphql, /api/graphql, /v1/graphql, /query) by sending POST requests with {"query": "{ __typename }"} and examining responses for GraphQL-specific JSON error messages. JavaScript bundle analysis searching for hardcoded endpoint strings provides an additional discovery vector. Browser Network tab monitoring during normal application use reveals active GraphQL traffic as POST requests with JSON query bodies.
- Introspection schema dumps expose complete attack surfaceWhen enabled, GraphQL introspection returns a full blueprint of all types, queries, mutations, and arguments without requiring any fuzzing. The article demonstrates that field names like adminToken, internalUserId, or mutations like createAdminUser self-document high-priority targets. Even when introspection is disabled, __type queries often remain accessible, allowing manual schema enumeration. The article emphasizes reporting introspection findings with concrete impact: showing which sensitive fields or admin mutations are accessible escalates findings from Informational to High/Critical sev
- IDOR testing requires per-resolver authorization verificationGraphQL IDOR follows the two-account methodology: retrieve your own user ID via a query like { me { id email } }, then switch to a second account and query the first account's data using its ID. The article shows testing both queries (user data retrieval) and mutations (updateUser with another user's ID) for authorization bypass. Sequential ID testing (querying IDs above and below your own) reveals multi-user data exposure. Authorization missing at the resolver level—rather than query syntax flaws—is the vulnerability pattern across thousands of targets.
- Mutations expose highest-impact broken authorizationMutations (write operations) in the schema that are never exposed in the frontend UI are rarely access-controlled because developers forget authorization checks on invisible operations. The article cites mutations like deleteUserAccount(userId: ID!), updateUser(id: ID!), and assignAdminRole as critical testing targets. The core finding pattern is testing whether a mutation accepting another user's ID in its argument actually processes it without authorization, confirmed by using two test accounts and attempting privilege escalation or resource modification from the non-privileged account.
- Injection vulnerabilities flow through resolver argumentsGraphQL's query syntax itself is not injectable, but arguments passed to resolvers constructing backend queries are vulnerable. The article provides time-based SQL injection testing via string arguments (admin' AND SLEEP(5)--) and NoSQL injection using operator objects like {"$regex": ".*"} or {"$gt": ""}. Response delays confirm time-based SQL injection; returning all records on filtered queries confirms NoSQL injection. SSRF testing involves passing Burp Collaborator URLs to URL-typed arguments.
- Batch queries multiply rate limit bypass impactAliased mutations send multiple operations in a single HTTP request counted as one by rate limiters—a request with 100 aliased login mutations bypasses per-request rate limiting. The article demonstrates that a 10 request/minute limit with 100-alias batches enables 1,000 credential attempts per minute. Against OTP endpoints with 1,000,000 possible six-digit codes, this reduces brute-force time to approximately 16 hours. Standard rate limiting operates at HTTP request level, not operation level, making this a structural bypass rather than a logic flaw.
- InQL tool automates schema analysis and query generationThe Burp Suite InQL extension parses introspection responses into ready-to-test query templates for every operation, eliminating manual schema-to-query translation. The workflow involves proxying the target through Burp, running InQL's Analyze function on the GraphQL endpoint, reviewing generated mutation and query templates, and sending interesting operations to Repeater for authorization testing with different user IDs. This tool bridges reconnaissance and exploitation by converting raw introspection JSON into actionable test cases.
- Disabled introspection does not prevent IDOR exploitationThe article's real-world example demonstrates a Critical IDOR on a fintech platform where introspection was disabled but __type queries remained accessible. Sequential user ID enumeration exposed account balances, transaction history, and linked card data for all users without admin access. The author confirmed multi-user data exposure in 12 minutes, illustrating that introspection disabling only reduces reconnaissance speed—it does not prevent authorization logic vulnerabilities from being exploited once the schema is partially mapped.
Bottom line: GraphQL endpoints represent high-value bug bounty targets specifically because they are under-tested compared to REST APIs and authorization vulnerabilities in resolvers remain common. Professional GraphQL hunting combines endpoint discovery, introspection schema analysis, per-resolver authorization testing with two-account methodology, and exploitation of batch query operations to identify Critical findings that REST-focused hunters consistently miss.
FREE
Part of the 60-Day Bug Bounty Mastery Course
I’ve found critical IDOR vulnerabilities on GraphQL endpoints where introspection was disabled. I’ve found injection points that the WAF wasn’t configured to filter because it was still pattern-matching REST requests. I’ve found objects exposed through GraphQL that weren’t accessible through any REST equivalent. The methodology is different enough from REST testing that it requires its own framework — and that’s what this article builds.
By the end you’ll have the complete GraphQL attack sequence: endpoint discovery, introspection abuse, injection, broken object-level authorisation, and batching attacks.
🎯 What You’ll Master in Day 22
⏱️ 45 min · 3 exercises · Burp Suite recommended
📋 Prerequisites — Day 22
- Day 21: HTTP Request Smuggling — Request manipulation fundamentals
- Burp Suite Community (free) installed — used for intercepting and replaying GraphQL requests
- Altair GraphQL Client browser extension (optional but recommended for schema exploration)
📋 GraphQL Bug Bounty 2026 — Contents
Finding GraphQL Endpoints
The first thing you learn about GraphQL hunting is that finding the endpoint is itself part of the work. There’s no Swagger UI at a predictable URL. Finding the endpoint is the first step. The most reliable method is monitoring your browser’s Network tab during normal application use: GraphQL requests appear as POST requests with a JSON body containing a query field. Burp Suite’s HTTP history captures these automatically when you proxy the application.
For applications where you haven’t spotted active GraphQL traffic, probe common endpoint paths. Send a POST request with body {"query": "{ __typename }"} to each path. A GraphQL endpoint returns {"data": {"__typename": "Query"}} on success, or a structured JSON error referencing GraphQL on any valid endpoint that rejected your query. Both responses confirm the endpoint exists. Non-GraphQL paths return HTML error pages or irrelevant JSON that doesn’t match this pattern.
⏱️ 15 minutes · Browser + DevTools only
Go to: apis.guru/graphql-apis/ — a directory of public GraphQL APIs
Choose one (GitHub, SpaceX, Countries, Star Wars)
Step 2: Open browser DevTools Network tab
Navigate to the API’s documentation or playground
Filter by “graphql” in the network requests
Step 3: Send the introspection query
Using the API’s GraphQL playground or a direct fetch:
fetch(‘[endpoint]’, {
method: ‘POST’,
headers: {‘Content-Type’: ‘application/json’},
body: JSON.stringify({query: ‘{__schema{types{name}}}’})
}).then(r=>r.json()).then(console.log)
Step 4: Examine the type list
How many types does the schema contain?
Do any type names suggest sensitive operations?
(look for: Admin, Internal, Private, Token, Secret)
Step 5: Get full field details for an interesting type
{__type(name:”User”){fields{name type{name ofType{name}}}}}
What fields does the User type expose?
Are any field names sensitive (password, token, adminRole)?
Step 6: On a bug bounty program (with scope permission):
Use DevTools on a real target application
Monitor network requests during login, profile update, etc.
Identify any GraphQL requests and note the endpoint path
📸 Screenshot an introspection schema response. Keep it in your notes.
GraphQL Introspection — The Free Schema Dump
Introspection is a GraphQL feature that allows clients to query the schema itself — asking “what queries and mutations are available, what arguments do they take, what types do they return?” When enabled in production (which it should not be), introspection hands the attacker a complete blueprint of the backend API including operations that are never used by the frontend application.
The full introspection query is verbose, but the critical sections are the type list (all object types and their fields) and the mutation type (all write operations). Fields named adminToken, internalUserId, bypassAuth, or mutations named createAdminUser flag themselves as high-priority targets. Even “safe” schemas reveal ID fields on user and resource objects — the starting point for IDOR testing.
IDOR via Direct Object IDs
GraphQL queries frequently accept direct object IDs as arguments. When authorization is implemented at the application layer rather than per-resolver, the API may return any object’s data for any valid ID regardless of which user is making the request. Testing GraphQL IDOR follows the same pattern as REST IDOR: create two test accounts, retrieve your own object’s ID, then use Account B to query Account A’s data using that ID.
Broken Authorization on Mutations
GraphQL mutations — the write operations — are where broken authorization causes the most damage. Developers sometimes implement read authorization carefully (checking whether a user can see data) but miss authorization on mutations (checking whether a user can change data). Mutations worth testing: password reset for another user’s account, privilege escalation (changing your own role field), accessing admin-only mutations visible in the schema but not in the UI, and deleting or modifying other users’ resources.
The schema from introspection reveals every mutation even if the frontend application never calls them. An assignAdminRole mutation that exists in the schema but is never called from the UI is almost certainly not properly access-controlled — developers often forget to add authorization checks to mutations that aren’t exposed to users. This is the highest-ROI attack surface from introspection: mutations that exist but are invisible.
⏱️ 25 minutes · portswigger.net/web-security/graphql
URL: portswigger.net/web-security/graphql
Read the introductory material (15 minutes)
Focus on: introspection, IDOR, accessing private GraphQL posts
Step 2: Complete Lab — “Accessing private GraphQL posts”
This lab has a GraphQL API with an IDOR vulnerability.
Find the blog post query.
Use introspection to map the schema.
Access a hidden blog post that shouldn’t be visible to your user.
Step 3: Note the exact introspection query you used
What type contained the hidden field?
What argument did you use to access the private post?
Step 4: Complete Lab — “Finding a hidden GraphQL endpoint”
This lab hides the GraphQL endpoint.
Use the discovery techniques from this article.
Once found, run introspection and identify the vulnerability.
Step 5: Document your findings format
For each lab: write a one-paragraph bug bounty report summary:
– Endpoint and vulnerability type
– Steps to reproduce
– Impact (what data is accessible)
– Severity rating and justification
📸 Screenshot your completed lab badge. Keep it in your notes.
GraphQL Injection
GraphQL arguments that are passed to backend database queries or system operations are injection vectors. The GraphQL layer itself is not injectable (it parses structured query syntax), but the arguments within queries are passed to resolvers that often construct SQL, NoSQL, or other queries. SQL injection in GraphQL: test string arguments with ', ' OR '1'='1, and ' OR SLEEP(5)--. NoSQL injection: test object arguments with {"$gt": ""} and {"$where": "1==1"}. SSRF: test URL arguments with your Burp Collaborator callback URL.
Batch Query Abuse for Rate Limit Bypass
GraphQL supports aliased queries — sending multiple operations with different aliases in a single HTTP request. Rate limiting typically operates at the HTTP request level: X requests per minute per IP. Batch query abuse exploits this by sending 100 operations as aliases in one HTTP request. The server counts one request but processes 100 operations. This is particularly impactful against OTP verification endpoints, login mutation rate limiting, and any operation where the protection relies on HTTP request counting.
⏱️ 20 minutes · Burp Suite Community + InQL extension
Burp Suite → Extender → BApp Store → search “InQL” → Install
Step 2: Find a GraphQL practice target
Use one of:
– DVGA (Damn Vulnerable GraphQL Application):
docker run -p 5013:5013 dolevf/dvga
– dvga.example.com (public instance if available)
– Any target from PortSwigger GraphQL labs
Step 3: Proxy the GraphQL endpoint through Burp
Configure browser to use Burp proxy (127.0.0.1:8080)
Make any request to the target
Step 4: Use InQL Scanner tab
Go to Burp → InQL Scanner
Enter the target GraphQL URL
Click Analyze — InQL runs introspection and parses the schema
Step 5: Review generated query templates
InQL generates ready-to-test queries for every operation
Look for: mutations, admin operations, user object queries
Step 6: Send interesting queries to Repeater
Right-click any operation → Send to Repeater
Test with your own IDs vs other user IDs
Test mutation authorization
Document any findings with request/response evidence
📸 Screenshot the InQL schema analysis output. Keep it in your notes.
🧠 QUICK CHECK — GraphQL Bug Bounty
📋 GraphQL Bug Bounty Reference — Day 22
🏆 Day 22 Complete — GraphQL Bug Bounty
Day 23 covers WebSocket security — cross-site WebSocket hijacking and message injection vulnerabilities.
GraphQL Real Finding — IDOR to Account Takeover Chain
Let me walk you through exactly how a real GraphQL critical finding looks, because the theory only makes sense when you see the attack path end to end.
The target had disabled GraphQL introspection — a common security measure teams implement when they think it stops enumeration. It doesn’t. I ran the __type query manually and got the schema back. The backend was validating the introspection query keyword but not the underlying type system queries. First finding.
Once I had the schema, I mapped the user-related queries. There was a getUser(id: Int) query that returned full user profile data — email, phone, address, linked payment methods. The ID was a sequential integer. No authorisation check on the resolver beyond “authenticated user.” I queried ID 1. Got the admin’s full profile. Critical IDOR, full account takeover chain, remediated same day.
The report on that finding was straightforward: here’s the query, here’s the response with another user’s payment methods, here’s the CVSS score (9.3), here’s the remediation — add authorisation check to the resolver comparing the requested user ID against the authenticated session’s user ID. Programme paid within 48 hours. That’s what GraphQL IDOR looks like on a real programme.
Writing the GraphQL Report — From Query to Impact
GraphQL findings get paid when the report connects a specific query to concrete data or actions the attacker should not have. A raw introspection dump is not a finding; what you reach with it is.
- Title: name the field and the impact, for example “Missing authorisation on the users query exposes every account’s email and role”.
- Query: include the exact query or mutation, the variables and the endpoint. If introspection revealed the field, say so and show the minimal query that returns the sensitive data.
- Evidence: show the response containing data you should not see, with other users’ details redacted — prove access without hoarding records.
- Impact: explain the scope — how many objects, which fields, and whether it enables IDOR, privilege escalation, or data export via batching and aliasing.
- Fix: recommend field-level authorisation, disabling introspection in production, and per-operation rate, depth and cost limits.
Keep evidence proportionate: showing you can read one other account’s record proves the authorisation gap; dumping the whole table adds no severity and can take you out of scope.
❓ Frequently Asked Questions — GraphQL Bug Bounty 2026
What is GraphQL and why is it a bug bounty target?
How do you find GraphQL endpoints in bug bounty?
What is GraphQL introspection and why is it a finding?
How does GraphQL IDOR work?
What is batch query abuse in GraphQL?
What is the best tool for GraphQL security testing?
Day 21: HTTP Request Smuggling
Day 23: WebSocket Security
📚 Further Reading
- Day 21: HTTP Request Smuggling — Request manipulation fundamentals that apply to crafting custom GraphQL requests in Burp Suite.
- Bug Bounty 60-Day Course Hub — Full course overview — Day 22 GraphQL completes the API security block alongside Day 8 IDOR and Day 21 Smuggling.
- How to Use Shodan in 2026 — Finding exposed GraphQL endpoints using Shodan’s HTTP title and header searches before engaging with a target.
- PortSwigger — GraphQL API Vulnerabilities — The most comprehensive free GraphQL security learning resource with hands-on labs covering introspection, IDOR, and injection.
- Awesome GraphQL Security — Curated list of GraphQL security tools, research papers, and real-world vulnerability writeups.

