text
stringlengths
4
952
start
float64
0
9.37k
duration
float64
0
0
meta
dict
treating this I want to say as a double word which is eight characters but if we look at the Loop here it is actually going through nine right so we end this we go through this variable and then this one so all of these are the bad characters um so since the pipe the semicolon was like dollar bad dollar is not bad I do...
2,378.599
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
five to see if we sleep for 5 seconds uh we did not and it said unrecognized token this dollar so it doesn't look like we can um use that because it's going to be part of the sqlite command uh oh because it's in single quotes and a single quote was a bad character so that's why we can't escape that um so where we're le...
2,469.48
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
Escape out of the SQL query and that is the edit function so we could just read this but um it would be easier to just show it first so if we do SQL light uh see sqlite 3 doesn't matter what file name it's going to automatically create it if it doesn't exist if I just do a select one we get one but if I use this edit f...
2,539.64
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
them to do like search and replace or something or like an update command not exactly sure I've never used this function before but it exists and we can trigger it right and there's going to be one thing that will help us um bypass Bad characters and that is the visual environment variable so if we went back to this we...
2,595.48
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
here um where usern name is equal to that I wonder if I can just do edit right away um let's try edit one will this work I doubt it uh near syntax error so that doesn't do it so we just want to make this a valid query I wonder if we can do and edit one no editor that is what we wanted to see right so if we did a five d...
2,656.839
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
variable where's the password grab this Marti put the password five so we do that and edit test oh um hold on five edit one test like that and that does not seem to have worked maybe it's just not executing in this current working directory I don't know where this um is executing but let's try setting the visual variab...
2,764.92
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
the SQL late 3 binary and because we root when we're executing that when we did the edit function it executed vim and that executed as root and Vim we can just escape with the command right so now I can just do cat root root. text uh we don't have a path set right what if I do bash um let's see is it Ben cat root user ...
2,874.839
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
text hold on one second Echo path let's just fix our path and then do this okay Mar oh man I'm have to take that password again copy paste activate user edit one bin bash export path is equal to that I'm guessing it failed because I can't read well I was thinking I was in my home directory but again because of the weir...
2,922.04
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
again uh let's go for the password and grab this oh wait before I grab the password we have to create a file so I'm going to make t or we'll make lowercase a and that's going to be bin bash and then this will just execute bash and let's make this executable uh we made it a and what we're going to do here is very simila...
3,024.599
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
do there we go so I have a in my direct and we'll do a load extension and we'll call a uh it attempted to load a.so so maybe we have to actually make this a script um I wonder if we move a to A.L and try this again no such file or directory that does exist right yeah do we have to specify the full path home ipac htb dr...
3,112.64
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
C we'll call this a do so and we want no start files and function we do have a.so so let's try this now undefined symbol so I think instead of anit we need this recompile and there we go um I bet if I exit here there we go we have the select one um if we wanted to make it more obvious we may want to like uh print somet...
3,203
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
comment syntax error near that let's see what was the query we're in sanitize string right now so we update accounts where is active one where username is this okay so this is a we username right and what we did whoops was do a comma we probably want a and here here or we can use this and as well because a comma is inv...
3,321.799
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
um SQL light encode care is it CH AR there we go so that's what it is man asky let's go to where the star is we did 42 so we're encoding it as where is it decimal so we want a period so period is going to be where is that right here 46 so we're going to want care 46 we see that now we want a slash that is going to be 4...
3,426.44
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
found care 46 47 97 we must have a bad character somewhere or something let's see where did I paste that load extension I don't think I have any bad characters comma is not one dash is not one unless space is if has a space let's get rid of that real quick five is pound one no still did not work let's try five and we'l...
3,569.799
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
we could either do it through the edit or the load extension you may be able to do it through other parameters here um I don't know exactly what the harmful side effect of fts3 tokenizer is we could probably write the SSH key as root so that's something else we could do um as long as the SSH directory exists right it d...
3,747.92
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
an key let's try that real quick I have not done this one um okay so let's see we'll likely want to okay we will have to encode that slash or yeah we will so let's say and write file let's see Select care what is slash was that 47 it is can we append that way that did not work is there a concat function um SQL light jo...
3,833.319
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
cyberchef which we should have done much earlier because we can just easily get this done I'm going to do dot so I um can see what it is I think we're in decimal format right two decimal 46 and SL was 47 right that is correct so authorized keys and let's look for replace oh we can do delimiter comma there we go okay so...
3,996.24
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
um let's see sh key gen small Pub Key what is that format generate Ed 2559 that's it s keyen DF root- T that so this is a much smaller key than anything else and of course we have slashes if we do this enough I wonder if it's possible we get one without slashes we'll try it twice more oh there we go oh no we have one s...
4,121.44
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
um if we look at this if we do a select statement again where is it we can test to see if it would work so select like that uh unexpected token I think because I have quote setion going on select one two three there we go we got sh and we got authorized keys so it does WR um we don't have the period though let's see do...
4,297.08
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
we can do visual user bin was it VI is that what Vim is which VM yeah war and then what was it and and what was the thing edit one like that we need to okay do we have cat uh B cat SSH yeah SSH doesn't even exist so we never wrote the file um and we weren't writing the file because we did Slash shoot uh ver where are w...
4,463.96
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
the buffer overflow and it's been a while since I did anything binary exploitation on this channel so hopefully I can still explain this um the first step is let's run chec against the binary so we know what built-in protections are at play here and we see aslr is not enabled so any Gadget we find in this binary we can...
4,585.199
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
comes into play however there are stack protections here so if we attempted to um overflow the stack this will uh block us in theory right how the stat Canary works is it puts something in between where the like stack is and all the registers and that just does checks because if you overflow the stack to get into the r...
4,643.08
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
the limit um we see stack smashing detected it terminated so that's preventing us however because it's echoing this back and we're just doing a print f um we can leak memory addresses so let's show this real quick it's just a format string vulnerability right if we enter the username um LX we're going to leak the very ...
4,701.36
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
a program leak Canary pi and then we're going to do from pone import Star and then we're going to load the doodle grive CLI program and then for I in range let's go through 100 things there's going to be the first 100 um variables we're going to say IO is equal to e process so loading the program uh we want to execute ...
4,769.08
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
receive line and then we can say IO close and if we run this uh we have a bunch of data I'm going to disable logging but we can see we are leaking stuff so let us say um the level is equal to error so we got rid of um I believe this is debug this is info so we got rid of those two things so now we run it we just have w...
4,827.52
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
a line break in there that's the correct number so now if we run this again we have a list of all the addresses now what we want to do is print this so we'll do F string um I and then we can do a tab and then line and we can prob say. dcode to turn that into a string so we get rid of all those B's and if we just GP for...
4,931.199
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
15 so knowing that let's play with this program real quick um so we explained we want to we loaded the canary here so we can view it we could also view it down here so let's do GDB doodle drive I'm going to break main we going to run and let's step step This Is Us loading the canary so if we look at Rax we have the can...
5,005.04
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
this is going to be um the canary so we can say fscore base plus 0x 28 there's a canary so that xor is not going to equal zero so we fail the stack check right but now since we can leak the canary and that um enter password for whatever thing we can now smash the stack or we can um put the canary where it needs to be w...
5,104.159
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
doing register you could do print rcx and that stores it as dollar one so you could do pattern offset like this and get the same thing so we know after 56 that's when we hit this so what we want to do is create a script um we already Prov that we don't need it it changes every time so it doesn't really help us we can d...
5,181.719
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
canary so let's start creating our script okay V exploit. pi and let's do from pone import Star e is equal to e.
5,268.28
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
doodle grive CLI and then I'm going to set my terminal to be t-mo so this will um enable us to debug easily so we want to split the window horizontal on the current pain I think that's right um let's do IO is equal to GDB debug let's do doodle grive CLI okay so we want to receive the line twice then we want to send it ...
5,283.92
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
payload is equal to a * 56 because that gets us to where we overwrite then we can say payload plus equals the canary and then payload plus equals we'll say C * 16 and now I can say io. send line payload we run this I'm going to set the break point for the canar check then we're going to continue uh can't concat into by...
5,416.04
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
building our payload now so let's see if I look at exploit we have that um this is where we're going to use ropper whoops ropper DH and I'm going to look for the string bsh oh with specify file uh was it doodle drive there we go so bsh is here so we can go V exploit um let's put everything here so bsh is equal to p64 t...
5,524.04
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
it let's see Bess say St fixed um system address did not in object has no attribute x what was system printing as is that fine already line 11 oh because we don't have a n parthy okay that is good I guess we could do b64 there there so we have everything um I think this formatting is wrong there but I don't think that ...
5,688.52
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
failed let's run this again and we're going to set a break point on the return because this is where we should overwrite so 40 23 380x 40 23 38 run oh shoot continue okay this is where we are and if I look at this RSP is Ben should it be pop RDI first oh right here RBP so we step what's a code look like we do the canar...
5,870.199
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
this is RBP do gets us to Canary leaked from username print F RBP first Gadget of our chain there we go that makes more sense and we are erroring here so I'm going to go on the return again our payload is not done yet but I do want to show what just happened so now we have the return if I look at RSP P RSP is pop RDI s...
5,990.56
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
we only have eight I believe so we're just going to put a return beforehand and that should um aligner stack so let's go back to proper and let's just find if there's a return which there's pop RDI so there definitely is just return uh we can probably use this one return zero let's try this and let's see we'll put it w...
6,108.04
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
what we call GDB and have that be an SSH client so we can say SSH con is equal to SSH um host is equal to was it 101 11235 is that it it is then we'll say user is equal to um I forgot all the credentials what is Tom's password let's see Tom password is equal to we got that from the Kraken John Mayor 7 okay then we can ...
6,251.719
0
{ "video_id": "HM8_Pf8zxko", "title": "HackTheBox - Drive", "url": "https://www.youtube.com/watch?v=HM8_Pf8zxko" }
what's going on YouTube this is ipag I'm do an editorial from hack the box which is a nice simple easy box it starts off with a server side request forgery they can use to access ports listening on Local Host and one of which is running an API server if you do some late enumeration you discover there's a message to a d...
0.28
0
{ "video_id": "eggi_GQo9fk", "title": "HackTheBox - Editorial", "url": "https://www.youtube.com/watch?v=eggi_GQo9fk" }
in as always we're going to start off with an end map so- SCC for default scripts SV numerate versions - VV for double reverse this gives us things like the TTL a output all formats by the N map directory and call it editorial then the IP address of 10 11.20 this can take some time to run so I've already ran it looking...
46.84
0
{ "video_id": "eggi_GQo9fk", "title": "HackTheBox - Editorial", "url": "https://www.youtube.com/watch?v=eggi_GQo9fk" }
page and the first thing I look for is try to find a way to enumerate what the framework is running behind the website looking at the page Source I don't really see anything normally I look at the headers sometimes Um this can leak it but this looks pretty standard it's just a simple bootstrap thing um you can also loo...
97.439
0
{ "video_id": "eggi_GQo9fk", "title": "HackTheBox - Editorial", "url": "https://www.youtube.com/watch?v=eggi_GQo9fk" }
like right if we go to flas this is definitely going to match up with what we see in flask so that's a good way to identify what framework is running doesn't really help us but I always just like thinking that in the back of my mind because some Frameworks have um more common vulnerabilities than other ones right but t...
148.12
0
{ "video_id": "eggi_GQo9fk", "title": "HackTheBox - Editorial", "url": "https://www.youtube.com/watch?v=eggi_GQo9fk" }
publish a book through their website we have a cover URL related to the book and then browse so whenever it asks for a URL the first thing I try is just um server side request forgery so I'm going to make it make a request back to myself so I'm going to do 10148 Port 8,000 and then I'm going to S up a listener here so ...
213.599
0
{ "video_id": "eggi_GQo9fk", "title": "HackTheBox - Editorial", "url": "https://www.youtube.com/watch?v=eggi_GQo9fk" }
can just do a quick look does this bring back like a sneak page we do have a page on it but this is not looking like it's going to be that uh interesting to us this is something with SSL I'm guessing because I see verify and we're over just playing HTTP so we can probably ignore that and this is a information disclosur...
262.4
0
{ "video_id": "eggi_GQo9fk", "title": "HackTheBox - Editorial", "url": "https://www.youtube.com/watch?v=eggi_GQo9fk" }
address so that is going to be dead beef 2 right here and if I go back to the page um do we have this in repeater we don't we should just intercept this so we can intercept the request send to repeater and then if we replace the IP address with her IPv6 uh did I listen on 90001 I did make a connection we can see the se...
319.319
0
{ "video_id": "eggi_GQo9fk", "title": "HackTheBox - Editorial", "url": "https://www.youtube.com/watch?v=eggi_GQo9fk" }
being open right so IPv6 dead end but something that's fun to test out so let's now go do the other thing and that is enumerate open ports on the box so I'm going to do um 1271 we do Port 22 uh we get this redirect to static Splash what ever let's see what this is um editorial go here we probably have to turn intercept...
399.479
0
{ "video_id": "eggi_GQo9fk", "title": "HackTheBox - Editorial", "url": "https://www.youtube.com/watch?v=eggi_GQo9fk" }
request so now we can do buff D request ssrf D request Proto is going to be HTP p and word list is going to be a sequence from 1 to 65,535 so we can do that and then let's see what else do we want to do probably that should be enough I'm going to filter the size 61 because um I'm assuming it's going to give us a slight...
470.639
0
{ "video_id": "eggi_GQo9fk", "title": "HackTheBox - Editorial", "url": "https://www.youtube.com/watch?v=eggi_GQo9fk" }
send all the request and hopefully we get something it looks like my fuff hung for a little bit but it just resumed let's see the end map has finished only Port 22 over IPv6 and let's see I think the fuff is going to give us a result in just a second so I'm not going to bother pausing the video but we're just rning all...
549.399
0
{ "video_id": "eggi_GQo9fk", "title": "HackTheBox - Editorial", "url": "https://www.youtube.com/watch?v=eggi_GQo9fk" }
what's important is Port 5,000 gives us something unique we go to static uploads this so let's take a look at what this page is it's no longer static images it's static uploads and it's giving us a actual file so I'm just going to go over to a terminal and curl this so we don't have to um download and upload but it loo...
602.92
0
{ "video_id": "eggi_GQo9fk", "title": "HackTheBox - Editorial", "url": "https://www.youtube.com/watch?v=eggi_GQo9fk" }
problem is but if we try to request a lot of them it'll give us this and then if we copy and paste it here um it just goes to a 404 but we do want to test out all the end points try to do it a little bit quicker just in case it deleted but if we went down the list and tried all the end points um some of them do give in...
663.959
0
{ "video_id": "eggi_GQo9fk", "title": "HackTheBox - Editorial", "url": "https://www.youtube.com/watch?v=eggi_GQo9fk" }
11.20 and then put in the password they gave us and we get logged in as the dev user but before we move on I do want to go back over to FFF and show you the error message so since we did the um debug log to standard out we do see when the error increments just before it PR the post here we can see um context deadline e...
730
0
{ "video_id": "eggi_GQo9fk", "title": "HackTheBox - Editorial", "url": "https://www.youtube.com/watch?v=eggi_GQo9fk" }
it so my other numeration was just um trying to find where the website was so I did ver dubdub duub and looked if there was any uh website here we don't have it my next look is normally opt and we do have some directories so we have the apps so if I go into Apps we have the app editorial and this is going to be the fla...
784.24
0
{ "video_id": "eggi_GQo9fk", "title": "HackTheBox - Editorial", "url": "https://www.youtube.com/watch?v=eggi_GQo9fk" }
least this is a group if we cat Etsy pass WD GP for every line that ends in sh we do have um that user there but I looked into environment scripts look at clear and this looks like it's just going to be some type of cron that is um clearing files in the upload directory and there's really no way we can get code executi...
841.12
0
{ "video_id": "eggi_GQo9fk", "title": "HackTheBox - Editorial", "url": "https://www.youtube.com/watch?v=eggi_GQo9fk" }
I guess and that's where we had the message from uh Dev let's see I just saw a comment that I did not read fully replace Dev credentials with welcome creds when we get validation finished so these are just more notes in the application but I want to look at what prod was so if we did a fine SL - user prod hide all airo...
905.36
0
{ "video_id": "eggi_GQo9fk", "title": "HackTheBox - Editorial", "url": "https://www.youtube.com/watch?v=eggi_GQo9fk" }
should hide error messages and right off the bat we do have some references of prod it's not actually referencing the user but it's pointing us towards um that uh directory we missed and I don't think it's actually telling us the directory or the file let's see what if I do A- LS is that going to now that's going to sh...
976.6
0
{ "video_id": "eggi_GQo9fk", "title": "HackTheBox - Editorial", "url": "https://www.youtube.com/watch?v=eggi_GQo9fk" }
regex when you use the- capital G um so this is a good way just to search for diffs when this appears so if we do like a get show on this commit we'll be able to see um the change so on the downgrade prod to Dev they removed this line and added this line and the line they removed is prod with prods password so we can c...
1,063
0
{ "video_id": "eggi_GQo9fk", "title": "HackTheBox - Editorial", "url": "https://www.youtube.com/watch?v=eggi_GQo9fk" }
this way is a bit uh I guess better in the real world because there's going to be so many commits it's going to be really hard to get through but if you use searching you find it right like if I do A- capital G password we can see these two commits have the word password in them so uh yeah let's switch over to the prod...
1,128.039
0
{ "video_id": "eggi_GQo9fk", "title": "HackTheBox - Editorial", "url": "https://www.youtube.com/watch?v=eggi_GQo9fk" }
option is enabling extensions so what this allows us to do is put an extension into the URL and if we also look at um the get repo like python git repo there is going to be a vulnerability here so let's say exploit get um repo python to see what it is there is a rce and this looks very much like what we have it and if ...
1,192.039
0
{ "video_id": "eggi_GQo9fk", "title": "HackTheBox - Editorial", "url": "https://www.youtube.com/watch?v=eggi_GQo9fk" }
was created just now so we have code execution so what we want to do is try to get a reverse shell working and this could probably be tough because of all the special characters um I guess we can try it I don't think it's going to work so we'll do Bash - c this is going to be really ugly Let's see we do a quote like th...
1,270.679
0
{ "video_id": "eggi_GQo9fk", "title": "HackTheBox - Editorial", "url": "https://www.youtube.com/watch?v=eggi_GQo9fk" }
trouble with this with with all these percents and I just assumed these special characters were bad so what I had ended up doing was I copied um let's do which bash CP user bin bash over to Temp and then I gave this um set u ID permissions so we did a CH mod uh 475 wait hold on one second we probably have to make the o...
1,347.64
0
{ "video_id": "eggi_GQo9fk", "title": "HackTheBox - Editorial", "url": "https://www.youtube.com/watch?v=eggi_GQo9fk" }
What's going on YouTube? This is IPSC and we're doing environment from hack the box which starts off with exploiting two vulnerabilities within Laravel itself. Vulnerabilities in the underlying framework running websites are very dangerous because these packages are tied to custom code so they aren't updated automatica...
0.16
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
From here, there's a second vulnerability which lets us bypass upload restrictions and upload a PHP file to get a shell. After this, we decrypt a PGP protected file and then exploit a pseudo configuration to get root. So with that being said, let's just jump in. As always, we're going to start off with an end map. So -...
42.48
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
host file. So we'll do pseudo vt host. Then we can add 10 10 1167 environment.htb. Save that. And let's go take a look at the page. So I'm going to do http environment.htb. And it looks my burp suite is on intercept. So, I'm just going to forward that. And we get the page. Um, at the footer, we see environment copyrigh...
91.68
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
I always like trying to identify what is running. So, I'm going to look at the page source to see if anything's in the header that tells me like WordPress, Drupal, Jumla, things like that. I don't see anything. Um, there is uh Wapalizer.
121.119
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
We can look at it. We have Tailwind, um, EngineX, JavaScript doesn't really show us that much. Uh, we can run tools like Nuclei. So, I started doing this a lot more just because it does give pretty good information. So, I'm going to do environment.htb.
134.08
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Let this run. And then, let's see what else could we do. We could look at 404 pages. So, if I do like asd, we get this 404 not found. And this looks very much like a um Laravel error message. I'm going to go to like oxdf error message. And he has a cheat sheet because this could also be I want to say there's a JavaScri...
151.599
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Maybe normalize 801. Let's see this. Yes, it does match. So, this is definitely going to be Laravel. There's other ways you could flag that as well. Um, I'm sure if we look at like the cookies. So let's go over to the storage. We can see there is a laral session which is the default name and this XSRF token. I want to ...
194.959
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
And I'm gonna be curious if it uses like the API or anything. So let's send this join. Send it over. Where are we making this request to? Just slashmailing.
236.4
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Um, looking at these headers, I don't think this is going to any type of built-in Laravel API. Uh, we have a token here. If we didn't send this token, uh, we just get the page expired.
247.68
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
That is expected. Um, if we hit this page with no email, it just directs us back. So, nothing too interesting, right? Um, I'm going to run a go buster. So, we can do go buster directory mode--youu http environment.htb word list. I need to spell that correctly. Um, what is it? Opt sec discovery web content raft small wo...
261.28
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
I'm going to say 403 404. So this means it's going to hide any status code of 403 and 404 from us, which just makes it a little bit easier. Uh we see upload goes to a 405. And this size is pretty big, right? Um, so let's go take a look at what a 405 page looks like. I'm just going to go slashupload. And I probably shou...
302.08
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Uh, we get a method not allowed. And this is in debug mode because we can see a lot of information. We see Laravel version 11.30.0. And we kind of see what the page looks like or um, data here. So, this does start giving us access to the source code, but I don't think we saw anything really that interesting, right? Uh,...
327.52
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Um, let's just go to CVE details. I'm sure if we did more research around change logs, release notes, we could find exactly when this version came out, but I really don't care that much about it.
375.36
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
I just want to know like CVE against Laravel. So, looking at this, I'm going to click on vulnerabilities and we can see quite a few, right? Um, let's see. full stack framework in LiveWire version three. I don't know if this server is using Livewire. I'm assuming it's unauthenticated because it's 9.8. Um, but I'm going ...
387.52
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Um, let's see. Orville is a web framework. When using wild card validation on a given file or image field files star, a user crafted request could bypass validation rules. Um, I don't see any like file upload. I haven't seen any fields with file. So, I'm going to ignore this one for now.
418.72
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Laravel pulse. I don't know exactly what that is. Monitoring tool. Let's see.
437.599
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Larville's web application framework. When the register arg directive is set on, any user can call a URL with a special crafted query string and change the environment used by Laravel handling the request. So, this kind of sounds interesting. Let's see um how to do this. I'm just going to go GitHub PC and see if anythi...
444.4
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
It's talking about it. PC example. So it changes to local.
477.919
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Okay. So we do question mark as a parameter d- is equal to something. So let's go ahead and see if this works. So chances are the environment is production. I would guess it's kind of development because it's in debug mode. It's very odd to see a production web app with debug mode turned on to get that verbose error me...
483.36
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Let's go back to our Go Buster. Uh we have a /lo upload errors. Mailing is a 405. We got up. So, let's check up and login. I'm really curious what up is. Uh if we just go up, uh applications up. I don't know what I expected. Uh we got a login endpoint. So we have um username password. So we can do something here and se...
539.839
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
cmd, it errors telling you we need cmd parameters. Um, so I'm just going to get rid of I guess the email parameter. And we'll for this along and there we go. It's trying to get the email parameter and it can't. So that's why we error here. And looking at this, we do a post to login.
605.44
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Let's see. I don't see exactly where it's sending the you um email and password. So I can't tell if it's using like prepared queries, the laral syntax, how it's actually doing login. Um this syntax is really odd, right? We have this if remember is equal to false then keep logged in is false. Um else it's true. Keep log...
626.32
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
It just doesn't have to be true or false right? We could probably just if we didn't set it at all it would probably error when it's trying to grab this variable right so we have to set to something just can't be true or false I believe go here and now we error on line 75 which is much lower and we can see more of the c...
681.279
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
post to login. And I'm going to specify d- env is equal to prepro. And this should trigger that one uh piece of code that's just going to automatically put the um user ID one into our session. So for this send it and we get logged in. So we have the dashboard the profile and log out. Um we could also change this. So we...
740.56
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
like u MySQL passwords, right? As passwords, things like that. Um, let's see. SQL light. Do we have where it's loading? I'm trying to find out like do we know this application is SQLite or not? Um, but I didn't see any passwords in this PHP info page. So, nothing too interesting. Um this is not clickable so we can't re...
800.24
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Let's see. So, I guess it's doing like a port scan. I thought it was just web, but it does a little bit more. Um, I guess the most interesting to me is tech detect to laravel, and it finds it there. But nothing too interesting here from nuclei. So, now, uh, let's go ahead and copy this image here just in case we need i...
855.12
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
And let's see, I want to do um a system request request cmd. And I know I have a typo there. I will fix that momentarily.
880.8
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
There we go. Save that. So now let's go ahead and try a upload. So let's see.
893.12
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Proxy intercept on. Let's upload. Uh, choose a new picture. Let's go to HTTP environment. And then first I'm just going to upload shell.php. Upload.
900.32
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Send it over to repeater. And let's see if we just send this. We have invalid error detected. And I'm just going to autoscroll here to make it easier.
920.72
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
And let's see. I'm going to change this to be um imagegif.
932.8
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Send it invalid file. Let's see. We can do shell.gif.
937.92
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Still invalid file. Let's change the magic bytes. I want to say it's like gif 89a. Like if that's the beginning of a file, I want to say it detects it as gif. And it uploaded. So let's try shell.gif.php. and we get invalid file detected.
944.48
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
So let's see what can we do here. Um we don't have any like include options. So we can't do like a file inclusion. And if we just try to access this URL um all already exist. Let's do shell one. Let's see environment.htb goes in storage files shell gif. If we just try to access this, um, let's see what happens. Get rid...
966.8
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
It contains errors. Um, question mark sleep is equal to one. It comes back immediately. So, we know it's not executing code because we don't have the PHP extension. Um, and it looks like it is kind of filtering for that, right? Uh, we could try like PHP 5.
1,000.399
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Uh, PHP 5 looks like it uploaded. Let's see. Does this actually execute with PHP 5? I doubt it because it's engine X. Um, Apache is very like loose with how it executes. Normally in engine X, um, you have the like location header or whatever it is in the code. Um, specify only ph.PHP gets passed through. Uh it is in re...
1,020.72
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
There was one that said, what is it? Image validation.
1,072.48
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
A user craft a malicious request could bypass validation rules. Um, so I'm going to turn intercept off. Let's click this. Does it tell us anymore? Uh, let's go to the advisory. We may have to just search the CVE for a P. Um, that gives us no details.
1,077.6
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
the commit. Is this going to tell us anything? If not, then we can just search for this CVE and it should come up pretty quickly, right?
1,102.4
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Uh, this does a lot more things than just one thing. So, it's probably going to be quicker just to search GitHub PC, go to Google, um, advisory whiz.io. This normally has actual PC's. See impact let's see the issue bypass validation rules does not say how to bypass though let's see here's a actual PC 271 uh this is a d...
1,113.36
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }