What Is a Privilege Escalation Attack? (Explained Clearly) - Vertical vs. Horizontal
Learn what a privilege escalation attack is, how vertical and horizontal escalation differ, and how to detect unauthorized access in logs and prevent it.
π Master your Security+ skills with Pluralsight here: Pluralsight
Youβll learn what a privilege escalation attack is, how to tell vertical escalation from horizontal escalation, and how to spot unauthorized access in logs. This beginner-friendly Security+ guide explains how least privilege and authorization checks help prevent it.
Chapters:
0:00 Intro
0:13 What is privilege escalation?
0:48 Vertical vs. horizontal privilege escalation
1:34 How does privilege escalation happen in real attacks?
2:30 How do you prevent and detect privilege escalation?
3:48 Outro
Affiliate notice: Some links may earn a commission. Thanks for your support.
- A privilege escalation attack crosses an authorization boundary. A valid login proves identity, not permission, and unauthorized access can occur without any change to the accountβs role.
- Vertical escalation unlocks a restricted action; horizontal escalation exposes someone elseβs records. A support employee issuing a manager-only refund is vertical; a customer viewing another customerβs invoice is horizontal.
- Monitor both privilege grants and application access. Investigate unexpected grants using approval records and related activity, and compare who requested sensitive records with who owns them. Windows event 4672 is a clue, not proof of an attack.
- Enforce least privilege and check authorization server-side. Make elevated access time-limited and verify permission for both the requested action and the specific record. MFA protects sign-ins but canβt replace these checks. See the OWASP Authorization Cheat Sheet.
- π Put your Security+ knowledge into practice with guided labs, feedback, assessments, and practice exams on Pluralsight.
A privilege escalation attack occurs when a person, application, or background service gains access or capabilities it was not authorized to have. That could mean a support employee issuing a manager-only refund or a customer viewing someone elseβs invoice. Only the first example involves a more powerful role, but both cross an authorization boundary.
What is a privilege escalation attack?
Authentication verifies who you are. Authorization determines what you can do and which resources you can access. A valid login answers the first question, not the second.
Privilege escalation is about what an identity can actually do, not just the permissions listed on its account. Extra access might last for a single request or process. The account can look exactly the same afterward, with no new role, group membership, or administrator grant.
FAQ
Quick answers to the questions people usually ask about this topic.
Can a privilege escalation attack succeed without changing a user's role?
Can a privilege escalation attack succeed without changing a user's role?
Yes. A single unauthorized action, such as approving a manager-only refund, can be vertical privilege escalation even if the account keeps its original role. Review what the account actually did, not just whether its permissions changed.
Is every access-control failure a privilege escalation attack?
Is every access-control failure a privilege escalation attack?
No. A missing authorization check is a weakness; an attack occurs when someone abuses it to gain access or perform an action they werenβt authorized to. Finding the weakness doesnβt prove it was exploited, so review the relevant logs to determine whether unauthorized access occurred.
Can a service account be involved in a privilege escalation attack?
Can a service account be involved in a privilege escalation attack?
Yes. A service account can gain capabilities it wasnβt intended to have, just like a human user. When reviewing service accounts, check not only what each account can access but also whether it can grant roles or change permissions beyond what its job requires.
What should application logs capture to help investigate horizontal privilege escalation?
What should application logs capture to help investigate horizontal privilege escalation?
Record the requesting identity, the action, the resource identifier, the relevant customer organization, the timestamp, and the authorization outcome. These details help investigators compare who made the request with who was allowed to access the resource. Avoid logging credentials, session tokens, or sensitive record contents.
How can developers check that an authorization fix covers more than one endpoint?
How can developers check that an authorization fix covers more than one endpoint?
On a system youβre authorized to test, add regression tests that verify both allowed and denied requests wherever the same resource can be accessed, such as through a detail view, search results, or an export. Include users from different customer organizations if the application serves multiple tenants. The OWASP Authorization Cheat Sheet offers guidance on verifying these controls.
Where can I practice recognizing privilege escalation for Security+?
Where can I practice recognizing privilege escalation for Security+?
If you understand the difference between vertical and horizontal escalation and want to apply it, try the guided security labs on Pluralsight. Lab feedback can help you check your reasoning, while assessments and practice exams can show you what to review next.
Comments
Add a comment...Pinned by @jaymayor
@jaymayorπ Master your Security+ skills with Pluralsight here: https://www.jaymayor.com/go/security-plus
Some links may earn a commission. Thanks for your support.
