December 4, 2026
How to Identify BOLA, Broken Function-Level Authorization and API Access-Control Weaknesses
API penetration testing should evaluate what an authenticated user can actually do, not merely whether the user can login.

By Rebline CyberSec
1 min read
API Authorization Failures
1. Introduction
APIs are fundamental to modern applications.
Banking applications, mobile applications, e-commerce platforms and enterprise software use APIs to exchange information.
However, API security is not limited to authentication.
A user may successfully authenticate but still access information or functionality that should belong to another user.
This is the foundation of Broken Object Level Authorization (BOLA).
2. Understanding BOLA
Consider a banking application with an endpoint:
GET /api/v1/accounts/10001
Authorization: Bearer USER_A_TOKENGET /api/v1/accounts/10001
Authorization: Bearer USER_A_TOKENThe application returns information associated with account 10001.
Now imagine that the same user changes the identifier:
GET /api/v1/accounts/10002
Authorization: Bearer USER_A_TOKENGET /api/v1/accounts/10002
Authorization: Bearer USER_A_TOKENIf the application returns another customer's account information without checking ownership, the application may contain BOLA.
The vulnerability is not simply that the identifier is predictable.
The actual issue is the absence of effective server-side authorization.
3. Common API vulnerabilities
4. Practical API penetration-testing methodology
Step 1 โ Discover endpoints
Use Burp Suite Professional to inspect application traffic.
Identify:
- GET endpoints.
- POST endpoints.
- PUT/PATCH endpoints.
- DELETE endpoints.
- Administrative endpoints.
Step 2 โ Create test users
Use two accounts that you control.
- User A.
- User B.
Create separate resources for each account.
Step 3 โ Test object authorization
Access User A's resource using User B's authorized test session.
Check whether the server correctly denies unauthorized access.
Step 4 โ Test function authorization
Examine whether a normal user can access administrative functions.
Step 5 โ Test property-level authorization
Attempt to modify only the properties that your test account is explicitly permitted to change.
Verify that sensitive fields cannot be modified through mass assignment.
Step 6 โ Document evidence
Capture:
- Endpoint.
- HTTP method.
- Test account.
- Request.
- Response.
- Authorization failure.
- Business impact.
- Remediation.
5. Burp Suite testing example
GET /api/v1/profile/USER_B_ID HTTP/1.1
Host: staging.example.com
Authorization: Bearer USER_A_TEST_TOKENGET /api/v1/profile/USER_B_ID HTTP/1.1
Host: staging.example.com
Authorization: Bearer USER_A_TEST_TOKENExpected secure behavior:
HTTP/1.1 403 ForbiddenHTTP/1.1 403 ForbiddenThe exact expected response depends on the application's authorization design. A secure application may also return 404 to avoid disclosing resource existence.
6. Secure development recommendations
- Perform authorization checks on the server.
- Enforce object ownership.
- Apply role-based and attribute-based access control.
- Validate every sensitive operation.
- Avoid trusting client-side identifiers.
- Restrict sensitive response fields.
- Maintain API security regression tests.
7. Conclusion
API penetration testing should evaluate what an authenticated user can actually do, not merely whether the user can log in.
BOLA and BFLA testing are especially important for financial applications, healthcare platforms and multi-tenant systems.
References