<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
---
name: hunting-idor-vulnerabilities
description: >-
  Discover and exploit Insecure Direct Object Reference vulnerabilities to access unauthorized resources.
domain: cybersecurity
subdomain: bug-bounty
tags:
  - idor
  - access-control
  - broken-authorization
  - bug-bounty
version: "1.0"
author: defconxt
license: AGPL-3.0
metadata:
  mitre-attack: ["T1190"]
---

# Hunting IDOR Vulnerabilities

## Overview

Discover and exploit Insecure Direct Object Reference vulnerabilities to access unauthorized resources.

## Prerequisites

| Requirement | Install |
|---|---|
| Burp Suite | With Autorize |
| Two test accounts | Different privileges |
| Python 3.10+ | For agent tooling |

## Key Concepts

IDOR occurs when apps expose internal object references without
access control. Testing requires swapping identifiers between
accounts to verify authorization.

## Quick Reference

```bash
curl -H 'Authorization: Bearer token_A' https://api.target.com/users/USER_B_ID
node agent.js scan --url https://api.target.com --endpoints endpoints.txt
node agent.js swap --request request.txt --param id --value 12345
node agent.js fuzz --url 'https://api.target.com/docs/{id}' --range 1-1000
```

## Workflow

1. Map endpoints with references
2. Create two accounts
3. Capture requests with IDs
4. Swap references
5. Test H and V IDOR
6. Fuzz references
7. Document failures

## Verification

- Verify swapping detects gaps
- Confirm H and V tested
- Validate UUID refs
- Check evidence included
- Verify severity ratings

## References

- OWASP Testing Guide — https://owasp.org/www-project-web-security-testing-guide/
- MITRE ATT&CK — https://attack.mitre.org/
- NIST SP 800-53 — https://csf.tools/reference/nist-sp-800-53/
