- 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.
How it went
- 0nmap
An nmap scan shows a web server on port 80.
- 1bank.htb
Adding bank.htb to hosts reveals a login page and a /balance-transfer directory.
- 2balance-transfer
One account file is far smaller than the rest and leaks plaintext login credentials.
- 3.htb upload
The support page runs .htb uploads as PHP, so a renamed PHP shell gives code execution for the user flag.
- 4SUID binary
A world-executable SUID emergency binary spawns a root shell.