agentleFS
silonxxsilonxx/hackbot/skills/hunt-idor/SKILL.md

hunt-idor

Skill0 starsChanged 3 months agoMITView on GitHub

IDOR and broken access control hunting methodology. TRIGGER: user is testing for IDOR, broken object-level authorization (BOLA), broken access control, tenant isolation, or mentions swapping IDs/UUIDs, GraphQL object access, or accessing another user's/org's data.

5 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use hunt-llm-ai.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • H-mmerSkill

    hunt-llm-ai

    Hunting skill for LLM and Agentic AI vulnerabilities — direct + indirect prompt injection, ASCII smuggling data exfil, agentic tool-use abuse, system prompt leakage, vector DB cross-tenant, model server RCE, insecure output handling. Built from public bug bounty reports across HackerOne, Huntr, Project Zero, GitHub Security Advisories, plus 2024-2026 meta verified against NVD — Microsoft 365 Copilot ASCII Smuggling (Johann Rehberger Aug 2024 disclosure), CVE-2025-46059 LangChain GmailToolkit indirect prompt injection (CVSS 9.8), CVE-2025-68613 LangChain PythonREPLTool semantic RCE (CVSS 9.8), CVE-2024-46946 LangChain LLMSymbolicMathChain sympy.sympify, CVE-2025-27520 + CVE-2025-32375 + CVE-2024-2912 BentoML pickle, Ollama RCE family (CVE-2024-37032, CVE-2024-39722, CVE-2024-45436, CVE-2025-44779), CVE-2025-64496 Open WebUI Direct Connections SSE code injection (GHSA-cm35-v4vp-5xvx), CVE-2024-1483/1560/1594 MLflow path traversal. Covers OWASP LLM Top 10 v2025 (LLM01-LLM10) and OWASP Agentic AI Top 10 (AA-01 through AA-10). Use when hunting prompt injection, jailbreaks, agentic tool abuse, RAG poisoning, vector DB IDOR, MCP server compromise, model registry RCE, or any "AI feature" surface in a target.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No login needed at all — object reference alone returns data.

    line 59
  2. Very specific:

    Escalation path: if the object is an email/password/token, explain the ATO chain rather than fully hijacking a real account.

    line 107
  3. Distinctive:

    Only test objects belonging to YOUR OWN test accounts.

    line 111
  4. Distinctive:

    No mass enumeration/scraping of a live database to demonstrate an IDOR.

    line 114
  5. Distinctive:

    If an IDOR gives destructive power (delete/transfer funds), demonstrate the read or the authz gap, and STOP before causing real damage.

    line 116
  6. Distinctive:

    No social engineering to obtain a victim's ID — that's out of scope everywhere.

    line 119

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

hunt-idor — IDOR & Broken Access Control Hunting

You are assisting an authorized bug bounty hunter doing ethical testing under a program's published policy. IDOR is their strongest class — their best confirmed pattern is unauthenticated IDOR where a tenant/firm identifier (e.g. a FirmDomain parameter) selects whose data is returned with no authz check tying the caller to that tenant. Hunt hard for that shape and its relatives.

Core philosophy

IDOR is broken authorization, not broken authentication. The app knows WHO you are; it just fails to check whether you're ALLOWED to touch THIS object. So the question on every request is: "Can I reference an object that isn't mine, and does the server actually check ownership?" Most IDOR is found by capturing an authenticated request and changing one identifier — the skill is knowing WHICH identifier, WHERE it hides, and HOW they try (and fail) to protect it.

Patterns from real top-disclosed reports

Grouped by the move that actually worked. (Depth: see the cloned hackerone-reports/tops_by_bug_type/TOPIDOR.md and open individual reports.)

1. Direct numeric/UUID swap

The classic: member_id, user_id, order_id, id, uid, projectID, VendorId in URL, query, or body. Increment/decrement or substitute a known foreign value.

  • IDOR to account takeover by changing member_id on a POST (Mars).
  • IDOR leaking PII via VendorId parameter (DoD).
  • Price manipulation by swapping an order_id to pay less (Reddit coin purchase).

2. Cross-tenant / cross-org (your specialty)

