Grandmaster rank emblem

Lvl 99

Level XP3,807/5,718

3807 of 5718
Grandmaster dreadnaught
Machine
Feline
OS
Linux
Difficulty
Hard
Steps
3
Added
23 Mar 2023

A Tomcat session-deserialization RCE gives a shell; a SaltStack RCE gives container root, and the host's Docker socket gives root on the host.

0Reconnmap1FootholdTomcat deserial2Container rootSaltStack RCE3Host rootDocker socket
1Recon2Foothold3Container root4Host rootnmap1Tomcat deserial2SaltStack RCE3Docker socket4

How it went

  1. 0
    nmap

    An nmap scan shows a malware-analysis web app on 8080, backed by Tomcat.

  2. 1
    Tomcat deserial

    The upload stores files at a known path; Tomcat's CVE-2020-9484 session-persistence deserialization, triggered via a ysoserial payload and a crafted JSESSIONID, gives a shell as tomcat and the user flag.

  3. 2
    SaltStack RCE

    An internal SaltStack on 4505/4506, reached over a chisel tunnel, is exploited with CVE-2020-11651 for root inside the container.

  4. 3
    Docker socket

    Root's bash history points at the host's Docker socket; forwarded out with socat, it runs a container mounting the host root filesystem for root on the host.