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.
Horizontal versus vertical privilege escalation
Horizontal privilege escalation
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.