testing-api-for-broken-object-level-authorization

Replay authenticated REST and GraphQL requests with swapped object identifiers to detect BOLA and IDOR exposure.

Updated Jan 29, 2024
One-click install
npx skills add https://github.com/riandeoliveira/aspnet-template --skill testing-api-for-broken-object-level-authorization-riandeoliveira
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-api-for-broken-object-level-authorization
Source: https://github.com/riandeoliveira/aspnet-template/tree/main/.claude/skills/testing-api-for-broken-object-level-authorization
Command: npx skills add https://github.com/riandeoliveira/aspnet-template --skill testing-api-for-broken-object-level-authorization-riandeoliveira

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

It helps security testers find authorization flaws where authenticated users can access or modify other users’ resources by manipulating object identifiers in REST or GraphQL requests.

Core Features & Use Cases

  • Horizontal BOLA testing (read/write/delete): Swap attacker-authenticated tokens across victim object IDs to verify whether per-object authorization is enforced for each operation.
  • Object ID enumeration checks: Probe predictability (e.g., sequential IDs, UUID leaks, encoded identifiers) to assess whether users can discover or access other users’ objects.
  • GraphQL BOLA coverage: Validate object access through GraphQL node/relay patterns and relationship traversal using attacker tokens.
  • Automation support: Use the included Python script workflow and Burp Autorize guidance to speed up authorization replay and triage results.

Quick Start

Run the provided agent script against your target base URL using your attacker JWT and a set of victim object IDs to generate a JSON report of suspected BOLA read/write behaviors.

Frequently Asked Questions about testing-api-for-broken-object-level-authorization

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

FAQPage Schema
How do I test an API for BOLA and IDOR vulnerabilities?

To test an API for BOLA and IDOR vulnerabilities, replay authenticated requests while systematically substituting legitimate object identifiers with victim IDs to evaluate if authorization is properly enforced based on response status and data integrity.

What is the best way to find Broken Object Level Authorization in GraphQL APIs?

Finding Broken Object Level Authorization in GraphQL APIs involves validating object access through node and relay patterns, testing relationship traversal with attacker tokens, and swapping authenticated requests across victim object IDs to detect exposure.

Can I use Burp Autorize to automate horizontal access control testing?

Yes, you can automate horizontal access control testing by using the included Python script workflow alongside Burp Autorize guidance to speed up authorization replay, triage results, and generate JSON reports of suspected BOLA read/write behaviors.

How do I check for object ID enumeration and predictability during API security testing?

Checking for object ID enumeration during API security testing requires probing identifier predictability, such as looking for sequential IDs, UUID leaks, or encoded identifiers, to assess whether attackers can discover and access other users' objects.

Does this BOLA testing approach support write and delete operations or just read access?

This BOLA testing approach supports horizontal read, write, and delete operations by swapping attacker-authenticated tokens across victim object IDs to verify whether per-object authorization is enforced across all endpoint methods, including method bypass checks.