Business Logic Tests
Uncover the details of Pynt's security tests for business logic vulnerabilities in our documentation! Learn how Pynt safeguards against critical business logic threats.
At a Glance: ⚠️ Business logic API attacks exploit weaknesses in the underlying logic of an API to gain unauthorized access or manipulate data. Developers must understand these issues to prevent security breaches.
What are the common mistakes made by developers?
In most cases Business logic issues happen when authorization is not enforced through all the flows of the application. Modern applications usually assign a non guessable identifiers to users and resources.
Consider the following example:
The function get_profile accepts the User ID as uid and directly querying the database to get this user's profile without any validation that the logged in user is the same user that is represented by the uid.
How can I fix Business Logic issues?
Ensure that only authorized users can access the API and that access is granted on a need-to-know basis. Use strong authentication methods such as multi-factor authentication and implement authorization checks at the API endpoint level.
Test cases in this category
These test cases test the enforce of authorization between user identifiers, resource identifiers and the actual logged in users on APIs that read user related data
[BL001] User data leakage to other users - Resource-ID authorization
[BL002] User data leakage to other users - User-ID authorization
[BL003] User data leakage to other users - Resource-ID and User-ID authorization
[BL004] User data leakage to other users - credentials authorization
These test cases test the enforce of authorization between user identifiers, resource identifiers and the actual logged in users on APIs that write user related data
[BL005] User data manipulation by other users - Resource-ID authorization
[BL006] User data manipulation by other users - User-ID authorization
[BL007] User data manipulation by other users - Resource-ID and User-ID authorization
[BL008] User data manipulation by other users - credentials authorization
This test case try to guess values of user Identifiers with a numeric structure
[BL009] Guessable resource identifier
Last updated