Uploaded November 2023 | Updated November 2026, 3 days ago
00:00 - Introduction
01:00 - Start of nmap
05:30 - Playing with the download file functionality, discovering the UUID is the file on disk and not column in database by prepending a slash
09:00 - Finding a File Disclosure vulnerability, extracting application source code, getting source code of the app
13:15 - Start of signing our own cookies, examining the sig cookie to discover it is 40 bytes which is likely sha1
16:00 - Playing with Cyber Chef to discover how the cookie is signed
18:50 - Creating a python application to create and sign cookies so we can become other users
24:30 - Becoming other users and looking at all uploaded files
32:50 - Explaining the ORM Injection, looking at Prisma Documentation to discover how we can perform boolean injection
37:00 - Showing the proof of concept payload, and then making the script loop to extract the entire password field
44:00 - POC Script done, but it is slow. Adding concurrency/threading with asyncio/await to our script to speed it up
48:50 - Modifying the script to dump multiple users, and finding WESLEY's password
56:00 - Explaining how the Boolean Injeciton script works
59:50 - Looking at the running processes, discovering root is running su and a new pty is not being created, which makes this vulnerable to the tty pushback attack
1:02:45 - Explaining the TTY Pushback attack
1:10:20 - Gettinng the PostGresql credentials from the systemd file which lets us write to the postgres home directory, which enables us to perform the TTY Pushback attack against root
00:00 - Introduction
01:00 - Start of nmap
05:30 - Playing with the download file functionality, discovering the UUID is the file on disk and not column in database by prepending a slash
09:00 - Finding a File Disclosure vulnerability, extracting application source code, getting source code of the app
13:15 - Start of signing our own cookies, examining the sig cookie to discover it is 40 bytes which is likely sha1
16:00 - Playing with Cyber Chef to discover how the cookie is signed
18:50 - Creating a python application to create and sign cookies so we can become other users
24:30 - Becoming other users and looking at all uploaded files
32:50 - Explaining the ORM Injection, looking at Prisma Documentation to discover how we can perform boolean injection
37:00 - Showing the proof of concept payload, and then making the script loop to extract the entire password field
44:00 - POC Script done, but it is slow. Adding concurrency/threading with asyncio/await to our script to speed it up
48:50 - Modifying the script to dump multiple users, and finding WESLEY's password
56:00 - Explaining how the Boolean Injeciton script works
59:50 - Looking at the running processes, discovering root is running su and a new pty is not being created, which makes this vulnerable to the tty pushback attack
1:02:45 - Explaining the TTY Pushback attack
1:10:20 - Gettinng the PostGresql credentials from the systemd file which lets us write to the postgres home directory, which enables us to perform the TTY Pushback attack against root




![HackTheBox - CyberMonday
00:00 - Introduction
00:55 - Start of nmap, playing with the webapp discovering it is Laravel PHP App
06:50 - Discovering /assets is a redirect to /assets/, indicator of the Nginx off by slash [MasterRecon]
11:50 - Using the Nginx off by slash to download .env and .git to get the source code to the app
14:00 - Start of code analysis
15:55 - Finding a Mass Assignment vulnerability in the update functionality
21:50 - Taking some time to explore if there are ways to find Mass Assignment without looking at the code or guessing
27:30 - Looking at the Webhooks-api-beta website, playing with the request and discovering we need to send it JSON
30:40 - Playing with the JWT, Discovering its a RS256 encoded, doing an Algorithm Confusion attack to sign the token with the RSA Public Key
41:50 - Playing with the Webhook and discovering a SSRF, which we can also do protocol smuggling since we can write to the HTTP Method
46:30 - Looking at the Redis Migrate functionality which confirms we can interact with Redis. Also stand up redis on our box with docker
52:28 - Inserting a poisoned laravel cookie into redis we created with phpggc, troubleshooting all the encoding issues we have. Browsing the page deserializes our cookie and gets RCE
1:17:50 - Reverse shell returned, examining the mysql database and redis keys
1:30:10 - Uploading a static nmap to scan the docker containers finding a docker registry, downloading the api container to get the source code
1:49:35 - Source code analysis on the webhook code, discovering a file disclosure and hardcoded API Key
2:02:50 - Dumping the environment variables, getting the DB Password which is also a user password, ssh as john
2:08:30 - John can run docker compose on a sanitized docker file, there are a few ways to bypass this check
2:12:10 - Showing we can pass in a raw device, which works without adding any special capabilities to the docker container but it is very very dangerous
2:30:30 - Showing we can also pass in a volume as RO and give the capability and AppArmor policy to allow the container to remount this as RW HackTheBox - CyberMonday](https://i.ytimg.com/vi/VNMn5bXA8XY/mqdefault.jpg)





