Linux PrivEsc Arena

Connection SSH

 ssh -oHostKeyAlgorithms=+ssh-dss TCM@10.10.19.42

Privilege Escalation - Kernel Exploits

Detection

/home/user/tools/linux-exploit-suggester/linux-exploit-suggester.sh

Privilege Escalation - Stored Passwords (Config Files & History)

Config File

History!

What was TCM trying to log into?

Who was TCM trying to log in as?

Who was TCM trying to log in as?

Privilege Escalation - SSH Keys

Privilege Escalation - Sudo (LD_PRELOAD)

  1. In command prompt type: sudo -l

  2. From the output, notice that the LD_PRELOAD environment variable is intact.

Privilege Escalation - SUID (Shared Object Injection)

Detection

Exploitation

Privilege Escalation - SUID (Environment Variables #1,2)

#1 Detection

Exploitation

#2 Detection

Privilege Escalation - Capabilities

Last updated