Elevation of Privilege
Elevation of Privilege is when a user can execute something at a level of privilege superior to the one they should have, meaning they can acquire additional access rights or permissions or even take on the role of a different user. The ultimate goal is to have complete control of a system. This is called vertical privilege escalation, and there is also another type called horizontal privilege escalation. In horizontal privilege escalation, instead of taking on a role with a higher level of privilege, you take on the role of another user with the same level of permission as you but you can now access systems, functions, and data they can access. For example, you are logged in to your bank and, through horizontal privilege escalation, you take on the role of another user and have access to their bank account.
Figure 7.1: A user elevating their privileges to become the root user
In this chapter, we will cover the threats described on the...