Rethinking Broken Object Level Authorization Attacks Under Zero Trust Principle

Anbin Wu, Zhiyong Feng, Ruitao Feng, Zhenchang Xing, Yang LiuarXiv 2025

TL;DR

The paper introduces BolaZ, a novel defense framework designed to counter Broken Object Level Authorization (BOLA) attacks by applying Zero Trust micro-segmentation to RESTful APIs. By using static taint tracking to dynamically map how resource IDs flow between "producer" and "consumer" APIs, BolaZ automatically infers precise authorization boundaries without relying on rigid, manually defined security models. In an evaluation across 10 real-world GitHub projects, BolaZ successfully uncovered 35 previously unknown BOLA vulnerabilities with minimal performance overhead.

What Problem Does This Paper Address?

Broken Object Level Authorization (BOLA) ranks as the number one vulnerability in the OWASP API Security Top 10. It occurs when an application relies too heavily on user-supplied resource IDs in API requests without verifying if the user actually has permission to access that specific object. Attackers can easily exploit this by tampering with ID parameters (e.g., changing /api/order/733 to /api/order/845) to view or manipulate other users' data.

Existing state-of-the-art detection tools, such as BOLARAY, attempt to solve this by matching code behavior against a few manually summarized, rigid authorization models (like the "ownership model"). However, modern web applications are highly complex. As shown in Figure 1, a rigid ownership model might assume an article can only be updated by its creator, incorrectly flagging a legitimate public feature—like an API that increments a "like count" column—as a vulnerability. This mismatch between static human assumptions and dynamic system logic leads to high false-positive rates and missed vulnerabilities.

![Fig.

  1. BOLARAY authorization model](/figures/art_5e57eb350be34dfc9ca422b2b5923037)

Methods

BolaZ shifts the paradigm from human-defined rules to authorization-guided defense based on the system's actual data flow, leveraging the Zero Trust principle of "never trust, always verify."

The framework operates in two main phases:

  1. Offline Analysis (Static Taint Tracking): Using CodeQL, BolaZ tracks how resource IDs propagate through the codebase. It classifies APIs into distinct categories based on their data-flow behavior (see Figure 4):
  2. Producer APIs (P-API): APIs that generate or return a resource ID (typically via SQL SELECT statements).
  3. Consumer APIs (C-API): APIs that ingest a resource ID to perform operations (INSERT, UPDATE, DELETE).
  4. False Producers (FP-API) & Producer-Consumers (PC-API): Hybrid types that handle existing IDs.

![Fig.

  1. Classification of APIs based on rid production and consumption](/figures/art_5c401ece4d34464ba4e59bae78da078d)
  2. Micro-Segmentation (MSG) Interval Generation: BolaZ treats back-end SQL SELECT statements as the ground truth for an application's intended authorization boundaries. It maps the data flow from front-end JavaScript/HTML code down to back-end database queries to link P-APIs with C-APIs. It then generates "MSG intervals"—the narrowest logical boundaries defining which resource IDs a user is legitimately allowed to touch.
  3. Runtime Authorization: At runtime, BolaZ intercepts incoming C-API requests. It checks if the requested resource ID falls within the allowed MSG interval cached from the corresponding P-API. If an attacker attempts horizontal privilege escalation by injecting an unauthorized ID, BolaZ blocks the request.

![Fig.

  1. A BOLA attack on an order details API and its prevention by Micro-Segmentation (MSG)](/figures/art_fa4aa2c6ae794f40bc8d9e3c97ae38fc)

Datasets

The authors evaluated BolaZ using 10 open-source GitHub projects built on the Java SpringBoot framework (including Mall-master, BookStore-master, and OnlineExam-master), encompassing a total of 526 APIs.

To rigorously test the tool's precision and recall, the authors manually analyzed 5 of these systems to construct a ground-truth benchmark consisting of 40 P-APIs, 54 C-APIs, and 98 distinct API relations. They also validated the framework against known real-world BOLA vulnerabilities documented in the Common Vulnerabilities and Exposures (CVE) database (specifically CVE-2023-36100 and CVE-2023-32310).

Key Insights and Ideas

  • Resource ID Invariance: By analyzing nearly a hundred projects, the authors observed that resource IDs remain completely invariant as they propagate from production to consumption. They are assigned and copied, but almost never modified. This makes them ideal targets for static taint tracking.
  • Data-Level Micro-Segmentation: Micro-segmentation is traditionally a network security concept (isolating network segments). BolaZ cleverly applies this to application data, breaking the database's resource space into tiny, user-specific logical intervals based on active API workflows.
  • Context is King: Instead of asking "Does this user own this object?", BolaZ asks "Did the application legitimately provide this object ID to the user's front-end session via a prior Producer API?" This contextual awareness eliminates the need for hardcoded authorization rules.

Key Results

  • High Accuracy: On the manually verified benchmark, BolaZ achieved a 97% recall rate for identifying attack injection points and an 87% recall rate for mapping API associations, yielding only a single false positive.
  • Zero-Day Discovery: When deployed to scan real-world projects, BolaZ discovered 35 new, previously unreleased BOLA vulnerabilities across the 10 GitHub repositories, all of which were manually confirmed.
  • SOTA Comparison: Compared directly against a SpringBoot-adapted version of BOLARAY, BolaZ successfully identified 8 true vulnerabilities that BOLARAY missed (due to BOLARAY's inability to analyze SELECT statement vulnerabilities) and avoided several of BOLARAY's false positives.
  • Negligible Overhead: Runtime performance testing via Apache JMeter showed that BolaZ's caching mechanism keeps authorization checks at the millisecond level, adding minimal latency that is virtually imperceptible to end-users.

Limitations and Future Work

While highly effective, BolaZ currently has a few limitations:

  • Storage Constraints: It is strictly designed around relational databases utilizing SQL statements and does not yet support alternative storage architectures like Hadoop or Spark.
  • Client-Side Logic Vulnerabilities: If an application relies heavily on complex, obfuscated client-side JavaScript to determine data permissions, static analysis can struggle to accurately map the data flow, occasionally breaking the taint chain.
  • Framework Dependency: The current implementation is tailored to Java SpringBoot and relies on CodeQL, which can suffer from data-flow interruptions when encountering specific coding patterns (e.g., Arrays.asList).

Future iterations aim to integrate Dynamic Application Security Testing (DAST) to better capture runtime front-end relationships and introduce open programming interfaces for custom rule definitions.

Summary updated

BibTeX
@misc{wu2025rethinking,
  author = {Anbin Wu and Zhiyong Feng and Ruitao Feng and Zhenchang Xing and Yang Liu},
  title = {{Rethinking Broken Object Level Authorization Attacks Under Zero Trust Principle}},
  year = {2025},
  eprint = {2507.02309},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.02309},
}
Figure