An access control vulnerability where a user gains a higher privilege level than their account should have, such as a regular user reaching administrator functions.
Vertical Privilege Escalation occurs when a user gains a higher privilege level than their account should have, such as a regular user reaching administrator functionality. This is the axis that distinguishes it from horizontal escalation, where the attacker stays at the same privilege level but reaches a peer's data.
The application decides what a user may do based on a value it fails to re-verify: a role in the request, a claim in a token, or nothing more than the client not being shown the admin UI. Attackers reach privileged functions by hitting the endpoint directly, editing a role field, or replaying a token whose elevated claims were never invalidated.
// Admin endpoint with no server-side role check
GET /api/admin/delete-user/123 -- reachable by any authenticated user
// Role field trusted from the request body
POST /user/update
{"username": "attacker", "role": "admin"}
// Token still carries a stale role claim
Authorization: Bearer <jwt with "role":"admin" issued before demotion>
role=admin in a request body is ignored