Stuck on admin part, I think the injection comes from the params instead of the file itself, but haven’t found a language or payload which works so far. php returns no output. Any nudge would be appreciated
Sounds like you are kinda on the right track. PM me if you need a hand.
■■■■! This one makes me feel so stupid… still stuck at first step, i think i know WHAT i have to do, but i don’t know HOW exactly.
The hints in the comments, reinforce the feeling i’m in the good direction. But still hitting my head against a wall with any new thing i try.
After the inital foothold (and reading some comments) two possible ways to get admin access came out instantly. To get it, i need:
Insert or update my user record, with elevated privileges (admin role)
Update legit admin record, setting new (custom) password
Not sure how the admin role is stored in user record (if it’s a literal, a related table, an enum, a string, etc…), so i think, the other way looks easier, at least locating the admin record in all the records should be easy as we have a way to “locate” it (a···n@b··k.htb)… but i was wrong as everything i try don’t work…
Tried forcing the user e···l when register a new user, updating user’s r··e and e···l from p······.php, i tried param pollutionn in every form, register from the hidden panel in /a···n/, try to trunk the strings with null, CRLF, etc…, tried sql (and others) injections, with identical results…
Nothing at all worked for me, now i’m stuck and my brain is blocked with this, so i can’t think clearly about it or focus in what i’m missing while i’m dealing with this frustration…
Any help that points me in the right direction or if i’m completely and desperately lost? any mistake in my thoughts?
Nothing at all worked for me, now i’m stuck and my brain is blocked with this, so i can’t think clearly about it or focus in what i’m missing while i’m dealing with this frustration…
Any help that points me in the right direction or if i’m completely and desperately lost? any mistake in my thoughts?
This is difficult without being over-spoilery.
You are in the right injection. There are other attacks than injection.
You need to create a user in a way that allows you overwrite the admins login credentials. Try doing this, find out what prevents, then try to bypass that. Dont try to imagine the attack all at once.
Nothing at all worked for me, now i’m stuck and my brain is blocked with this, so i can’t think clearly about it or focus in what i’m missing while i’m dealing with this frustration…
I was on the same place as you, until i read your comment. Indeed, it’s difficult to talk about it without spoiling.
You do have all the things required. Update what you need then perform a different action on the other panel that you mentioned.
Guys i dont know how you managed to be logged in as who we should be . My victory lasted 3 mins then reset and overwrites all the time .
Other than that the principle of exploitation and the concept is cool .Too bad we cannot utilize it properly
Nothing at all worked for me, now i’m stuck and my brain is blocked with this, so i can’t think clearly about it or focus in what i’m missing while i’m dealing with this frustration…
I was on the same place as you, until i read your comment. Indeed, it’s difficult to talk about it without spoiling.
You do have all the things required. Update what you need then perform a different action on the other panel that you mentioned.
Also, thanks for the unintended nudge
Thanks for your answer, happy to hear i’ve helped in anything hehehehe even if it wasn’t my original intention
Not sure if i understand what you say… do you mean that there is some kind of race condition, where time is relevant to success?
I have read the thread twice already, still no have any clue how to get the admin user for the webapp. Any nuggets would be highly appreciated.
Same here. Trying to find some php code that implements signup form or a blog post that deals with similar issues. No luck so far. I guess I need to trick the code into setting a role field to admin role during signup by leveraging the fact that the email field has a char limit, at least that’s what I extracted so far from all the nudges here.
EDIT: Got pushed into the right direction. Got it.
Oh Gosh finally got user on BOOK .Awesome foothold ,very tricky and especially with everyone overwriting one anothers .
But after that i was able to get something else .Thanks for the guys who pointed me in what attack i need to focus to achieve my goal .