Skip to main content

Overview

Windows local privilege escalation (LPE) involves exploiting misconfigurations, weak permissions, vulnerable services, or stored credentials to elevate from a standard user to SYSTEM/Administrator. The best automated enumeration tool is WinPEAS.
This content is for authorized penetration testing only. Never test systems you do not have explicit written permission to assess.

System Information Enumeration

1

OS Version and Patches

PowerShell:
2

Environment Variables

3

PowerShell History and Transcripts

4

Drives and Shares

WSUS Exploitation

If Windows Update uses HTTP instead of HTTPS:
If the value starts with http:// and UseWUServer=1, inject fake updates using Wsuxploit or pyWSUS.

AlwaysInstallElevated

If both registry keys are set to 0x1, any user can install MSIs as SYSTEM:
Exploit:

Service Exploitation

Key permissions that allow binary path modification:
  • SERVICE_CHANGE_CONFIG
  • WRITE_DAC
  • WRITE_OWNER
  • GENERIC_WRITE / GENERIC_ALL
Windows resolves unquoted paths with spaces by trying each partial path:
Find unquoted service paths:
If writable, change the binary path:

User and Group Enumeration

Running Processes Analysis

Check binary permissions of running processes:

Windows Credentials

Network Information

KrbRelayUp (Domain LPE)

Requires: LDAP signing not enforced + users can configure RBCD + users can create computers (all default settings).

Antivirus / Security Controls Enumeration

PATH DLL Hijacking

If you have write permissions inside a PATH folder:

References