IDOR testing checklist covering object ID enumeration, horizontal/vertical privilege escalation, GUID predictability, indirect references, chained IDOR, and API endpoint IDOR. For web app pentests and bug bounty IDOR discovery.
Ships in red-team-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
IDOR (Insecure Direct Object Reference) testing checklist: object ID enumeration, horizontal/vertical privilege escalation, GUID predictability, indirect references via hashes, chained IDOR, and API endpoint IDOR. Use for web app pentests and bug bounty IDOR discovery.
Use this skill when the conversation involves any of:
IDOR, insecure direct object reference, horizontal privilege escalation, vertical privilege escalation, object enumeration, GUID, API IDOR, mass assignment, broken access control
When this skill is active:
flowchart LR
A[Create Test Accounts] --> B[Discover Features]
B --> C[Intercept Traffic]
C --> D[Switch IDs in Requests]
D --> E{IDOR Found?}
E -->|Yes| F[Document Vulnerability]
E -->|No| G[Try Protection Bypass]
G --> H[Monitor Information Leaks]
flowchart TD
A[IDOR Vulnerabilities] --> B[Missing Authorization Checks]
A --> C[Client-Side ID Transmission]
A --> D[Predictable Resource Identifiers]
A --> E[Insufficient Access Control Logic]
A --> F[Improper Session Handling]
A --> G[Reliance on Obfuscation]
B --> H[Horizontal Access Control Failures]
C --> H
D --> I[Vertical Access Control Failures]
E --> I
F --> J[Context-Dependent Access Control Failures]
G --> J
Insecure Direct Object References (IDOR) occur when an application exposes a reference to an internal implementation object without sufficient access control. These vulnerabilities allow attackers to manipulate these references to access unauthorized data or perform unauthorized actions.
IDOR vulnerabilities arise from flawed access control mechanisms that fail to validate whether a user should have permission to access or modify a specific resource. The core implementation issues include:
IDORs manifest in various patterns:
Create Multiple Test Accounts:
Establish Baseline Behavior:
Request Capture Setup:
Request Parameter Analysis:
id, user_id, account_id, file, doc, document, record, item, order, number, profile,
edit, view, filename, object, num, key, userid, uuid, group, role
sub, org_id) or signed cookies; tamper if server fails to re‑authorize.Parameter Manipulation Techniques:
id=1 → id=2)user_id, account_id) to requests that don't initially have them (e.g., GET /api/messages → GET /api/messages?user_id=<victim_uuid>). Parameter names can often be inferred from other requests or discovered using tools like Arjun.{"items": [{"id": 123, "owner": "victim"}]} → {"items": [{"id": 456, "owner": "attacker"}]}
.json, .xml, .config). Ruby applications might respond differently to /resource/123 vs /resource/123.json.GET /api/users/*). Rare, but worth trying.{"id":19} → {"id":[19]}).{"id":111} → {"id":{"id":111}}).account_id=UUID → account_id=123).id=123&id=456, user_id=attacker_id&user_id=victim_id, user_id=attacker_id[]&user_id=victim_id[]). See HTTP Parameter Pollution under Bypass Techniques.If-None-Match probing to infer existence without full access.Endpoint Analysis Questions: For each endpoint receiving an object ID, ask:
Hidden Parameter Discovery:
Web Socket Discovery:
Testing Methodology:
mindmap
root((IDOR Testing))
::icon(fa fa-bug)
style root fill:#f96,stroke:#333,stroke-width:2px
id1(Blind Detection)
::icon(fa fa-eye-slash)
style id1 fill:#bbf,stroke:#33f,stroke-width:1px
id1.1[Comparative Response Analysis]
style id1.1 fill:#ddf,stroke:#33f
id1.2[Out-of-Band Detection]
style id1.2 fill:#ddf,stroke:#33f
id1.3[Side-Channel Analysis]
style id1.3 fill:#ddf,stroke:#33f
id2(Mass Testing)
::icon(fa fa-rocket)
style id2 fill:#fbf,stroke:#939,stroke-width:1px
id2.1[Automated Identifier Enumeration]
style id2.1 fill:#fdf,stroke:#939
id2.2[Parallel Testing with Burp]
style id2.2 fill:#fdf,stroke:#939
id2.3[Pattern Recognition]
style id2.3 fill:#fdf,stroke:#939
id3(Protection Bypass)
::icon(fa fa-shield)
style id3 fill:#bfb,stroke:#393,stroke-width:1px
id3.1[ID Obfuscation Bypass]
style id3.1 fill:#dfd,stroke:#393
id3.2[Access Control Bypass]
style id3.2 fill:#dfd,stroke:#393
id3.3[Reference Leakage Exploitation]
style id3.3 fill:#dfd,stroke:#393
Comparative Response Analysis:
Out-of-Band Detection:
Side-Channel Analysis:
import requests
session = requests.Session()
# Login code here...
# Test range of IDs
for id in range(1, 1000):
response = session.get(f"https://example.com/api/documents/{id}")
if response.status_code == 200:
print(f"Found accessible document: {id}")
# Log response for later analysis
Parallel Testing with Burp:
Pattern Recognition:
/api/document/MjQ2 (base64 of "246") → /api/document/MjQ3 (base64 of "247")
GET /api/users/123 → POST /api/users/123
Content-Type: application/json → Content-Type: application/xml
GET /api/document?id=attacker_id&id=victim_id
GET /api/users?user_id=attacker_id[]&user_id=victim_id[]
{ "user_id": "attacker_id", "user_id": "victim_id" }
GET /admin/profile → GET /ADMIN/profile
POST /users/delete/MY_ID/../VICTIM_ID
GET /v3/users/123 → 403 Forbidden
GET /v1/users/123 → 200 OK
HTTP Request Smuggling: Use CL.TE or TE.CL smuggling to inject victim IDs in backend requests
POST / HTTP/1.1
Content-Length: 4
Transfer-Encoding: chunked
1
Z
Q
Front-end strips user_id parameter but back-end processes it from smuggled request chunk
{ "name": "John", "role": "admin", "user_id": "victim_id", "is_admin": true }
userId vs user_id vs UserId vs USER_ID
{
"profile": {
"name": "John",
"owner_id": "attacker_id",
"target_id": "victim_id"
}
}
Harvesting IDs from HTML/JS Sources:
API Response Analysis:
graph LR
A[IDOR Patterns] --> B[API Endpoint Vulnerabilities]
A --> C[Function-Specific Vulnerabilities]
B --> D[RESTful API IDORs]
B --> E[GraphQL IDORs]
B --> F[JSON/XML Parameter IDORs]
C --> G[Account Management]
C --> H[Financial Operations]
C --> I[Content Management]
C --> J[Administrative Functions]
RESTful API IDORs: Direct manipulation of resource identifiers in REST APIs
GET /api/users/123/profile → GET /api/users/456/profile
GraphQL IDORs: Changing object identifiers in GraphQL queries
query {
user(id: "attacker_id") {
changePassword(newPassword: "pwned")
}
}
JSON/XML Parameter IDORs: Modifying nested parameters
{"user": {"id": 123, "action": "view"}} → {"user": {"id": 456, "action": "view"}}
Account Management IDORs:
Financial IDORs:
Content Management IDORs:
Administrative Function IDORs:
OAuth/OIDC IDORs:
state or code parameters in OAuth flows2FA/MFA IDORs:
/api/users/{user_id}/totp-secretNotification/Webhook IDORs:
/api/notifications/settings/{user_id}Real-time Feature IDORs:
__typename switches to reach sibling object types.id arguments and nested object IDs in mutations and batch queries; verify per‑object ownership checks..proto definitions; disable reflection in production when possible.Key=/object path, query params, or credentials (e.g., X-Amz-Security-Token) to replay others’ files; test cross‑tenant reuse./api/v2/traces or /v1/traces, harvest IDs, and replay them against protected APIs.POST /v1/data/authz/allow).Burp Suite Extensions:
Specialized Tools:
Framework-Specific Tools:
Reconnaissance Phase:
Identification Phase:
Testing Phase:
Exploitation Phase:
Reporting Phase:
/api/users/myinfo vs /api/admins/myinfo).When hunting for IDORs, prioritize these high-impact endpoints:
User Profile Settings:
Payment and Financial Endpoints:
Administrative Functions:
Authentication & MFA Endpoints:
Notification & Communication:
Real-Time & Collaboration:
IDOR vulnerabilities can often be chained with other issues or used to escalate privileges:
What SKILL.md sets; muted values are Claude Code's defaults
/red-team-skills:offensive-idorfrom red-team-skills
red-team-skills@giofornari is listed by giofornari/skills — review the source before installing
npx claudepluginhub giofornari/skills --plugin red-team-skills61 skills in this plugin
/offensive-active-directoryActive Directory attack methodology for internal network red team engagements. Covers reconnaissance (BloodHound, PowerView, ADExplorer), credential abuse (Kerberoasting, ASREProasting, NTLM relay, LLMNR/NBT-NS poisoning), privilege escalation (ACL abuse, GPO abuse, unconstrained/constrained delegation), lateral movement (Pass-the-Hash, Pass-the-Ticket, Overpass-the-Hash, WMI/WinRM/PsExec), persistence (Golden/Silver/Diamond Tickets, DCSync, DCShadow, AdminSDHolder, Skeleton Key), forest trust attacks, ADCS abuse (ESC1-ESC15), and modern MDI/Defender for Identity evasion. Use when assessing on-prem AD, hybrid AD/Entra ID environments, or ADCS deployments./offensive-advanced-redteamComprehensive red team operations methodology covering full engagement lifecycle from planning through reporting. Addresses engagement scoping and rules of engagement negotiation, multi-tier C2 infrastructure design with redirectors and domain fronting, malleable traffic profiles and beacon tradecraft, OPSEC discipline including attribution avoidance and indicator management, EDR and AMSI evasion techniques using direct syscalls and unhooking, data collection with chain-of-custody controls, and structured reporting with purple team debrief workflows. Covers assumed-breach, external-to-internal, insider threat, and hybrid physical-cyber engagement scenarios with MITRE ATT&CK mapping throughout. Targets operators planning or executing adversary simulation engagements against mature defenders.Other plugins' skills for the same job