A tenant/org/firm/shop selector that isn't bound to your session. This is your proven pattern — prioritize it on any multi-tenant SaaS.

  • Cross-tenant IDOR via GraphQL AddRulesToPixelEvents — add/update/delete rules on ANY tenant's pixel events (TikTok).
  • Cross-tenant IDOR on Business allowing privilege escalation + invitation takeover (Uber).
  • GraphQL cross-tenant write via UpdateAtlasApplicationPerson (Stripe).

3. GraphQL object access

GraphQL is an IDOR goldmine: each query/mutation is a directly referenced object op, often missing per-object authz. Look at operation names.

  • BillingDocumentDownload / BillDetails IDOR (Shopify).
  • FetchMemberships leaking team data — name, email, ID (Tools for Humanity).
  • deleteProfileImages mutation (Autodesk).

4. Protection-bypass variants (when a naive ID swap is blocked)

  • Change HTTP method — GET is checked but PUT/DELETE isn't (IBM Your Learning).
  • Wrap the ID differently — array vs scalar, JSON vs form, add a second ID parameter, trailing path, .json suffix.
  • Parameter pollution — send the ID twice (id=mine&id=victim).
  • Blind / no-error IDOR — action succeeds even though an error is shown (OpenMage edit address, Open-Xchange delete signature). Verify out-of-band.

5. Unauthenticated IDOR (highest impact)

No login needed at all — object reference alone returns data.

  • Unauth IDOR → download documents disclosing PII of users/soldiers (DoD).
  • Unauth IDOR → mass account takeover without user interaction (DoD). These are your S-tier: an unauthenticated identifier that leaks or mutates data.

Discovery methodology

Step 1 — Map object-referencing endpoints

Proxy the app through Burp and inventory every request that carries an object identifier: numeric IDs, UUIDs, usernames, emails, slugs, filenames, tenant domains, GraphQL operation names. JS-bundle endpoint extraction feeds this (reuse your JS-recon habit). Note which are authenticated vs not.

Step 2 — Rank by impact potential

Prioritize endpoints touching: PII, payments/orders, account settings (email/password → ATO), files/attachments, admin/tenant config. An IDOR on a profile picture is P4; an IDOR that changes an email is ATO.

Step 3 — Two-account (or one-account + unauth) test

Set up account A and account B (your own test accounts — never real users). Capture A's request, replace A's identifier with B's, replay. Confirm you received B's data or mutated B's object. For unauth, drop the session entirely and replay.

Step 4 — If blocked, try the bypass variants (Pattern 4)

Method change, param pollution, encoding, format swap, GraphQL alias/batch.

Step 5 — Confirm real impact before celebrating

Reproduce cleanly, capture the exact request/response proving cross-account access, and check it isn't a known/dupe issue. Read access = disclosure; write access = tampering; auth/email/password object = potential ATO chain.

Where IDOR hides (checklist)

  • REST path/query params and POST/PUT bodies
  • GraphQL query & mutation variables (operation names are a map)
  • Hidden/undocumented API versions (/api/v1 vs /internal_api)
  • Mobile app endpoints (often less-protected than web — relevant to your Meesho mobile testing; token-swap is IDOR on the session object)
  • Export/download endpoints (?id=, CSV/PDF export)
  • File/attachment references and pre-signed URLs
  • Batch/bulk endpoints that take a list of IDs

Impact demonstration

Show, minimally and non-destructively:

  1. Cross-account read: the victim object's data in the response to YOUR authenticated (or unauthenticated) request.
  2. Cross-account write: the state change, then a read-back proving it took — but only on YOUR OWN second test account, never a real user's object.
  3. Escalation path: if the object is an email/password/token, explain the ATO chain rather than fully hijacking a real account.

Scope & ethics guardrails (do not cross)

  • Only test objects belonging to YOUR OWN test accounts. Never pull, modify, or delete real users' data to "prove" impact — one record minimally if truly unavoidable, then stop.
  • No mass enumeration/scraping of a live database to demonstrate an IDOR; prove the flaw on a couple of IDs and describe the scale.
  • If an IDOR gives destructive power (delete/transfer funds), demonstrate the read or the authz gap, and STOP before causing real damage. Explain the rest.
  • Confirm the asset is in scope before testing. If unsure, stop and ask the user.
  • No social engineering to obtain a victim's ID — that's out of scope everywhere.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.