IDOR & BOLA – Understanding and Finding Access Control Vulnerabilities

Started by wow[MEOW]2 replies74 views

IDOR & BOLA
Understanding, Discovering & Reporting Access Control Vulnerabilities

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
BUG BOUNTY | WEB SECURITY | API SECURITY | RESEARCH



01 // INTRODUCTION

Access control vulnerabilities are among the most interesting issues to investigate during bug bounty hunting.

One particularly important vulnerability class is IDOR (Insecure Direct Object Reference).

IDOR occurs when an application allows a user to access or modify resources without properly checking whether that user is authorized to interact with them.

Imagine having an online account where you can view your own invoices, orders, or personal documents.

The application might use an identifier to determine which resource should be returned.

The problem appears when the backend trusts that identifier without verifying the user's permissions.

Important: The vulnerability is not simply the ability to change an ID. The actual security issue is unauthorized access to another resource.



02 // UNDERSTANDING IDOR

What does IDOR mean?

IDOR stands for Insecure Direct Object Reference.

It describes an authorization weakness where an application exposes references to internal objects but fails to properly verify access permissions.

Simple example:

A user requests their own order:

Code
GET /api/orders/1001

The backend should verify that the authenticated user is authorized to access order 1001.

If the server returns another user's order without checking ownership, this could be an IDOR vulnerability.

Potential impact:

  • Exposure of private user information
  • Unauthorized access to invoices
  • Access to private documents
  • Exposure of transaction history
  • Unauthorized modification of resources
  • Access to other users' application data



03 // IDOR VS. BOLA

These two terms are closely related, but are commonly used in slightly different contexts.

IDOR – Insecure Direct Object Reference

A commonly used term for situations where an application exposes object references without properly enforcing authorization.

BOLA – Broken Object Level Authorization

The terminology used by OWASP API Security Top 10 to describe APIs that fail to properly enforce authorization checks on individual objects.

In simple terms:

Both concepts involve users accessing resources they should not be allowed to access.



04 // OTHER IMPORTANT SECURITY CONCEPTS

Authentication

Authentication answers the question: "Who are you?"

It verifies a user's identity through methods such as passwords, authentication applications, or security keys.

Authorization

Authorization answers the question: "What are you allowed to access?"

It determines which resources and actions a user is permitted to use.

Broken Access Control

A broader security category describing situations where applications fail to properly enforce access restrictions.

Privilege Escalation

Occurs when a user gains permissions beyond their intended authorization level.

There are two common types:

  • Horizontal: Accessing resources belonging to another user with similar privileges.
  • Vertical: Gaining access to functionality or permissions intended for higher-privileged users.

API

API stands for Application Programming Interface. It allows different software components to communicate with each other.



05 // WHERE TO LOOK FOR IDOR

When researching an application within an authorized bug bounty scope, several areas can be interesting.

USER ACCOUNTS
  • Profile information
  • Account settings
  • User preferences
  • Private resources

ORDERS & TRANSACTIONS
  • Order details
  • Invoices
  • Purchase history
  • Transaction records

FILE MANAGEMENT
  • Uploaded documents
  • Private attachments
  • Download functionality
  • Shared resources

API ENDPOINTS
  • REST APIs
  • GraphQL queries
  • Nested resources
  • Mobile application APIs



06 // MY RESEARCH METHODOLOGY

Here is a general workflow for investigating potential authorization issues.

STEP 01 – Application Reconnaissance

Understand how the application works and identify features that interact with user-specific resources.

STEP 02 – HTTP Traffic Analysis

Use Burp Suite or browser developer tools to inspect requests and understand how the frontend communicates with the backend.

STEP 03 – Identify Object References

Look for resource identifiers in URL paths, query parameters, request bodies, and API responses.

STEP 04 – Authorization Testing

Use two accounts that you control to compare access permissions and determine whether the backend correctly enforces ownership.

STEP 05 – Analyze the Impact

Determine whether unauthorized access or modification is actually possible.

STEP 06 – Document the Finding

Prepare clear reproduction steps and evidence using only resources and accounts you are authorized to test.



07 // USEFUL TOOLS

Burp Suite
A popular web security testing platform used to intercept, inspect, and modify HTTP traffic.

OWASP ZAP
An open-source web application security testing tool.

Postman
Useful for interacting with and examining APIs.

Browser Developer Tools
Helpful for inspecting network requests, application behavior, and frontend communication.

Important note: Tools can help identify potential issues, but understanding application logic and authorization behavior is essential.



08 // WHAT MAKES A GOOD BUG BOUNTY REPORT?

Finding a vulnerability is only half the work. A good report should be clear, reproducible, and focused on actual security impact.

A professional report should include:

  • Title: A short and descriptive vulnerability title.
  • Affected endpoint: The relevant URL or API endpoint.
  • Description: Explain the authorization weakness.
  • Steps to reproduce: Provide clear reproduction steps.
  • Expected result: Explain what should happen.
  • Actual result: Explain what happens instead.
  • Impact: Describe the potential security consequences.
  • Evidence: Include relevant screenshots or sanitized HTTP requests.



09 // COMMON BEGINNER MISTAKES

  • Assuming every exposed ID is vulnerable.
  • Confusing authentication with authorization.
  • Relying entirely on automated scanners.
  • Testing without understanding application behavior.
  • Reporting a vulnerability without demonstrating impact.
  • Ignoring the program's scope and testing restrictions.

Remember: A successful HTTP response does not automatically mean an IDOR exists. You need to demonstrate an actual authorization failure.



10 // COMMUNITY DISCUSSION

I'd like to hear from other researchers and bug bounty hunters.

01. What is your preferred approach for discovering IDOR vulnerabilities?

02. Do you prefer manual testing or automated tools?

03. Which API features do you think are most commonly overlooked?

04. Have you encountered interesting authorization issues involving GraphQL?

05. What is the biggest mistake beginners make when testing access control?

06. Which vulnerability class would you recommend learning after IDOR?

07. What tools do you consider essential for web application security research?



FINAL THOUGHTS

IDOR is a great example of why understanding application logic is so important in cybersecurity.

You don't always need complicated exploits or advanced techniques to discover meaningful security issues.

Sometimes, a simple missing authorization check can expose sensitive information or allow unauthorized actions.

The key is understanding how applications handle identity, ownership, and permissions.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Knowledge first. Tools second.

Feel free to share your experiences, techniques, questions, and suggestions below.

BUG BOUNTY | WEB SECURITY | ETHICAL RESEARCH

P L U M E
Love1
Authentication tells you who someone is, authorization determines what they can access a lot of applications get the first right but fail at the second
lets see.

You must log in or register to reply here.

Back to Bug Bounty