Facts HackTheBox Writeup - Season10
SUMMARY
This write-up covers the Active machine from HackTheBox Season 10. The initial foothold is obtained by exploiting CamaleonCMS, which is vulnerable to CVE-2024-46987, allowing a Local File Inclusion (LFI) attack.
By abusing this vulnerability, sensitive files on the server can be read, including an SSH private key belonging to a system user. After retrieving the key, the passphrase was cracked to gain initial SSH access to the machine.
Privilege escalation was achieved due to a misconfigured sudo rule, allowing the execution of a privileged binary and ultimately leading to root access on the system.
PATH TO FOLLOW
- Reconnaissance
- Web Enumeration
- Exploiting CamaleonCMS CVE-2024-46987
- Local File Inclusion (LFI)
- Extracting an SSH Private Key
- Cracking the SSH Passphrase
- Initial SSH Access
- Sudo Misconfiguration
- Privilege Escalation to Root
CONTENT WILL BE RELEASED ONCE THE MACHINE IS RETIRED