-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Create 02-API_Broken_Object_Level_Authorization.md #1190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add API BOLA Testing
Thanks, will try to review this week. Hit me up if you haven't heard by Friday morning 😉 |
...plication_Security_Testing/12-API_Testing/02-API_Broken_Object_Level_Authorization_(BOLA).md
Outdated
Show resolved
Hide resolved
...plication_Security_Testing/12-API_Testing/02-API_Broken_Object_Level_Authorization_(BOLA).md
Outdated
Show resolved
Hide resolved
...plication_Security_Testing/12-API_Testing/02-API_Broken_Object_Level_Authorization_(BOLA).md
Outdated
Show resolved
Hide resolved
...plication_Security_Testing/12-API_Testing/02-API_Broken_Object_Level_Authorization_(BOLA).md
Outdated
Show resolved
Hide resolved
...plication_Security_Testing/12-API_Testing/02-API_Broken_Object_Level_Authorization_(BOLA).md
Outdated
Show resolved
Hide resolved
...plication_Security_Testing/12-API_Testing/02-API_Broken_Object_Level_Authorization_(BOLA).md
Outdated
Show resolved
Hide resolved
...plication_Security_Testing/12-API_Testing/02-API_Broken_Object_Level_Authorization_(BOLA).md
Outdated
Show resolved
Hide resolved
...plication_Security_Testing/12-API_Testing/02-API_Broken_Object_Level_Authorization_(BOLA).md
Outdated
Show resolved
Hide resolved
## Remediations | ||
|
||
To prevent BOLA, implement the following mitigations: | ||
|
||
**Object Ownership Checks**: Ensure that object-level authorization checks are performed for every API request. Always verify that the user making the request is authorized to access the requested object. | ||
|
||
**Role-Based Access Control (RBAC)**: Implement RBAC policies that define which roles can access or modify specific objects. | ||
|
||
**Least Privilege Principle**: Apply the principle of least privilege to ensure that users can only access the minimum set of objects they need for their role. | ||
|
||
**Use UUIDs or Non-Sequential IDs**: Prefer non-predictable, non-sequential object identifiers (e.g., **UUIDs** instead of simple integers) to make enumeration and brute-force attacks harder. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have a look at the template and make sure the heading matches. Use bullets :)
...plication_Security_Testing/12-API_Testing/02-API_Broken_Object_Level_Authorization_(BOLA).md
Outdated
Show resolved
Hide resolved
…to 02-API_Broken_Object_Level_Authorization.md
fixed small lint issue
This comment was marked as resolved.
This comment was marked as resolved.
...-Web_Application_Security_Testing/12-API_Testing/02-API_Broken_Object_Level_Authorization.md
Outdated
Show resolved
Hide resolved
…API_Broken_Object_Level_Authorization.md
@irgoncalves could you apply these changes/additions? I'm unable to for some reason: diff --git a/document/4-Web_Application_Security_Testing/12-API_Testing/README.md b/document/4-Web_Application_Security_Testing/12-API_Testing/README.md
--- document/4-Web_Application_Security_Testing/12-API_Testing/README.md
+++ document/4-Web_Application_Security_Testing/12-API_Testing/README.md
@@ -3,5 +3,7 @@
4.12.0 [API Testing Overview](00-API_Testing_Overview.md)
4.12.1 [API Reconnaissance](01-API_Reconnaissance.md)
+4.12.2 [API Reconnaissance](02-API_Broken_Object_Level_Authorization)
+
4.12.99 [Testing GraphQL](99-Testing_GraphQL.md)
diff --git a/document/README.md b/document/README.md
--- document/README.md
+++ document/README.md
@@ -313,8 +313,10 @@
#### 4.12.0 [API Testing Overview](4-Web_Application_Security_Testing/12-API_Testing/00-API_Testing_Overview.md)
#### 4.12.1 [API Reconnaissance](4-Web_Application_Security_Testing/12-API_Testing/01-API_Reconnaissance.md)
+#### 4.12.2 [API Reconnaissance](4-Web_Application_Security_Testing/12-API_Testing/02-API_Broken_Object_Level_Authorization)
+
#### 4.12.99 [Testing GraphQL](4-Web_Application_Security_Testing/12-API_Testing/99-Testing_GraphQL.md)
## 5. [Reporting](5-Reporting/README.md)
|
...-Web_Application_Security_Testing/12-API_Testing/02-API_Broken_Object_Level_Authorization.md
Outdated
Show resolved
Hide resolved
…API_Broken_Object_Level_Authorization.md
Thank you!! |
Don’t forget to fire in a PR adding yourself to the credits in section 1. |
Add API BOLA Testing
This PR is part of issue #5.
What did this PR accomplish?