agentleFS
sunilgentyalasunilgentyala/OmniRed/skills/web/idor/SKILL.md

idor

Skill5 starsChanged 5 months agoApache-2.0View on GitHub

Insecure Direct Object Reference (IDOR) methodology. Covers horizontal and vertical privilege escalation, GUID bypass, mass assignment, and multi-step IDOR chains.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Insecure Direct Object Reference (IDOR)

Discovery

Map all object identifiers in API responses and URL parameters: numeric IDs, GUIDs, hashes, filenames. For each identifier:

  1. Is it predictable? (sequential integers → enumerate)
  2. Does changing it return another user's data? (horizontal IDOR)
  3. Does changing it return admin/privileged data? (vertical IDOR)

Testing Methodology

Horizontal IDOR (access peer resources)

GET /api/users/1001/profile    → your profile
GET /api/users/1002/profile    → another user's profile (IDOR if successful)

GET /api/orders/55512          → your order
GET /api/orders/55511          → another user's order (IDOR)

Vertical IDOR (access higher-privilege resources)

GET /api/admin/users           → with user-level token (403 expected)
GET /api/invoices/INV-2024-001 → with user-level token (403 expected, return 200 = IDOR)

GUID bypass techniques

Obtain a valid GUID for another user via:

  • API response leakage (user objects containing other users' IDs)
  • Email/notification references
  • Public profile pages
  • Shared resource references

Indirect IDOR

POST /api/messages
Body: {"recipient_id": 9999, "message": "test"}
→ Does the server validate that recipient_id belongs to an accessible user?

Mass assignment IDOR

PUT /api/users/1001
Body: {"name": "Test", "role": "admin"}
→ Does the server accept and apply the "role" field?

Chaining IDORs

Combine multiple low-severity IDORs for critical impact:

  1. IDOR #1 — leak email via profile endpoint
  2. IDOR #2 — use leaked email to trigger password reset
  3. Result: account takeover from information disclosure

Tools

  • Burp Suite Intruder — enumerate IDs
  • Autorize — Burp extension for IDOR automation
  • Manual API exploration with multiple test accounts

OWASP Mapping

  • A01:2021 — Broken Access Control

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.