Grandmaster rank emblem

Lvl 99

Level XP3,807/5,718

3807 of 5718
Grandmaster dreadnaught
Machine
Inject
OS
Linux
Difficulty
Easy
Steps
4
Added
8 Jul 2023

Path traversal exposes a Spring RCE for a shell; chained creds reach a second user, and an Ansible race condition gives root.

0Reconnmap1Foothold/show_image2FootholdSpring RCE3Lateralphil4Priv escplaybook race
1Recon2Foothold3Lateral4Priv escnmap1/show_image2Spring RCE3phil4playbook race5

How it went

  1. 0
    nmap

    An nmap scan shows a custom web app on port 8080.

  2. 1
    /show_image

    Path traversal on /show_image exposes the app as Spring Boot.

  3. 2
    Spring RCE

    A known Spring RCE lands a shell; dropping an authorized_keys file allows an SSH login as frank.

  4. 3
    phil

    Phil's credentials sit in a .m2 directory; su to Phil for the user flag.

  5. 4
    playbook race

    pspy reveals a root job that clears a writable tasks dir and runs an Ansible playbook; winning the race to plant a malicious playbook runs it as root.