Test BOLA vulnerabilities
How to test for BOLA vulnerabilities with Snyk API and Web
Last updated
Was this helpful?
How to test for BOLA vulnerabilities with Snyk API and Web
Learn how to set up your target to be tested against Broken Object Level Authorization vulnerabilities.
Broken Object Level Authorization (BOLA) is a critical security vulnerability that occurs when a user can gain unauthorized access to other users' resources by changing part of a request, for example, changing a bank account number in a URL to access another user's data or resources.
You can use Snyk API & Web to test your APIs against this type of vulnerability by configuring the API target authentication and setting up two different users.
BOLA testing is only available for OpenAPI and GraphQL targets.
Setting up your target to be tested against BOLA vulnerabilities involves two steps:
Configure additional user for authorization testing
Select the appropriate scan profile
The following sections describe these steps in detail.
To configure the API Target authentication for BOLA testing:
Visit Configure OpenAPI authentication or Configure GraphQL authentication and follow the instructions for your authentication scenario.
When configuring authentication, select the Add additional user for authorization testing check box.
Configure the authentication for the second user using the same method (authentication payload or static headers/cookies). To reduce false positives, the second user must have the same level of privileges as the first user, or lower.
Complete the authentication configuration and ensure the toggle is set to On.
After configuring the API target authentication, choose the appropriate scan profile:
Access the Profile tab of that target's settings.
Choose either the API normal or API full scan profiles.
After you configure both sets of users for API targets and select the appropriate scan profile, Snyk tests against BOLA vulnerabilities.
Yes. The second user (the attacker) must not have access to the first user's resources.
The two users can have different privilege levels (for example, admin versus regular user), or they can have the same level, as long as the first user owns resources that should not be accessible to the second. That is what allows the scanner to test for BOLA vulnerabilities.
Ideally, the first user has multiple and varied private resources, so attempts by the second user to access them can effectively reveal access control flaws.
Last updated
Was this helpful?
Was this helpful?

