HTB: Cobblestone
A detailed CTF write-up from 0xdf covering exploitation of HackTheBox’s Cobblestone machine. The attack chain begins with a second-order SQL injection vulnerability in a PHP application hosting Minecraft-themed sites, used to extract application source code. Stored XSS then hijacks an admin session, escalating to Twig template injection for code execution as the web user. After bypassing AppArmor restrictions, database credentials are extracted, cracked for SSH access, and finally root is obtained through multiple exploitation methods against the Cobbler service running as root, including default credentials and authentication bypass.
This post is licensed under CC BY 4.0 by the author.