Grandmaster rank emblem

Lvl 99

Level XP3,807/5,718

3807 of 5718
Grandmaster dreadnaught
Machine
Curling
OS
Linux
Difficulty
Easy
Steps
4
Added
23 Mar 2023

A hidden secret.txt leaks the Joomla admin password; a template edit gives a shell, and a root cron abusing curl's config flag gives root.

0Reconnmap1FootholdJoomla admin2Footholdtemplate edit3Lateralfloris4Priv escroot cron
1Recon2Foothold3Lateral4Priv escnmap1Joomla admin2template edit3floris4root cron5

How it went

  1. 0
    nmap

    An nmap scan shows a custom site on port 80.

  2. 1
    Joomla admin

    A secret.txt comment base64-decodes to Curling2018!, the Joomla super-user password for Floris.

  3. 2
    template edit

    Editing a Joomla template injects a PHP reverse shell as www-data.

  4. 3
    floris

    A layered password_backup file in Floris's home decompresses to his password for an SSH login and the user flag.

  5. 4
    root cron

    A root cron runs curl against a writable input file; its -K config option redirects output to overwrite /etc/passwd for a root shell.