IDOR Detection

Detect broken access control and insecure direct object reference vulnerabilities in application code.

1|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/kaminocorp/hermes-alpha-hunter --skill idor-detection-kaminocorp
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: IDOR Detection
Source: https://github.com/kaminocorp/hermes-alpha-hunter/tree/main/hunter/skills/security/idor-detection
Command: npx skills add https://github.com/kaminocorp/hermes-alpha-hunter --skill idor-detection-kaminocorp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Applications that expose internal object IDs without verifying ownership let attackers access other users' data, and these broken access control flaws are easy to miss during manual code review. This Skill provides a systematic procedure to locate, trace, and confirm IDOR vulnerabilities in source code. ## Core Features & Use Cases - Object Reference Discovery: Grep-based patterns to find object IDs in URL parameters, query strings, request bodies, and headers across JavaScript, TypeScript, Python, and Ruby codebases. - Authorization Gap Analysis: Structured checks for missing authentication, missing ownership verification, and bypass techniques like parameter pollution and type juggling. - Pattern Library: Six common IDOR patterns including horizontal and vertical privilege escalation, mass assignment, predictable IDs, nested resource flaws, plus GraphQL and API versioning specific guidance. - Use Case: While auditing a Node.js API before a bug bounty submission, run the procedure to find an endpoint like /api/orders/:id that authenticates users but never verifies order ownership, then document it with the included report template. ## Quick Start Analyze this codebase for IDOR vulnerabilities by tracing object references in API endpoints and checking whether each data access verifies resource ownership.

Frequently Asked Questions about IDOR Detection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find IDOR vulnerabilities in source code?▼

Find IDOR vulnerabilities by grepping for object references in req.params, req.query, and request bodies, then tracing each to database lookups like findById or Model.objects.get. For each access, verify an ownership check compares the resource owner to the authenticated user.

What is the difference between horizontal and vertical privilege escalation in IDOR?▼

Horizontal escalation lets one user access another user's data by changing an ID, while vertical escalation lets a regular user reach admin-only resources. Both stem from missing authorization checks beyond basic authentication.

Does GraphQL have IDOR vulnerabilities?▼

Yes, GraphQL resolvers often lack per-field authorization, making them IDOR-prone. Nested queries can leak related data, introspection exposes the schema, and batch queries enable ID enumeration when resolvers skip ownership checks.

Can predictable IDs make an IDOR vulnerability worse?▼

Yes, sequential integer IDs from autoIncrement or SERIAL columns let attackers enumerate every resource trivially. UUIDs raise the guessing cost but do not replace proper ownership verification on each request.

What are the limitations of grep-based IDOR detection?▼

Grep-based static analysis finds candidate patterns but cannot confirm exploitability without understanding runtime middleware and framework behavior. Dynamic testing with two user accounts of different privilege levels is needed to validate findings.