Grandmaster rank emblem

Lvl 99

Level XP3,807/5,718

3807 of 5718
Grandmaster dreadnaught
Machine
Unbalanced
OS
Linux
Difficulty
Hard
Steps
5
Added
23 Mar 2023

An EncFS RSync backup leaks the Squid password; the proxy exposes an internal intranet, an XPath brute gives a user, and a Pi-hole gives root.

0Reconnmap1LootRSync EncFS2FootholdSquid fqdncache3FootholdXPath brute4Footholdbryan5Priv escPi-hole RCE
1Recon2Loot3Foothold4Priv escnmap1RSync EncFS2Squid fqdncache3XPath brute4bryan5Pi-hole RCE6

How it went

  1. 0
    nmap

    An nmap scan shows exposed RSync and a Squid proxy.

  2. 1
    RSync EncFS

    Anonymous RSync pulls an EncFS-encrypted backup; encfs2john cracks it to 'bubblegum', and decrypting leaks the Squid password.

  3. 2
    Squid fqdncache

    squidclient uses that password to query the proxy's fqdncache, revealing an internal intranet.

  4. 3
    XPath brute

    The intranet login falls to a SQL bypass and a blind XPath injection that brute-forces user passwords.

  5. 4
    bryan

    Bryan is the only local account among them, so his password logs in over SSH for the user flag.

  6. 5
    Pi-hole RCE

    An internal Pi-hole (admin) has an authenticated RCE; as www-data its config password is readable in /root, giving root over su.