This is THM: Road.
Inspired by a real-world pentesting engagement
SSH and HTTP, we’ll assume we’re looking to compromise a website.
Clicking around on the site we have a website for a courier company, we can register an account:
And then login. Once we’re logged in, we can poke around and most of the links are disabled, but we do have an option to reset our password:
And if we look at our profile:
GET /v2/profile.php HTTP/1.1
We see there is an option to upload a profile picture, but there is a message:
Right now, only admin has access to this feature. Please drop an email to email@example.com in case of any changes.
So, of course we use the password reset feature with the admin username, right?!
And we get this response:
And now we are admin. Which means we can upload a profile picture:
But where do we find it? This is where the Burpsuite ‘Target’ tab comes in handy:
We have no directory listing, so let’s try:
Linpeas says we have mongodb:
I don’t know how to use it:
But that’s never stopped me before:
I have never done one of these before. The tar wildcard privesc doesn’t work on an extract, and it’s LD_PRELOAD we want.
This was fun :)