Grandmaster rank emblem

Lvl 99

Level XP3,807/5,718

3807 of 5718
Grandmaster dreadnaught
Machine
Precious
OS
Linux
Difficulty
Easy
Steps
3
Added
21 May 2023

A PDFKit command injection gives a shell; a leaked bundle config reaches a user, and a sudo Ruby YAML load gives root.

0Reconnmap1FootholdPDFKit 0.8.62Lateralhenry3Priv escYAML deserial
1Recon2Foothold3Lateral4Priv escnmap1PDFKit 0.8.62henry3YAML deserial4

How it went

  1. 0
    nmap

    An nmap scan shows a PDF-generation web app.

  2. 1
    PDFKit 0.8.6

    The site uses PDFKit 0.8.6, vulnerable to command injection via the URL field, giving a reverse shell.

  3. 2
    henry

    A ~/.bundle config leaks Henry's password for an SSH login and the user flag.

  4. 3
    YAML deserial

    A sudo Ruby script loads dependencies.yml from the current directory; a malicious YAML deserialization payload runs as root.