Stranded at the end of the tunnel, with a login screen to the admin panel.
So far so good, also found a couple other interesting files and directories. So, can you find some credentials somewhere for that panel?
Or should I try to work without any credentials. Might be possible, but I don’t quite know how, especially since I can’t look at the important files in that directory… Any help would be appreciated.
Or do I even need to run Hydra against the admin panel which might be tricky, due to the tunnel…
I’m having real trouble with the upload part of the box, been trying for a week. I’ve been trying to use the oma**** plugin to upload my file and all i get is “200 ok”.
I think It might be something to do with the p***_m**** part of the code, but If it is I don’t know how to do it.
I’ve been using the default upload options from the menu page just modifying the ‘action’ and disabled bit.
I’m having real trouble with the upload part of the box, been trying for a week. I’ve been trying to use the oma**** plugin to upload my file and all i get is “200 ok”.
I think It might be something to do with the p***_m**** part of the code, but If it is I don’t know how to do it.
I’ve been using the default upload options from the menu page just modifying the ‘action’ and disabled bit.
Any help would be greatly appreciated.
Thank you.
Take a look at the REQUEST_URI.
Take a look at how the URI looks like when do you do a GET request, when you download one of the files.
Its easy once you figure it out i’ve struggled also for some days reading and expeirmenting and eventually i asked for some hints and it was obvious, well not so much.
Pay attention to IPs used when trying to reach the high port, I failed one in my s** command and a 403 error was continuously showed.
After that you can get user.txt don’t need a valid shell.
ROOT
This is not a one command machine to get root.txt. You have to understand well how some basic unix command works and how to take advantage of it, Google is your friend with a nice article but you need some modifications.
Wow. This box put me through some major challenges. As others have said, a lot of what needs to be done is not a simple case of one or two commands and you’re in, you do have to do a lot of prep before getting anywhere in this box.
Hat’s off to @jkr for a challenging box.
Special thanks to @ZerkerEOD for his massive help in getting both user and root, and also to @raiden99 for giving me some much needed pointers during my chaotic run for root.
OK, here come the hints.
Initial Foothold
One type of file can be viewed as another type.
Zelda’s hero can help you see things that are out of reach.
User
Was that user there all the time?
How did I get access in the first place?
How did that process work?
Would it work for others?
Root (Deep breath)
I hope there is some light at the end of the …
Browser might need a little tweak.
Now, how do all these scripts work? Step by step!
It’s oddly satisfying when you have to take things apart and build things from scratch.
I am happy to help people out, but considering that after I offered help with LaCasaDePapel, I received over 300 messages in less than two weeks. I will still help people who need it, but a couple of conditions:
1 Use the forum to send me a private message or find me on Discord (Don’t write on my wall or use the private message function on the HTB site as I don’t get notified).
2 I try to respond as soon as I receive messages, but I may leave it until the end of the day and do them in bulk, so be patient.
3 Tell me your current status: where you currently are, what you have done, what you have tried, what you would like to confirm. I want to avoid spoilers as much as possible.
Something weird is happening, I’m trying to sftp again with the default user/pass and keep getting permission denied. Reset the box, same issue. Yesterday it was working just fine. Has anyone experienced this? Going to try with the second user I guess.
Edit: the second “limited” user (which I gathered from my enumeration yesterday) works fine. Weird.
One thing I would like to know. Is there someone with the OSCP certification ?
How hard or simple is this box compared to boxes which are used during OSCP certification ?
That’s pretty much on the harder end of things I’d say. 80% of the lab boxes are easier that that. Also the exam boxes, which resemble the lab boxes in many ways.
When I try one IP, I’m getting 403 forbidden after tunneling. When I try a diff IP, I get a blank page for the page where you log in (it’ll also inform me if a page doesn’t exist). Can anyone give me a hint? Thanks.
Stuck at the upload part now, getting a OK/200, but nothing happens. Think I got most of the parameters right. Funny that you can see the part that downloads stuff without the ReRu, whereas the part that uploads the ReRu refers to cannot be addressed directly and throws an error.
Considering a reset, but there is still ots-mODVhZTM on the box, too. Are you still working on it?
Also thanks to AzAxIaL, who showed me a new trick…
Splitting of file XXX failed as it doesn't contain all expected parts 0 1 0
Has anyone encountered this for the privesc? I’m trying to figure out what’s wrong with my R****se. I’m obviously missing something, but I’m not sure what the expected parts are. I guess I’ll check from the real one. Any hint would be appreciated!
Thanks,
Edit: nevermind, I figured this piece out by installing the target OS in a VM and playing with it. The output and logs you can get by being root for a PoC is very useful. Recommending doing this in a VM first.
? Finally got root on this box. Even though the privilege escalation path is quite clear it was still a struggle for days (if not weeks - I did some other machines meanwhile to get a break from this one)… This was frustrating, but this is the way you learn things! Never did such an attack before! Thanks @jkr for this experience!
Hint for PrivEsc: Victim machine does while you go for the PrivEsc command(s) and rebuild that. There is an interesting webpage available describing this attack. Just adopt it!
What a ride guys, loved this box.
My 2 cents for user and root.
User: that username is always the same, how the ■■■■ is generated? try to find a way to understand it and you will be fine.
Root: well, prepare to try again and again, the box wants you to tell her that connections are coming from localhost, find how to do it and once you are in there is only one path to root, it is in front of you once you understand something about “dangerous” permissions.