Machines - HTB
Explore and Learn
A collection of walkthroughs and insights for tackling challenges on Hack The Box. Explore different techniques and approaches to enhance your cybersecurity skills.
Walkthroughs and Techniques

WifineticTwo is a medium-difficulty Linux machine with OpenPLC on port 8080, vulnerable to Remote Code Execution (CVE-2021-31630). After gaining initial access, a WPS attack is executed to retrieve the Wi-Fi password for an Access Point. This enables targeting the OpenWRT router to obtain a root shell via its web interface.

Runner is a medium-difficulty Linux box with a TeamCity vulnerability (CVE-2023-42793) for authentication bypass. We extract matthew's credentials and john's SSH key, then access a Portainer instance with limited privileges. Finally, we exploit a runc vulnerability (CVE-2024-21626) to create a SUID bash file on the host.

Perfection is an easy Linux machine with a web application for calculating student scores, vulnerable to Server-Side Template Injection (SSTI) via regex bypass. Exploiting this grants foothold access, and the user is in the sudo group. Enumeration reveals password hashes and a possible format. A mask attack uncovers the user's password, enabling root access.
Last updated
Was this helpful?