Grandmaster rank emblem

Lvl 99

Level XP3,807/5,718

3807 of 5718
Grandmaster dreadnaught
Machine
MonitorsTwo
OS
Linux
Difficulty
Easy
Steps
4
Added
2 Sep 2023

A Cacti RCE gives a container shell; cracked DB creds give a user, and a Docker overlay flaw escalates to host root.

0Reconnmap1FootholdCacti RCE2Lateralmarcus3Priv escSUID capsh4Priv escDocker overlay
1Recon2Foothold3Lateral4Priv escnmap1Cacti RCE2marcus3SUID capsh4Docker overlay5

How it went

  1. 0
    nmap

    An nmap scan shows Cacti running on port 80.

  2. 1
    Cacti RCE

    An unauthenticated Cacti RCE lands a shell inside a container.

  3. 2
    marcus

    The container's entrypoint leaks SQL credentials; a dumped hash cracks to marcus:funkymonkey for an SSH login and the user flag.

  4. 3
    SUID capsh

    A SUID capsh inside the container spawns a root shell there.

  5. 4
    Docker overlay

    A Docker overlay flaw exposes the container filesystem on the host, so a SUID binary built as container-root runs as root on the host.