A detailed walkthrough of the HackTheBox machine MonitorsFour, a Windows host running Docker Desktop with WSL2 backend. The attack chain involves: exploiting a PHP type juggling flaw (loose == comparison with '0e' magic hashes) to bypass authentication and dump user credentials from an API endpoint; cracking MD5 password hashes to gain access to a Cacti 1.2.28 instance; exploiting CVE-2025-24367 (newline injection into rrdtool via cacti_escapeshellarg on Windows) to write a PHP webshell and get RCE inside a Docker container; and finally abusing CVE-2025-9074 (unauthenticated Docker Engine API accessible at 192.168.65.7:2375 from within containers in Docker Desktop) to create a new privileged container that mounts the Windows host's C: drive, enabling reading the root flag. A bonus section covers turning filesystem access into a Windows shell via scheduled tasks.

30m read timeFrom 0xdf.gitlab.io
Post cover image
Table of contents
Box InfoReconShell as www-data in ContainerShell as root on WSLBeyond Root

Sort: