r/hackthebox • u/MotasemHa • 4d ago
Writeup HTB DoubleTake Writeup
This week I had a look at DoubleTake machine which is an Easy-difficulty Linux box built around an AI-agent web platform (Zentara) running inside a Docker container, with the exposed SSH service itself also living inside that same container rather than on the host.
To achieve foothold, I exploit CVE-2026-123158 (sshole) which is a password-authentication bypass against OpenSSH 10.6p1 compiled against musl libc rather than glibc which lets an attacker authenticate as the normally-unauthenticatable alpine system account by sending an oversized (300-byte) password that triggers a specific failure path in musl's crypt() implementation.
Once inside the container, I found a saved Firefox profile leaking plaintext credentials (base64-encoded, no master password) for a second local user, bob, who also happens to be a valid login for the Zentara web application itself.
Inside Zentara, I foudn a chat history between a developer and an AI coding assistant casually reveals that the platform's deploy feature accepts .tar.xz archives and extracts them server-side by the container engine which turns out to literally mean the host's Docker daemon.
In the prvilege escalation, I discover CVE-2026-41567 which is a Docker engine flaw (affecting versions through 29.5.0) where the daemon resolves decompression helper binaries (xz, unpigz) from the container's own filesystem instead of the trusted host filesystem, while still running that resolved binary as the Docker daemon process itself i.e., as host root with CAP_SYS_ADMIN.
Replacing the container's /usr/bin/xz with a trojan, then triggering an .xz-compressed deploy, causes the Docker daemon on the host to execute the attacker's binary with full host root privileges, which mounts procfs and chroots into /proc/1/root to pivot cleanly into the real host filesystem and spawn a root shell.
•
u/AutoModerator 4d ago
Thank you for posting on r/hackthebox! New to Cyber Security and looking for a place to get started? Checkout our getting started guide here. Please note that posting Solutions or Hints for Active content goes against the HTB Terms of Service, more information can be found here. If your having issues and need to reach customer support please do so via the in-platform chat, or by emailing customerops@hackthebox.com. Our Knowledge Base can also come in handy!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/[deleted] 1d ago
[removed] — view removed comment