Today, we will be continuing with our exploration of Hack the Box (HTB) machines as seen in previous articles. This walkthrough is of an HTB machine named Mango.
HTB is an excellent platform that hosts machines belonging to multiple OSes. It also has some other challenges as well. Individuals have to solve the puzzle (simple enumeration plus pentest) in order to log into the platform and download the VPN pack to connect to the machines hosted on the HTB platform.
Note: Only write-ups of retired HTB machines are allowed. The machine in this article, named Mango, is retired.
Let’s start with this machine.
- Download the VPN pack for the individual user and use the guidelines to log into the HTB VPN.
- The Mango machine IP is 10.10.10.162.
- We will adopt the same methodology of performing penetration testing as we’ve used before. Let’s start with enumeration in order to gain as much information about the machine as possible.
- As usual, let’s start with the nmap scan to gather more information about the services running on this machine. [CLICK IMAGES TO ENLARGE]
<<nmap -sC -sV -oA Mango 10.10.10.162>>
- As can be seen, we have a staging-order.mango.htb domain as well. Let’s put that into the host’s file.
- Below is the real site on port 443.
- Below is the staging site.
- Using some common creds did not work, so we’ll intercept the request via Burp.
- Using the cheat sheet for noSQL injection like below, we make sure to add [!ne] for username and password.
- We can see that we bypass the login page. So now we can use the username and password enumeration script from here.
- Using it for username enumeration first, as shown below, we can see that it fetched two usernames.
*** This is a Security Bloggers Network syndicated blog from Infosec Resources authored by Security Ninja. Read the original post at: http://feedproxy.google.com/~r/infosecResources/~3/Pv8EkniIezk/