LazyAdmin is an easy Linux machine that demonstrates common web application vulnerabilities and basic privilege escalation techniques. The machine features a vulnerable Content Management System (CMS) installation and misconfigured system permissions.
Starting with a comprehensive Nmap scan to identify open ports and services:
sudo nmap -sV -sC -A-oN nmap_scan
The scan reveals several open ports:
Basic web enumeration shows a default Apache page. Directory enumeration with Gobuster reveals additional paths:
gobuster dir -u http://-w /usr/share/wordlists/dirb/common.txt -o gobuster_scan
This discovers a hidden content management directory.
Exploring the discovered directory reveals a SweetRice CMS installation. SweetRice is a lightweight CMS that has known vulnerabilities.
Checking for common CMS vulnerabilities, including:
Exploiting the vulnerable CMS provides initial access to the system. Successful exploitation leads to shell access as the www-data user.
Basic enumeration of the compromised system:
whoami && pwd && ls -la
Looking for user and system information:
id && uname -a && cat /etc/passwd | grep -E "(admin|backup|manager)"
Locating and capturing the user flag:
find /home -name "*flag*" -type f 2>/dev/null
Or checking common locations:
ls -la /home/*/
User Flag: THM{63e5bce9271952aad1113b6f1ac28a07}
Checking for privilege escalation opportunities:
sudo -l
The sudo configuration reveals misconfigured permissions that allow privilege escalation to root. This is a common Linux privilege escalation vector involving:
Successful privilege escalation provides root access. Locating the root flag:
find /root -name "*flag*" -type f 2>/dev/null
Root Flag: THM{6637f41d0177b6f37cb20d775124699f}
Answer: THM{63e5bce9271952aad1113b6f1ac28a07}
Answer: THM{6637f41d0177b6f37cb20d775124699f}
The primary attack vector involves a vulnerable Content Management System. SweetRice CMS has documented vulnerabilities that allow:
The privilege escalation occurs through misconfigured sudo permissions, allowing execution of privileged commands without proper password verification.
LazyAdmin is rated as an easy room due to:
Perfect for beginners learning web application exploitation and Linux privilege escalation fundamentals.