As we saw in the previous section, privilege escalation means gaining privileges that you are not authorized to have. Privilege escalation can be one of two types: horizontal or vertical.
![](https://static.packt-cdn.com/products/9781788627252/graphics/assets/8032051d-46ef-40be-b9be-4004c8bd7e0d.png)
As we saw in the previous section, privilege escalation means gaining privileges that you are not authorized to have. Privilege escalation can be one of two types: horizontal or vertical.
Refer to the preceding diagram; there are four users in total: three normal users and one administrator. The users are shown as per their hierarchy. Now, if Normal User 1 is able to access the data of Normal User 2, it would be referred to as horizontal privilege escalation since both the users are on the same level in the hierarchy.