HackTheBox - Drive

IppSec · Beginner ·🔐 Cybersecurity ·2y ago
00:00 - Introduction 01:00 - Start of nmap 02:30 - [MasterRecon] Examining CSRF Cookie to discover it is likely Django 07:50 - Using FFUF to bruteforce ID's of uploaded files, can discover valid ID's but not view the ID itself 14:00 - Accidentally deleting something important when FUZZING, always be careful of what you are doing with tools 16:45 - Discovering the /block endpoint allows us to view any file, discovering a file with credentials which lets us log into the server 23:00 - Setting up a SSH Tunnel to access port 3000, which is Gitea. Discovering an old commit that has the password to decrypt backups 32:00 - Logging into the box as Tom, discovering the DoodleGrive Binary, opening it up in Ghidra 38:45 - Looking at the Sanitize_String command, to see what characters we cannot use 41:40 - Exploiting DoodleGrive via SQL Injection with the EDIT command, this is easy to exploit because SetUID's preserve environment variables 47:40 - Got root, our path is messed up which makes the shell hard to use, however fixing the path is easy 50:45 - Exploiting DoodleGrive via LOAD_EXTENSION, by dropping a library and using char() to avoid the sanitize string function 54:00 - Our SQL Extension C Code 1:02:36 - Failing to use WriteFile() guessing this is because of the size of our input, may incorrectly say buffer overflow here. 1:16:20 - Exploit DoodleGrive via Binary Exploitation! Explaining the Overflow and Format String Vulnerability we will use 1:19:30 - Creating a python script to find where the Canary exists in memory via the Format String Exploit (%i$lx) 1:23:30 - Proving this is the canary by stepping through the program in GDB use $fs_base to examing fs 1:25:30 - Finding where we can overwrite the canary with pattern create 1:27:55 - Creating a python script to exploit this binary 1:43:40 - Converting our pwntools script to use SSH so we can exploit the binary on the target
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from IppSec · IppSec · 0 of 60

