Idor blast radius

From vigolium/vigolium · View interactive version

Idor blast radius is an AI agent skill from the GitHub repository vigolium/vigolium. When you find an Insecure Direct Object Reference (a URL/body/header parameter that lets you read or write another user's or another tenant's object), discover the ID space, prove the access is unauthorized, quantify the blast radius (how many records reachable, what data class, read vs write, same-

How to use this skill

Skill file

IDOR → Blast-Radius Sizing

You have an IDOR candidate: an endpoint where flipping an object reference

returns or mutates an object you don't own. Your job is to find the ID

space, prove the access is unauthorized, size the impact (how many objects,

what data class, read vs write, same-tenant vs cross-tenant), and persist a

finding that reflects real severity — not theoretical.

When this skill applies

/files/{uuid}, /exports/{slug} — and changing the ref changes the

response in a way the auth context shouldn't allow.

header, a tenant id in a cookie, a hidden form field. These are IDOR too.

doesn't filter by current_user / current_tenant.

assignment of owner field" in an audit finding.

Don't run this on endpoints that are intentionally cross-user public

(/users/{id}/avatar is sometimes public; check before claiming).

Workflow

1. Establish two identities and a baseline

You need a second reference point to prove "this is someone else's object",

not just "this object exists". In order of preference:

  1. A second authenticated session (query_records / prior auth) — best.
  2. An object id you legitimately own + a neighboring id you don't.
  3. Unauthenticated replay of an authenticated endpoint (if it returns data

without a session, that's a stronger, separate finding — note it).

replay_request your own id + your own session → record the canonical

"authorized" response (status, length, a unique field like your email).

2. Discover the ID space (don't assume it's enumerable)

Collect every id you've seen for this handler from query_records, then

classify and find a source of valid ids before probing:

deletes, not auth.

high bits are a clock — neighbors are ids created near yours in time.

Ids minted close in time share a prefix; partially predictable.

need a leak. Hunt list endpoints, comment threads, Referer/Location

headers, search results, error messages, sitemaps, JS bundles.

encoding of a sequential int (hashids, sqids, base62). Decode a few of

your own ids; if they map to small consecutive integers, it's

sequential in disguise — enumerable.

the variable parts you can infer.

remember the format + the id source as idor-id-space. If the space is

UUIDv4 and you found no leak, say so in the finding — "enumerable only with

a valid id source" caps the realistic blast radius.

3. Confirm the access is unauthorized

replay_request a neighboring / other-owner id with your session:

body, not just the status; some apps 200 with an error envelope.

Re-confirm once (a second neighboring id) so a single coincidental match

doesn't drive a finding.

4. Size — sample, don't crawl

Probe 20–50 ids maximum chosen to cover the space, never the whole range:

estimated high end.

Count, per status, how many returned another principal's data. Project the

total ("28/30 sampled ids resolved; ids run 1–~50000 → ~all 50k users

reachable") and state the projection in the finding, not 50000 requests.

remember the count as idor-reachable.

5. Determine data class

For 1–3 leaked records, note what's exposed and categorize:

6. Check the write path

Try PUT / POST / PATCH / DELETE with the other-owner id and the body

the legitimate owner would send. **Do not destructively modify or actually

elevate.** A 200/204 (or a reflected-back changed field) proves the write

path — note it, then stop. Probe owner/role fields specifically

({"role":"admin"}, {"owner_id":<you>}) for mass-assignment-style

privilege takeover; confirm via a read-back, do not leave the change in place.

Read-IDOR is high; write-IDOR is critical.

7. Check the tenant boundary

If the app is multi-tenant, repeat step 3 with an id from a *different

tenant/org*, not just a different user in your tenant. Cross-tenant read or

write is the worst flavor — it breaks the product's core isolation promise.

Flag it explicitly: same-tenant vs cross-tenant changes both severity and

the disclosure urgency.

8. Persist the finding

report_finding once per IDOR pattern (not per id probed):

tables above; cross-tenant write of credentials/financial is "contact the

customer ASAP" critical.

/api/orders/{id} reads all ~12k orders cross-tenant; sequential numeric id"`.

count reached, data class, read/write, same vs cross-tenant.

If the audit harness already filed a theoretical finding for the same

endpoint, update_finding with status: triaged and the new evidence

instead of double-reporting.

Pitfalls

the count + projection is what matters.

read the body before claiming.

see it. Confirm your session is a regular, low-privilege role.

disguise; decode before declaring the space non-enumerable.

owner field differs from your principal.

Output expectations

projection.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.