☼
⌃
☰

Privilege Escalation

Table of Contents

Privilege escalation is the process of gaining higher-level permissions on a system than initially granted — moving from a low-privileged foothold (a standard user, a webshell running as a service account) to a more privileged context, typically administrator/root, or from one user's access to another's.

Related: Linux Privilege Escalation Windows Privilege Escalation Post Exploitation [[Denote query for ‘20260718T113500’]] [[Denote query for ‘20260718T113501’]] GTFOBins

Vertical vs Horizontal

The two directions privilege escalation can take, worth distinguishing clearly since they're classified differently on the exam:

  • Vertical (privilege escalation, strictly speaking): Moving from a lower privilege level to a higher one — standard user to root/ admin. This is what most people mean by "privesc" and what this note and its linked OS-specific notes cover.
  • Horizontal: Moving between accounts of similar privilege level — accessing another standard user's data or session without elevating overall privilege. This overlaps with IDOR and BOLA territory rather than classic privesc, and should generally be classified as those instead when the finding is really "access to another user's resources," not "gained higher privilege."

Why It Matters in a Pentest

Initial access rarely lands you at the target privilege level directly — a web application exploit typically gives you a low-privileged service account (www-data, IIS APPPOOL), not root or Domain Admin. Privilege escalation is the bridge between "I have a foothold" and "I have meaningful access" — and on PT1 specifically, most rooms require at least one privesc step to reach the final flag, not just the initial exploit.

General Approach

Regardless of OS, privilege escalation follows the same basic pattern:

  1. Enumerate — gather information about the system: running processes, installed software, permissions, configuration
  2. Identify — find a specific misconfiguration, vulnerability, or credential that provides a path to higher privilege
  3. Exploit — actually leverage the identified path

The OS-specific notes below cover what to actually look for at each step, and the comparison notes cover which automated tool to reach for first.

Tips

  • Don't skip manual verification of an automated tool's output — a finding flagged by LinPEAS/WinPEAS is a lead, not a confirmed exploit; verify it actually works before reporting it as a finding
  • If automated enumeration comes back clean, that's a signal to look at what's specific to this application/service running with elevated privileges, not just generic OS misconfigurations — see the OS-specific notes for what "specific to this target" usually means in practice
  • Classify carefully: a horizontal move (accessing another user's data at the same privilege level) is a different finding category from vertical escalation — don't lump them together in a report just because both involve "gaining access to something you shouldn't have"