← Previous Next →
1 HHC2016 - Analytics
HHC2016 - Analytics
IppSec
2 HackTheBox - October
HackTheBox - October
IppSec
3 HackTheBox - Arctic
HackTheBox - Arctic
IppSec
4 HackTheBox - Brainfuck
HackTheBox - Brainfuck
IppSec
5 HackTheBox - Bank
HackTheBox - Bank
IppSec
6 HackTheBox - Joker
HackTheBox - Joker
IppSec
7 HackTheBox - Lazy
HackTheBox - Lazy
IppSec
8 Camp CTF 2015 - Bitterman
Camp CTF 2015 - Bitterman
IppSec
9 HackTheBox - Devel
HackTheBox - Devel
IppSec
10 Reversing Malicious Office Document (Macro) Emotet(?)
Reversing Malicious Office Document (Macro) Emotet(?)
IppSec
11 HackTheBox - Granny and Grandpa
HackTheBox - Granny and Grandpa
IppSec
12 HackTheBox - Pivoting Update: Granny and Grandpa
HackTheBox - Pivoting Update: Granny and Grandpa
IppSec
13 HackTheBox - Optimum
HackTheBox - Optimum
IppSec
14 HackTheBox - Charon
HackTheBox - Charon
IppSec
15 HackTheBox - Sneaky
HackTheBox - Sneaky
IppSec
16 HackTheBox - Holiday
HackTheBox - Holiday
IppSec
17 HackTheBox - Europa
HackTheBox - Europa
IppSec
18 Introduction to tmux
Introduction to tmux
IppSec
19 HackTheBox - Blocky
HackTheBox - Blocky
IppSec
20 HackTheBox - Nineveh
HackTheBox - Nineveh
IppSec
21 HackTheBox - Jail
HackTheBox - Jail
IppSec
22 HackTheBox - Blue
HackTheBox - Blue
IppSec
23 HackTheBox - Calamity
HackTheBox - Calamity
IppSec
24 HackTheBox - Shrek
HackTheBox - Shrek
IppSec
25 HackTheBox - Mirai
HackTheBox - Mirai
IppSec
26 HackTheBox - Shocker
HackTheBox - Shocker
IppSec
27 HackTheBox - Mantis
HackTheBox - Mantis
IppSec
28 HackTheBox - Node
HackTheBox - Node
IppSec
29 HackTheBox - Kotarak
HackTheBox - Kotarak
IppSec
30 HackTheBox - Enterprise
HackTheBox - Enterprise
IppSec
31 HackTheBox - Sense
HackTheBox - Sense
IppSec
32 HackTheBox - Minion
HackTheBox - Minion
IppSec
33 VulnHub - Sokar
VulnHub - Sokar
IppSec
34 VulnHub - Pinkys Palace v2
VulnHub - Pinkys Palace v2
IppSec
35 HackTheBox - Inception
HackTheBox - Inception
IppSec
36 Vulnhub - Trollcave 1.2
Vulnhub - Trollcave 1.2
IppSec
37 HackTheBox - Ariekei
HackTheBox - Ariekei
IppSec
38 HackTheBox - Flux Capacitor
HackTheBox - Flux Capacitor
IppSec
39 HackTheBox - Jeeves
HackTheBox - Jeeves
IppSec
40 HackTheBox - Tally
HackTheBox - Tally
IppSec
41 HackTheBox - CrimeStoppers
HackTheBox - CrimeStoppers
IppSec
42 HackTheBox - Fulcrum
HackTheBox - Fulcrum
IppSec
43 HackTheBox - Chatterbox
HackTheBox - Chatterbox
IppSec
44 HackTheBox - Falafel
HackTheBox - Falafel
IppSec
45 How To Create Empire Modules
How To Create Empire Modules
IppSec
46 HackTheBox - Nightmare
HackTheBox - Nightmare
IppSec
47 HackTheBox - Nightmarev2  - Speed Run/Unintended Solutions
HackTheBox - Nightmarev2 - Speed Run/Unintended Solutions
IppSec
48 HackTheBox - Bart
HackTheBox - Bart
IppSec
49 HackTheBox -  Aragog
HackTheBox - Aragog
IppSec
50 HackTheBox - Valentine
HackTheBox - Valentine
IppSec
51 HackTheBox - Silo
HackTheBox - Silo
IppSec
52 HackTheBox - Rabbit
HackTheBox - Rabbit
IppSec
53 HackTheBox - Celestial
HackTheBox - Celestial
IppSec
54 HackTheBox - Stratosphere
HackTheBox - Stratosphere
IppSec
55 HackTheBox - Poison
HackTheBox - Poison
IppSec
56 HackTheBox - Canape
HackTheBox - Canape
IppSec
57 HackTheBox - Olympus
HackTheBox - Olympus
IppSec
58 HackTheBox - Sunday
HackTheBox - Sunday
IppSec
59 HackTheBox - Fighter
HackTheBox - Fighter
IppSec
60 HackTheBox - Bounty
HackTheBox - Bounty
IppSec

Related AI Lessons

Chapters (20)

Introduction
1:00 Start of nmap
2:30 [MasterRecon] Examining CSRF Cookie to discover it is likely Django
7:50 Using FFUF to bruteforce ID's of uploaded files, can discover valid ID's but n
14:00 Accidentally deleting something important when FUZZING, always be careful of w
16:45 Discovering the /block endpoint allows us to view any file, discovering a file
23:00 Setting up a SSH Tunnel to access port 3000, which is Gitea. Discovering an ol
32:00 Logging into the box as Tom, discovering the DoodleGrive Binary, opening it up
38:45 Looking at the Sanitize_String command, to see what characters we cannot use
41:40 Exploiting DoodleGrive via SQL Injection with the EDIT command, this is easy t
47:40 Got root, our path is messed up which makes the shell hard to use, however fix
50:45 Exploiting DoodleGrive via LOAD_EXTENSION, by dropping a library and using cha
54:00 Our SQL Extension C Code
1:02:36 Failing to use WriteFile() guessing this is because of the size of our input,
1:16:20 Exploit DoodleGrive via Binary Exploitation! Explaining the Overflow and Forma
1:19:30 Creating a python script to find where the Canary exists in memory via the For
1:23:30 Proving this is the canary by stepping through the program in GDB use $fs_base
1:25:30 Finding where we can overwrite the canary with pattern create
1:27:55 Creating a python script to exploit this binary
1:43:40 Converting our pwntools script to use SSH so we can exploit the binary on the
Up next
Windows Server 2025 Admin – Hands-On Labs
Coursera
Watch →