HackTheBox:Blunder(Linux)

 Lets hit this off with nmap scan.

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.

port 80

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

directory busting

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

login page

So we do directory busting again.

directory busting

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

todo.txt

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.

custom wordlist using cewl

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.

Upload Exploit

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.

hash

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

password hash

We can easily crack it on crackstation.

cracking the hash

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

user flag

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

root flag

Happy Hacking!!!!

Comments

Popular posts from this blog

HackTheBox:Tabby(Linux)

Legacy:Hack The Box(Windows)