Join our Newsletter — 33% off our NHI Course
Home› FAQ› Cyber Security› What is the difference between BOLA and BFLA…
Cyber Security

What is the difference between BOLA and BFLA in API security testing?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 31, 2026 Domain: Cyber Security

BOLA, or Broken Object Level Authorization, happens when a user can access another user’s object, such as an order or record, without permission. BFLA, or Broken Function Level Authorization, happens when a user can call a function they should not have, such as an admin-only delete operation. Both are authorization failures, but they affect different control points.

How BOLA and BFLA differ in API testing

BOLA and BFLA are both authorization failures, but they fail at different layers. BOLA is about object access, for example one user reading or changing another user’s record. BFLA is about function access, for example invoking an admin-only action or hidden endpoint that should be blocked.

The practical distinction matters because the testing method is different. BOLA checks whether the API enforces object ownership or tenant boundaries on each record, while BFLA checks whether the API enforces role, scope, or permission checks before a function executes. A test can pass one and still fail the other.

In the OWASP API Security Top 10, BOLA maps to object-level authorization weakness and BFLA maps to function-level authorization weakness, so the correct test cases need to be built around both control points rather than treating “authorization” as one generic check. OWASP API Security Top 10

Why the distinction matters in real APIs

BOLA usually shows up where the API accepts an object identifier and then trusts the caller too much. Common examples include order IDs, customer IDs, invoice IDs, file IDs, or tenant-scoped records. If the server only checks that the caller is authenticated, but not that the caller owns the object, the API can leak or modify data across users.

BFLA usually shows up where a function is exposed but not properly protected. That includes delete, approve, export, refund, admin, or debugging operations. In practice, BFLA often appears as missing role checks, broken scope enforcement, method tampering, or exposed internal endpoints that the application assumed users would never discover.

For API testing, that means you need separate negative tests for resource access and action access. A user may be correctly blocked from another customer’s record and still be able to call an admin function, or the reverse. The two failures require different assertions and often different remediations. API Penetration Testing Guide OWASP API Top 10 API1 Broken Object Level Authorization Guide OWASP API Top 10 API5 Broken Function Level Authorization Guide

How to test for each one without mixing them up

For BOLA, the test is whether the same endpoint returns another user’s object when you swap identifiers, change tenant context, or replay the request with a lower-privilege account. Focus on object ownership, row-level controls, and any business object that should remain invisible outside the current subject or tenant.

For BFLA, the test is whether a lower-privilege user can reach a function that should be restricted even if the object itself is valid. Focus on hidden routes, alternate HTTP methods, parameter tampering, forced browsing, and role or scope bypasses on actions such as delete, export, approve, or administrative maintenance.

The strongest testing programs treat these as separate rows in an authorization matrix. That makes it easier to prove that each role can only reach the objects and functions it is supposed to, and it reduces the risk of missing a failure because the API “looked protected” in one dimension but not the other. Authorisation Testing Automation Guide Top 10 API Security Risks API Security Guide

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 addresses the attack and risk surface, while OWASP ASVS and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP API Security Top 10API1 — Broken Object Level AuthorizationBOLA is the object-level failure described in the question.
API5 — Broken Function Level AuthorizationBFLA is the function-level failure described in the question.
Recommendation — Test object ownership checks on every identifier-bearing API call. Enforce deny-by-default checks before sensitive functions execute.
OWASP ASVSV8 — AuthorizationASVS V8 covers the authorization verification needed to separate object and function access.
Recommendation — Verify that each role, scope, and user path is authorized before access is granted.
NIST SP 800-53 Rev 5AC-3 — Access EnforcementAPI object and function checks both depend on enforcing access decisions at request time.
Recommendation — Enforce access decisions on each API request and action.

Practitioner Guidance

What to verify: Test BOLA and BFLA with different accounts, roles, and tenants, not just with one happy-path user. A useful test proves both object ownership controls and function authorization controls separately, because one passing check does not imply the other is safe.

Decision rule: If the issue is “can this user reach this record?”, treat it as BOLA. If the issue is “can this user invoke this action?”, treat it as BFLA. That distinction helps teams assign the bug to the right control owner and avoid fixing the wrong layer first.

Practitioner takeaway: Good API security testing does not look for “authorization” in the abstract, it proves that object access and function access are both denied wherever they should be.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 31, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org