Cobblestone — HTB Box Writeup
retleave·Apr 21, 2026·7 min read
Cobblestone - HTB Box
Info
- Type: Box (HackTheBox)
- OS: Linux (Debian 12)
- IP: 10.129.232.170
- Difficulty: Medium
- Key Topics: SQL Injection, FILE privilege abuse, Cobbler XMLRPC, Cheetah SSTI (CVE-2024-47533)
Abstract
Cobblestone is a medium-difficulty Linux box featuring a multi-stage attack chain. Initial access begins with a UNION-based SQL injection on a voting application that, combined with the MySQL FILE privilege, allows writing a webshell to disk. Credential harvesting from the database leads to SSH access as the
cobble user inside a restricted shell. Privilege escalation exploits CVE-2024-47533 in Cobbler 3.3.06 -- a server-side template injection (SSTI) in the Cheetah templating engine triggered through the XMLRPC API. This writeup examines each stage in depth, with particular focus on the Cobbler exploitation path, which requires careful setup of distros, profiles, and autoinstall templates to achieve code execution as root.Reconnaissance
Port Scanning
The target exposes only two services:
- 22/tcp -- SSH (OpenSSH 9.2p1 Debian)
- 80/tcp -- HTTP (Apache 2.4.62)
Virtual Host Discovery
Three virtual hosts were identified through enumeration:
| VHost | Purpose |
|---|---|
cobblestone.htb | Skins application (download.php, suggest_skin.php, upload.php) |
vote.cobblestone.htb | Voting application (login, register, suggest URL) |
Content Locked
This challenge is still active on HackTheBox. The full writeup will be available after retirement.