Grandmaster rank emblem

Lvl 99

Level XP3,807/5,718

3807 of 5718
Grandmaster dreadnaught
Machine
MetaTwo
OS
Linux
Difficulty
Easy
Steps
4
Added
29 Apr 2023

A plugin SQLi and a WordPress XXE leak chained credentials to a user; a cracked PassPie key gives the root password.

0Reconnmap1FootholdBookingPress2Footholdmedia XXE3Lateraljnelson4Priv escPassPie
1Recon2Foothold3Lateral4Priv escnmap1BookingPress2media XXE3jnelson4PassPie5

How it went

  1. 0
    nmap

    An nmap scan shows FTP and a WordPress site at metapress.htb.

  2. 1
    BookingPress

    The BookingPress plugin is vulnerable to SQL injection; dumping and cracking the hashes gives manager:partylikearockstar.

  3. 2
    media XXE

    WordPress 5.6.2's media XXE reads wp-config.php and the nginx config, leaking database and FTP credentials.

  4. 3
    jnelson

    An FTP-hosted PHPMailer config leaks jnelson's password for an SSH login and the user flag.

  5. 4
    PassPie

    A PassPie PGP key in jnelson's home cracks with John, decrypting the stored root password for su.