Grandmaster rank emblem

Lvl 99

Level XP3,807/5,718

3807 of 5718
Grandmaster dreadnaught
Machine
Cronos
OS
Linux
Difficulty
Medium
Steps
4
Added
23 Mar 2023

A DNS zone transfer and a login SQLi reach a command-injectable tool; a writable file in a root cron gives root.

0Reconnmap1Footholddig subdomain2FootholdSQLi bypass3Footholdcmd injection4Priv escroot cron
1Recon2Foothold3Priv escnmap1dig subdomain2SQLi bypass3cmd injection4root cron5

How it went

  1. 0
    nmap

    An nmap scan shows SSH, DNS, and a web server.

  2. 1
    dig subdomain

    DNS enumeration with dig uncovers an admin.cronos.htb subdomain.

  3. 2
    SQLi bypass

    The admin panel login is bypassed with SQL injection.

  4. 3
    cmd injection

    Its Net Tool runs user input unsanitised, giving command injection as www-data and the user flag.

  5. 4
    root cron

    A root cron runs a www-data-writable Laravel artisan file every minute; replacing it with a reverse shell lands root.