Grandmaster rank emblem

Lvl 99

Level XP3,807/5,718

3807 of 5718
Grandmaster dreadnaught
Machine
LaCasaDePapel
OS
Linux
Difficulty
Easy
Steps
4
Added
30 Mar 2019

A vsftpd 2.3.4 backdoor drops into a PHP Psy Shell; a stolen CA key forges a client cert, path traversal grabs an SSH key, and a writable supervisord config gives root.

0Reconnmap1Footholdvsftpd backdoor2Lateralclient cert3Pivotpath traversal4Priv escsupervisord
1Recon2Foothold3Lateral4Pivot5Priv escnmap1vsftpd backdoor2client cert3path traversal4supervisord5

How it went

  1. 0
    nmap

    nmap shows vsftpd 2.3.4 and an HTTPS site on 443 that demands a client certificate.

  2. 1
    vsftpd backdoor

    The vsftpd 2.3.4 backdoor(CVE-2011-2523) gets us a shell as dali.

  3. 2
    client cert

    The Psy Shell reads nairobi's CA key; signing a client cert with it unlocks the HTTPS app.

  4. 3
    path traversal

    The HTTPS file browser's base64 path parameter traverses to the user flag and professor's SSH key.

  5. 4
    supervisord

    professor owns the directory holding supervisord's memcached.ini; replacing it runs a command as root.