text stringlengths 4 952 | start float64 0 9.37k | duration float64 0 0 | meta dict |
|---|---|---|---|
in this um binary protocol it's not the very first request then the varnish config isn't stopping us right this um where is it or not vernish the ha proxy I kept saying vernish but it's actually ha proxy here this is only monitoring http1 or the very like first request so we start the request on home then we upgrade to... | 1,596.44 | 0 | {
"video_id": "JY_xds4LsW0",
"title": "HackTheBox - Caption",
"url": "https://www.youtube.com/watch?v=JY_xds4LsW0"
} |
case the F wall isn't monitoring that so um that is the smuggle so let's look at the um logs so we can do this download on SSH logs and let's go here instead of logs we hit the page download and let's see and this doesn't look just like SSH logs this is probably just like the messages or Cy log of the Box because we se... | 1,655.72 | 0 | {
"video_id": "JY_xds4LsW0",
"title": "HackTheBox - Caption",
"url": "https://www.youtube.com/watch?v=JY_xds4LsW0"
} |
later um we'll show multiple H at ecdsa is in use but um yeah let's go what I'm looking for here is failed password so if I g-i fail I'm just seeing if there's maybe like any type of username that he put a password in for instead um don't see that so that is logs we could go through each of those but I think sh logs is... | 1,730.519 | 0 | {
"video_id": "JY_xds4LsW0",
"title": "HackTheBox - Caption",
"url": "https://www.youtube.com/watch?v=JY_xds4LsW0"
} |
detecting the CPR folder and if we do percent to F there's a directory to veral so let's look at this real quick so it shows we do percent 2 F and then we can do like Etsy uh percent do they do yep perent to F logs and we don't get oh not logs um pass WD I don't know why I thought logs we go but we still don't get the ... | 1,805 | 0 | {
"video_id": "JY_xds4LsW0",
"title": "HackTheBox - Caption",
"url": "https://www.youtube.com/watch?v=JY_xds4LsW0"
} |
percent 25 it's left with a percent and then we got percent 2f on the second request and let still let's see oh we need the CPR CPR there we go we can get rid of the double URL in code real quick to see if we actually needed that we do so again we need that just because we're doing a server side request forgery along w... | 1,886.96 | 0 | {
"video_id": "JY_xds4LsW0",
"title": "HackTheBox - Caption",
"url": "https://www.youtube.com/watch?v=JY_xds4LsW0"
} |
percent 252f it doesn't translate that the slash well I like just doing it this way because it makes this much easier to read right otherwise it would be percent 25 where you see that slash so we try to access the environment file we don't get anything and if we got a 404 like if this file doesn't exist we get the page... | 1,955.24 | 0 | {
"video_id": "JY_xds4LsW0",
"title": "HackTheBox - Caption",
"url": "https://www.youtube.com/watch?v=JY_xds4LsW0"
} |
guess right so we could do home Ruth and then let's see bash RC because that's going to be a default file in the directory we don't get anything we do home Margo bash RC we get the bash RC file so we can go inside of Margo's home directory we could try SSH right and then ID are a say for like the private key we don't h... | 2,014.399 | 0 | {
"video_id": "JY_xds4LsW0",
"title": "HackTheBox - Caption",
"url": "https://www.youtube.com/watch?v=JY_xds4LsW0"
} |
we go less on app .p um let's see how are we doing logins Margo okay so we have a hardcode to usernames there's no actual database Mario's password is this and admin's password is this so let's go back to um creds and we can say admin that we can close out a wire shark we don't need that anymore um um we could try a ps... | 2,096.28 | 0 | {
"video_id": "JY_xds4LsW0",
"title": "HackTheBox - Caption",
"url": "https://www.youtube.com/watch?v=JY_xds4LsW0"
} |
Thrift so it's just starting an Apache Thrift service which is kind of like grpc it's just going to be a binary protocol um so if we do SS lntp GP 9090 we can see something is listening psf GP on rout Let's see we have Kon ha proxy and we are running the um server Dogo binary so it is running this as rout and if we loo... | 2,175.56 | 0 | {
"video_id": "JY_xds4LsW0",
"title": "HackTheBox - Caption",
"url": "https://www.youtube.com/watch?v=JY_xds4LsW0"
} |
what I normally call it because that's what gfpc technology is and that's what I'm more used to um it's going to say the service and then the RPC end points and the arguments right so this is going to be um the thrift file and then you can use a compiler to compile this to be whatever language you want right so Thrift ... | 2,238.319 | 0 | {
"video_id": "JY_xds4LsW0",
"title": "HackTheBox - Caption",
"url": "https://www.youtube.com/watch?v=JY_xds4LsW0"
} |
this exact call so what we want to do is um be able to escape this exact call so we're going to give it a single quote which will escape the echo then we can give it a semicolon and then run whatever command we want so the tough thing here is um creating the client to talk Thrift right that's the challenge so let's do ... | 2,301.119 | 0 | {
"video_id": "JY_xds4LsW0",
"title": "HackTheBox - Caption",
"url": "https://www.youtube.com/watch?v=JY_xds4LsW0"
} |
want so I'm going to do go and then you just specify the file and it creates that gen go right we could do probably I'm going to guess python um unable to get generator for python do I just not have it installed oh it's Pi so if we wanted to use Python there we go we have the autogenerated python library right so I'm g... | 2,382.96 | 0 | {
"video_id": "JY_xds4LsW0",
"title": "HackTheBox - Caption",
"url": "https://www.youtube.com/watch?v=JY_xds4LsW0"
} |
j-go log service there we go I wonder if I should have started this with a capital letter I wonder if that matters but this looks fine um this exact I don't know how they mounted OS what is that yeah we'll keep going let's build the client so I'm going to do new folder and I'll call this um we'll do internal and then o... | 2,453.359 | 0 | {
"video_id": "JY_xds4LsW0",
"title": "HackTheBox - Caption",
"url": "https://www.youtube.com/watch?v=JY_xds4LsW0"
} |
server okay Port 990 is good that's good we open the transport okay so we autopilot it away all the way to get a client so now we can do client read log file and then specify what file we want to read uh what does this return um string and error so we'll do out air or I'll do a response response error like that there's... | 2,570.44 | 0 | {
"video_id": "JY_xds4LsW0",
"title": "HackTheBox - Caption",
"url": "https://www.youtube.com/watch?v=JY_xds4LsW0"
} |
context uh context. background actually and I don't know exactly how to explain context if you don't know exactly what it is a lot of go things will use it um a lot of people use it for like concurrent not concurrency like um timeouts so we could say the timeout CTX is equal to context with value I guess that's doing i... | 2,627.4 | 0 | {
"video_id": "JY_xds4LsW0",
"title": "HackTheBox - Caption",
"url": "https://www.youtube.com/watch?v=JY_xds4LsW0"
} |
doing anything fancy with context we just say um background it right so this should connect to Port um Local Host 990 send the request read log file and it's going to read this log file on the server so what we have to do is go back to the server CD Dev shm B please I think I did a capital I don't know why I did that a... | 2,702.24 | 0 | {
"video_id": "JY_xds4LsW0",
"title": "HackTheBox - Caption",
"url": "https://www.youtube.com/watch?v=JY_xds4LsW0"
} |
guess we could change it to something that does not exist if we do please subscribe to um no such file directory so we definitely know it's working right so we want to trigger the rce so let's go look at the server again read log file it's doing some regular Expressions IP user agent um IP we can only do digits user ag... | 2,767.24 | 0 | {
"video_id": "JY_xds4LsW0",
"title": "HackTheBox - Caption",
"url": "https://www.youtube.com/watch?v=JY_xds4LsW0"
} |
this single quote and then we can execute our own thing so that looks good um what we want to do is now create a reverse shell so I'm going to do it in base 64 so we can do Bashi Dev TCP 101048 9,10 and one like that a 64 w0 and the reason why I'm putting in in b 64 is we can avoid a lot of just bad characters if we di... | 2,846.599 | 0 | {
"video_id": "JY_xds4LsW0",
"title": "HackTheBox - Caption",
"url": "https://www.youtube.com/watch?v=JY_xds4LsW0"
} |
it log file processed we don't get anything okay so let's do regx 101 and see what we're missing cuz this is going to be something probably really silly going to specify goang go back to the server we have this and I want to insert my string oh I got the shell there okay maybe it was the spaces I needed I'm just going ... | 2,951.24 | 0 | {
"video_id": "JY_xds4LsW0",
"title": "HackTheBox - Caption",
"url": "https://www.youtube.com/watch?v=JY_xds4LsW0"
} |
um that does look fine right we wanted to match a single quote and then semicolon and everything so I think for some reason the service just isn't instantaneous I couldn't say why but we have it there so hope you guys enjoyed the Box take care and I'll see you all next time | 3,046.4 | 0 | {
"video_id": "JY_xds4LsW0",
"title": "HackTheBox - Caption",
"url": "https://www.youtube.com/watch?v=JY_xds4LsW0"
} |
What's going on YouTube? This is IPSC and we're doing cat from hack the box which is a really great box for some cross-ite scripting practice. It starts off with a custom web app that doesn't have HTTP only set on the cookies and there's two ways we can trigger the cross-ite scripting. Either through a submission on a ... | 0.24 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
version of git t is running which is vulnerable to cross- sight scripting but it's git t so the http only cookie is set. Uh so we can't just steal the session. We can however use cross- sight request forgery to navigate to a project on git t and send us the results of that page leaking source code which gets us the roo... | 43.36 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
tells us it's an Ubuntu server. The second port is HTTP on port 80. And the banner also tells us it's Ubuntu and redirecting us to cat.htb. | 86.72 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
So let's go ahead and add this to our host file. So pseudo v etsy host. And then we can add 10 10 1153 cat.htb. Save that. And let's go ahead and take a look at the page. So I'm going to go HTTP cat.htb and we get a page that just says welcome to the best cat competition. We can click around. There is vote that says vo... | 97.84 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Um web content then raft small words.ext text and I would also probably run a um virtual host enumeration as well after this is complete if we don't really have anything. The thing that sticks out right off the bat is um config.php. That's a status 200 but size is one. So we're not really getting any information out of... | 159.599 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Uh, we just get a forbidden. I was hoping to be like an um open directory listing because if we upload it to the website, then we could easily um find our file, right? So, let's go ahead and register. I'm going to do IPSC then root at IPSC.rocks. And the password I'll just do as password. We register. It says I'm succe... | 194.4 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
And let's see. The first thing I want to look at is just my cookies on the page. It's just a standard PHP session ID. | 218.64 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
HTTP only is set to false. So it' be really easy to steal cookies through cross- site scripting attacks, but we'll keep that in the back of our minds for now. So now let's go over to contest. And it looks like this is where we may be able to upload since there's a cat photo. So cat name. Um, we'll just do test. I wish ... | 225.28 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Uh we need to get a um image here. So I'm just going to uh find an image on my box. So we'll do find uh probably one out of user share would be there. Uh name star.jpeg. | 253.76 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Uh let's see. Not named name. There we go. Looking over. Oh, we have a bunch of names already. I was gonna say let's go ahead and look at a results of go buster if this took its bit to run but we've got it already. So let's copy the results here. There we go. We got image one.jpeg. | 268.4 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Awesome. And I am actually going to intercept this request just so I can see the data it sends. Um that will be handy later on potentially. | 286.56 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Um looking at it, it's just the web form, right? But if we wanted to manipulate this request, we now easily can. Uh, we uploaded image one.jpeg, right? So, what I want to do is see if I can go to uploads and then image one JPEG. And I think my intercept is still on. It is. We'll turn that off. And not found. Um, so it'... | 297.199 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
directory we want to save it to. I'm just going to call it source. And then it's going to download that.get directory and then copy it over here. So now we have the source code of this web application. So what I want to do is look at the upload code just to see if there's any vulnerabilities there because it is a PHP a... | 353.199 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
We can look at upload and this is probably going to be where it's at. So let's see. We set the target directory the file and it's doing image identifier. So this is what we have to find out what is image identifier. So if I do image ident it is going to be unique ID. So I'm going to go over to PHP and Google unique ID ... | 381.52 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
But later on it's doing a path info on extension. So this is going to grab the extension of the file. And I'm guessing this is going to be where the comparison is, right? So if we look at this, uh, let's see where is it going to use the path extension. There we go. So we have image file type only looking for these exte... | 426.8 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
There is a possibility that Apache or EngineX whatever was running on the server is horribly configured and would execute code with these extensions but I haven't seen that in like a decade on servers. So I'm not going to test for that right away. Um if I get in a big uh roadblock then I would go down this format uh th... | 452.8 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
we try to put cross-sight scripting payload here, if we just um how do I burp sweetite? This may be easier. So if we did like a script source is equal to um if I just do this, it'll probably error out for us, right? Send this request. Do we have anything? Um it says your entry contains valid invalid characters, right? ... | 502.8 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
So what it's doing is checking cat name, age, birth date, and weight for invalid characters. And it has this string, right? um it's only checking those if the page does have like username checking like if the username is on the crossstate scripting page then um the check contains forbidden characters is probably not ch... | 547.68 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
So, I'm going to grab- r this and no, it's only used on contest.php. We could look at the source to see exactly um where it is. I'm not sure what page. It's probably on like accept cat or something like that, but I'm just going to create a new user now with some cross-ite scripting to see if we get lucky. Right. So, I'... | 577.6 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
And then we can do slashcript. I'm going to copy that to my clipboard. | 627.6 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
We'll do route 2 at ipsseack.rocks and then password as password and we'll see if it lets us register and log in. | 632.959 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
And we also should do a nc lvmp 8000. | 641.12 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
And then let's log in with this account password. There we go. | 648.88 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
And I'm going to send another request. | 656.48 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Let's now upload I guess the same thing. Register cat. It's been submitted. And I'm going to see if we get any hits here. Um there we go. It is attempting to load pone.js. | 662.56 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
So that is good for us. So what I want to do is um we can keep that name, I guess. And we'll do make dubdubdubdub and then vp pone.js. js. We could also put this as a username, but um might as well just do it here. We'll do a document.right, and we're going to write image source is equal to http 10 10148. And I'm going... | 674.56 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
And let's see. Uh probably don't need a single quote. | 707.76 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Okay, like this. And then I'm going to do plus um is it document.cookie or document.cookies? I can never keep that straight. Uh I think it's let's see if I go here console. Uh, is it I think if I just do document dot cookie. It's just document.cookie. | 716.24 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Awesome. I think this is all I need. Hopefully that works. Yeah, let's just stamp the server. So, we'll do Python 3-m http server. We have that now running. Let's do another upload and we'll see if it gets triggered. | 744.399 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Has been set for inspection. It got parent.js, but it is not loading. | 773.279 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Let's see. So, we write Wonder if I screwed something. | 787.6 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Oh, I don't need that single quote there. Whoops. | 794 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Okay, let's test this image one. Register. Hopefully this time it works. Waiting for it to do another get. There we go. And now we have the PHP session. And it looks like it's sending us maybe a little bit more. I'm going to URL decode this. So we can just go to burp suites decoder smart decode. And that BR is not part... | 801.68 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Right. So if I copy this, we can now go into our storage cookies and set the PHP session to be this. Refresh the page. | 833.519 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
And now we're admin, right? Um, if we wanted to, we can also exploit this a different way, right? So, I'm going to show the other way. And this one's going to be the intended way to exploit it. | 846.8 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
So, if we dose, um, I probably already have an account, right? Unless it wiped it. Let's test. | 860.399 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
IPSSAC password. Okay, let's register an account. IPSSAC roots. password register successful IPSC password. So the intended way is actually to inject cross a scripting bypassing the filter. So we'll do catname task one one and let's browse this image one. | 868 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
We will intercept this request. send this over to repeater. | 900 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Okay, so we won't be getting any more sessions because our username does not have that cross-sight scripting payload. So, how are we going to um bypass this? Well, let's see. Uh what is it? Trying to think the best way to explain it. I'm going to go back into the source and let's go into contest and we'll look at the b... | 908.639 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
So, looking at this, some of the key things that aren't excluded is probably going to be these brackets. Um, additionally, it doesn't look like double quote is excluded. | 941.519 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
So what we can do is encode a request. So we'll be able to use HTML entity encoding in order to bypass um any filters because uh let's just go cyber chef and show what HTML any encoding looks like. | 954.88 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Probably have to turn intercept off. | 974.16 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Let's see. | 979.92 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Just disable Foxy proxy for now. Cyber Chef GCH HQ. I should really just put this on my bookmark bar. There we go. | 987.519 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
And once this loads, we should be able to um put in an input ipsac and then encode HTML, let's see, to HTML entity and convert all characters. So, this is going to be HTML any encoding and JavaScript will magically um undo this, I believe. Let's see where is this being used. | 1,002.72 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Let's see. Join vote. | 1,037.52 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
It's probably going to be um view, right? Because viewcat is probably where um everything is viewed, I guess. Let's see. This is where it's set. And right here, um, it looks like viewcat is only available to the admin. Um, or wait, this is or. So if so, username is set or session. Oh, so if there is a username set and ... | 1,043.36 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
This is going to be where it is echoed. So we have cat photo path, cat name, and whatever. So this is where I think we are injecting into the cross-ite scripting. Um, so we're injecting probably into image source with the photo path or cat name. So what we'll have to do is change this to be entity encoded. So um, let's... | 1,093.039 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Um, when I solved the box, I did it through the username and then saw this was the intended way, but haven't actually done it. So, hopefully it all works live. What I'm going to do is copy this. We're going to grab it. Then I'm going to paste this in. | 1,156.64 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
And we want to close out the name. Then we're going to do on error is equal to and I think we can do this and wait is the bad character I think we can actually use double quotes. I think we only want to encode this. Um, let's see. | 1,179.039 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
And I'm actually going to use fetch. We don't have to do a document, right? We can just do fetch like this. HTTP. That should be fine. | 1,213.44 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Okay, I think this is what we want. So, I'm going to go to Burpswuite. We have it on repeater. This is going to be I'm just going to send this. I want to make sure it doesn't send my cross-sight scripting payload. I'm not exactly sure if um what session this is if this is my IPS session or if this is the session that h... | 1,232.32 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
So this should work. I'm not getting a hit back. So this is definitely the right name. I'm going to send it and hopefully we get a hit in a second. | 1,288.08 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
I wonder if I can view if I try to view cat. I probably don't know the ID I need to get right. | 1,300.799 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
See, that does not look like it hit. Does this say invalid characters? | 1,315.039 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
It does. | 1,322.96 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
So you probably have to encode more, right? | 1,328.88 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Auto scroll. What are the invalid CD source contest? | 1,334.159 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Okay, what one did we use? We're not using a Oh, that's any. So, plus there is no plus. | 1,350.48 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
We're using double quotes. That is not on here. | 1,363.6 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Oh, we have a semicolon. Semicolon's a bad character. | 1,371.28 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
I guess we have to strip those out or something. | 1,377.84 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
So let's see what happens if we just remove semicolons because I don't think that is needed for it. Uh so we can do replace go here semicolon with nothing. | 1,387.6 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Um match all. | 1,402.64 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Oh, I have a quote. I don't know why I did that. | 1,408.4 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Let's try this payload. Paste this. | 1,414.24 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
There's no more invalid hit. And I am still listening. | 1,423.2 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
So hopefully we get a hit back in a couple seconds. But it doesn't look like it. So we have something else wrong. | 1,429.12 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Um looking at the payload. We're doing test. Oh, I think I see it. Um, we're doing double quotes inside of fetch. And we also have double quotes here. I'm guessing that's what's breaking it. So, I'm going to change this to be single quotes. | 1,437.36 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
And now, let's send this. So, we can change this payload now. | 1,455.919 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Whoops. Don't want to do everything. Send it. | 1,461.2 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
don't have invalid. Still looking here. Hopefully we get a hit. | 1,468.32 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Doesn't look like it. Um, we can try changing to be hex entities. | 1,474.96 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Um, maybe named entities requires a semicolon and hex would not because hex is always going to be two characters. | 1,481.12 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Um, this is also a possibility. So, we can paste this one. | 1,486.88 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Send that. Still not getting any errors, but we're not getting a hit. | 1,492.88 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Let's see. Wonder if I need to put a quote there and then we can do this. I can't imagine this fixing it because all the page is going to do is do a semi double quote and space. Oh, we got a hit. We didn't even send this one. So, I just was not patient enough. So, this payload worked. | 1,500.08 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
We have to do it in hex encoding probably because um we remove the semicolons and there's probably like a regular expression there for like when it's decoding it does the amperand uh pound sign x and then two characters and when it's coded as named entities it doesn't easily have that ability because we have like two c... | 1,519.039 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
And then we can just refresh. And we got admin. Now, this piece is a bit harder to find. Um, if we had loaded up this code in sneak, it would automatically find. I'm going to see if I'm logged in. Um, hopefully I am. And either way, I'm going to show a different tool in case you don't want to use like cloud AI stuff fo... | 1,576.32 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Please say I'm logged in. Yes, it is looking like it's running. Uh, okay. Sweet. When it said connect workspace, I got a little bit worried. But it's looking the at the code for vulnerabilities hopefully. There we go. Finds them pretty quickly. We have a SQL injection inside of except cat. Um, we don't need that. Don't... | 1,605.279 | 0 | {
"video_id": "x3UvO2DDbbA",
"title": "HackTheBox - Cat",
"url": "https://www.youtube.com/watch?v=x3UvO2DDbbA"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.