Grandmaster rank emblem

Lvl 99

Level XP3,807/5,718

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

A leaked account file gives a login; an upload filter flaw gives code execution, and a SUID binary gives root.

0Reconnmap1Footholdbank.htb2Footholdbalance-transfer3Foothold.htb upload4Priv escSUID binary
1Recon2Foothold3Priv escnmap1bank.htb2balance-transfer3.htb upload4SUID binary5

How it went

  1. 0
    nmap

    An nmap scan shows a web server on port 80.

  2. 1
    bank.htb

    Adding bank.htb to hosts reveals a login page and a /balance-transfer directory.

  3. 2
    balance-transfer

    One account file is far smaller than the rest and leaks plaintext login credentials.

  4. 3
    .htb upload

    The support page runs .htb uploads as PHP, so a renamed PHP shell gives code execution for the user flag.

  5. 4
    SUID binary

    A world-executable SUID emergency binary spawns a root shell.