Grandmaster rank emblem

Lvl 99

Level XP3,807/5,718

3807 of 5718
Grandmaster dreadnaught
Machine
Jewel
OS
Linux
Difficulty
Medium
Steps
3
Added
23 Mar 2023

A Rails deserialization RCE gives a shell; a cracked backup hash and a 2FA-gated sudo gem rule give root.

0Reconnmap1FootholdRails RCE2Lateralbill3Priv escsudo gem (2FA)
1Recon2Foothold3Lateral4Priv escnmap1Rails RCE2bill3sudo gem (2FA)4

How it went

  1. 0
    nmap

    An nmap scan shows a Git service on 8000 and a Rails blog on 8080.

  2. 1
    Rails RCE

    Rails 5.2.2.1 is vulnerable to a deserialization RCE through a profile update, giving a shell and the user flag.

  3. 2
    bill

    A SQL dump in /var/backups yields hashes; bill's cracks to spongebob.

  4. 3
    sudo gem (2FA)

    bill can sudo gem but it needs a TOTP; a Google Authenticator seed in his home generates the code, and gem's sudo rule spawns a root shell.