Explore the dangers, methods, and defenses against privilege escalation attacks.
Privilege escalation is the act of exploiting a bug, design flaw, or configuration oversight in an operating system or software application to gain elevated access to resources that are normally protected from an application or user.
Attackers used a supply chain attack to insert malicious code into SolarWinds' Orion software, which then allowed them to perform privilege escalation and move laterally within compromised networks.
A set of vulnerabilities in Microsoft Exchange Server allowed attackers to perform privilege escalation and take control of affected systems, leading to widespread compromises.
A vulnerability in the sudo utility (CVE-2021-3156) allowed any local user to gain root privileges on Unix-like operating systems, highlighting the importance of promptly applying security updates.
Here's an example of how an attacker might attempt to escalate privileges on a Linux system:
# Check for SUID binaries
find / -perm -u=s -type f 2>/dev/null
# Exploit a vulnerable SUID binary (example: pkexec)
pkexec /bin/bashThis example demonstrates: