HackTheBox - AppSanity

IppSec · Beginner ·🛡️ AI Safety & Ethics ·2y ago
00:00 - Introduction 01:00 - Start of nmap, showing 5985 isn't in the top1000 so doing a full port scan 04:40 - Taking a look at the MedDigi website 07:07 - Taking a look at the Signup Request seeing AcctType 09:30 - Changing the AcctType to 2 and getting a different privilege 14:00 - VHost enumeration shows the portal.meddigi.htb domain, using our pre-existing session from the main page on this domain to bypass login 17:52 - Discovering SSRF in the Prescriptions page 19:40 - Discovering the File Upload requires a PDF but checks the magic bytes so we can make a PDF Header on our file and upload ASPX Web Shells 25:30 - Going back to the SSRF and discovering we can use time-based queries to identify ports listening on localhost 28:30 - Using FFUF to filter by duration to show us the requests that don't take a long time 38:22 - Discovering port 8080 shows our upload location, then navigating to it and getting a shell 42:22 - Finding DLL's the webserver uses, they are dotnet so copying them to a windows box so we can use dnspy and finding a password 45:40 - Using netexec to try the password against all users, then logging in as devdoc 53:00 - Looking at the ReportManagement.exe, opening it up in Ghidra 56:50 - Using chisel to forward port 100 to our box so we can access ReportManager 59:30 - Strings shows that externalupload.dll is right next to the Libraries string 1:00:15 - Looking at imports, see CreateProcessW, then going to where the binary calls that process 1:03:30 - Doing Dynamic Analysis with ProcMon, creating all the directories/files the program wants 1:18:50 - Eventually see it looking for files in the Libraries Directory when doing the upload command 1:21:45 - When externalupload.dll exists, we can see it doing a CreateProcess call, creating a DLL that sends a reverse shell 1:26:30 - When the DLL is in the libraries and we run upload, we get a shell
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

Hidden Audio Attacks on Voice AI: How Transcription Pipelines Get Hijacked
Learn how hidden audio attacks can hijack voice AI transcription pipelines and execute malicious commands, and why this matters for platform engineers and security teams
Dev.to AI
Vitalik Buterin: AI Formal Verification Will Supercharge Ethereum Security
Vitalik Buterin suggests AI formal verification can enhance Ethereum security, learn how to apply this concept
Medium · Cybersecurity
5 Benefits And Risks Of Using AI For Cybersecurity
Learn the benefits and risks of using AI for cybersecurity to inform your security strategies
Forbes Innovation
AI-Enabled Zero-Day 2FA Bypass: How to Protect Open-Source Admin Tools from the Next Wave of Attacks
Learn how to protect open-source admin tools from AI-enabled zero-day 2FA bypass attacks and understand the role of AI in cyber threats
Dev.to · Delafosse Olivier

Chapters (21)

Introduction
1:00 Start of nmap, showing 5985 isn't in the top1000 so doing a full port scan
4:40 Taking a look at the MedDigi website
7:07 Taking a look at the Signup Request seeing AcctType
9:30 Changing the AcctType to 2 and getting a different privilege
14:00 VHost enumeration shows the portal.meddigi.htb domain, using our pre-existing
17:52 Discovering SSRF in the Prescriptions page
19:40 Discovering the File Upload requires a PDF but checks the magic bytes so we ca
25:30 Going back to the SSRF and discovering we can use time-based queries to identi
28:30 Using FFUF to filter by duration to show us the requests that don't take a lon
38:22 Discovering port 8080 shows our upload location, then navigating to it and get
42:22 Finding DLL's the webserver uses, they are dotnet so copying them to a windows
45:40 Using netexec to try the password against all users, then logging in as devdoc
53:00 Looking at the ReportManagement.exe, opening it up in Ghidra
56:50 Using chisel to forward port 100 to our box so we can access ReportManager
59:30 Strings shows that externalupload.dll is right next to the Libraries string
1:00:15 Looking at imports, see CreateProcessW, then going to where the binary calls t
1:03:30 Doing Dynamic Analysis with ProcMon, creating all the directories/files the pr
1:18:50 Eventually see it looking for files in the Libraries Directory when doing the
1:21:45 When externalupload.dll exists, we can see it doing a CreateProcess call, crea
1:26:30 When the DLL is in the libraries and we run upload, we get a shell
Up next
Erfan Shayegani - Just Do It!? Computer-Use Agents Exhibit Blind Goal-Directedness
Cohere
Watch →