OWASP Top 10 : Understanding Broken Access Control
What is broken access control? Broken access control is a security issue where users can access data or perform actions that they shouldn't be allowed to. This happens when the system fails to properly enforce rules about what users can and cannot do. Types of access controls : 1 . Vertical privilege escalation: Vertical privilege escalation happens when a normal user gains access to functionalities reserved for higher-privileged users. Example: A normal user can change the policies of the company. 2. Horizontal privilege escalation: Horizontal privilege escalation allows a user to switch their access to another user's account, essentially impersonating them. Example: A normal user can switch their account to admin. 3 . Insecure direct object reference ( IDOR): IDOR occurs when an application exposes a reference to an internal implementation object, such as a file, directory, or database key. Example: Suppose...