Grandmaster rank emblem

Lvl 99

Level XP3,807/5,718

3807 of 5718
Grandmaster dreadnaught
Machine
iClean
OS
Linux
Difficulty
Medium
Steps
4
Added
3 Aug 2024

An XSS steals an admin cookie and a Jinja2 SSTI gives a shell; cracked creds reach a user, and a sudo qpdf reads root's key.

0Reconnmap1FootholdXSS cookie2FootholdJinja2 SSTI3Lateralconsuela4Priv escsudo qpdf
1Recon2Foothold3Lateral4Priv escnmap1XSS cookie2Jinja2 SSTI3consuela4sudo qpdf5

How it went

  1. 0
    nmap

    A full-port nmap scan redirects to capiclean.htb.

  2. 1
    XSS cookie

    A stored XSS in the service field steals an admin session cookie for the dashboard.

  3. 2
    Jinja2 SSTI

    The QR qr_link field is vulnerable to Jinja2 SSTI, giving code execution as www-data.

  4. 3
    consuela

    Database credentials recovered from the app crack to Consuela's password for an SSH login and the user flag.

  5. 4
    sudo qpdf

    Consuela can sudo qpdf; its --add-attachment option embeds root's SSH key into a PDF to read it out.