HackTheBox:Blunder(Linux)
Lets hit this off with nmap scan.

We see that port 80 is open and certainly that’s where we will start but the site doesn’t have much for us.

So we need to explore this a bit and do the directory busting for this target.

We found the admin page , now again we hit a dead end since we don’t have credentials.

So we do directory busting again.

The other directories are not so interesting but this todo.txt is promising.

First thing, its written that they need to update the CMS which means that this version is definitely vulnerable and the other thing is that this fergus user needs to do something about uploading images. So we have a username but no password.
For password we can brute force our way in but for that we can’t have a random list so we can use cewl tool to generate the wordlist.

Now since we know its Bludit ,we should find some exploit which can help us implement this.


Now that we have the credentials we can use them in the upload exploit for bludit.

Now here we are www-data , when we explore the file system we find a hash for administrator but the problem is we are unable to crack it.

So we enumerate further and find another user.php which has password hash for user hugo.

We can easily crack it on crackstation.

Now we just need to switch user to hugo and get the first flag.

After this we enumerate sudo and get an exploit for privilege escalation and we easily get the flag.

Happy Hacking!!!!
Comments
Post a Comment