idor_fuzz_roles
Replay a request under multiple auth roles and compare responses to identify cross-role access control bypass and vertical BOLA vulnerabilities.
Instructions
Test the same resource with different auth contexts (role-based BOLA).
Sends the same request with each auth context and compares responses to detect cross-role access control bypass. This is the vertical BOLA / privilege-escalation test: can a lower- privilege user access a higher-privilege resource?
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Resource URL with ID to test (e.g. "/api/basket/3"). | |
| method | Yes | HTTP method (GET, POST, etc.). | |
| target_id | Yes | Identifier for the target. | |
| auth_contexts | Yes | List of auth contexts, each with: - "role": Human-readable label ("admin", "user", "guest") - "headers": Dict of HTTP headers (Authorization, Cookie, etc.) | |
| candidate_ids | No | Optional explicit IDs to test in the URL. | |
| scope_exclude | No | Scope denylist patterns. | |
| scope_include | No | Scope allowlist patterns. | |
| role_hierarchy | No | Ordered list from lowest to highest privilege (e.g. ["guest", "user", "admin"]). Default: assumes list order. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||