Skip to content

Commit e6cd18b

Browse files
committed
Add a guideline about managing access to objects (IDOR)
1 parent 419a004 commit e6cd18b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/security_guidelines.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,3 +220,18 @@ Implementing a code review process helps catch potential security issues before
220220
### Lock down your server configuration
221221

222222
Ensure that configuration files for your web server are not publicly accessible.
223+
224+
### Verify access to objects
225+
226+
Insufficient access control and insecure exposure of object identifiers, such as database keys or file paths can lead to [Insecure Direct Object Reference (IDOR)](https://developer.mozilla.org/en-US/docs/Web/Security/Attacks/IDOR) attacks.
227+
228+
To mitigate this:
229+
230+
- Always verify that the authenticated user is authorized to access or modify the object.
231+
- Avoid exposing predictable, sequential, or sensitive object identifiers (like user IDs or email addresses).
232+
- Use more complex IDs that are harder to predict (for example, UUIDs).
233+
234+
#### Learn more
235+
236+
- [Insecure Direct Object Reference Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Insecure_Direct_Object_Reference_Prevention_Cheat_Sheet.html) (OWASP)
237+
- [Insecure Direct Object Reference (IDOR)](https://developer.mozilla.org/en-US/docs/Web/Security/Attacks/IDOR) (MDN)

0 commit comments

Comments
 (0)