POSTS
2026-11-01
HTB: Takeoff
Takeoff is a Hard-rated Linux machine where a Go template injection in ticket notes rendered by a PDF generator allows arbitrary file reads, leaking the web service's secrets. A boarding-pass QR code containing a gob-encoded payload is decoded, and its command field is forged with a valid HMAC signature to gain remote code execution as www-data. An API key recovered from the environment grants access to an internal n8n instance, where a malicious workflow with an Execute Command node yields root inside a container whose root directory is bind-mounted to a host user's home. Privilege escalation on the host is achieved by planting a SUID bash binary and an SSH key through the bind mount, escaping the web service's restricted mount namespace.

6670 words
·
32 min