HackTheBox - DarkCorp

IppSec · Beginner ·🔐 Cybersecurity ·8mo ago

Key Takeaways

Exploits RoundCube XSS vulnerability on HackTheBox using Nmap and BurpSuite

Original Description

00:00 - Introduction 01:00 - Start of nmap 02:45 - Discovering the Contact Us form lets us send emails anywhere, also leaks the bcase user to the recipient 05:30 - Discovering RoundCube Version and finding it is vulnerable to XSS, testing it against ourself with the contact us form 11:45 - Building a XSS CSRF Payload that will exfil all emails in the inbox 18:50 - Creating the Python HTTP Server to display emails sent from the XSS Payload, use Beautiful Soup to parse the HTML to only show important pieces 31:40 - Sending the XSS to bcase, getting his emails. Discovering a new subdomain, using password reset and reading his inbox again to discover the reset link 35:20 - Finding SQL Injection in PostGres, checking if we are super user, discovering there is a filter stripping the work copy 38:00 - Doing some light evasion using an eval like feature of PostGres so we can encode our query and getting a shell on the box 47:30 - Discovering an encrypted file, using the db password within .env of the webapp to decrypt it 54:20 - Getting our first Active Directory user, running RustHound but there aren't many paths 59:40 - Logging into another page with Victor's credentials, we have an SSRF here 01:04:18 - Using socat to set up a tunnel so we can have the target listen on a port and send it back to use (Reverse Port Forward), not using SSH because it only listens on localhost 01:08:30 - Responder grabs a NetNTLMv2 Hash from the SSRF, showing the latest version of responder won't grab it, digging into source to show why 01:15:05 - Showing LDAP Signing is not enabled, using NTLMRelayx to forward our request to the LDAP Server, attempting Certificate Enrollment with ADCS but NTLM Auth is disabled 01:22:20 - Getting KRBRelayX Up and running so we can auth with ADCS 01:26:20 - Using the PrinterBug to force the machine to make a request to our KRBRelay Server, but first using NTLMRelayX to create a special DNS Name (marshalling) to masquerade as DC-01 01:31:40 - Got a NTLM Hash f
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 Reads

📰
The Honeypot That Lied: Diagnosing a Silent 12-Day Telemetry Gap
Learn to diagnose a silent 12-day telemetry gap in a honeypot system and understand the importance of continuous monitoring in cybersecurity
Medium · Cybersecurity
📰
Can Hackers Sniff Wi-Fi from the Toilet?
Learn how hackers can exploit Wi-Fi vulnerabilities and ways to protect your network
Medium · Cybersecurity
📰
FBI Disrupts Major Botnet & Proxy Network Amidst Fresh Crypto Innovation
Learn how the FBI disrupted a major botnet and proxy network, and understand the implications for crypto innovation and cybersecurity
Dev.to AI
📰
Why Digital Privacy Matters More Than Ever in 2026
Learn why digital privacy is crucial in 2026 and how to protect yourself from data breaches and cyber threats
Medium · Cybersecurity

Chapters (18)

Introduction
1:00 Start of nmap
2:45 Discovering the Contact Us form lets us send emails anywhere, also leaks the b
5:30 Discovering RoundCube Version and finding it is vulnerable to XSS, testing it
11:45 Building a XSS CSRF Payload that will exfil all emails in the inbox
18:50 Creating the Python HTTP Server to display emails sent from the XSS Payload, u
31:40 Sending the XSS to bcase, getting his emails. Discovering a new subdomain, usi
35:20 Finding SQL Injection in PostGres, checking if we are super user, discovering
38:00 Doing some light evasion using an eval like feature of PostGres so we can enco
47:30 Discovering an encrypted file, using the db password within .env of the webapp
54:20 Getting our first Active Directory user, running RustHound but there aren't ma
59:40 Logging into another page with Victor's credentials, we have an SSRF here
1:04:18 Using socat to set up a tunnel so we can have the target listen on a port and
1:08:30 Responder grabs a NetNTLMv2 Hash from the SSRF, showing the latest version of
1:15:05 Showing LDAP Signing is not enabled, using NTLMRelayx to forward our request t
1:22:20 Getting KRBRelayX Up and running so we can auth with ADCS
1:26:20 Using the PrinterBug to force the machine to make a request to our KRBRelay Se
1:31:40 Got a NTLM Hash f
Up next
Why Cyber security is important for your SEO
Menerva Digital
Watch →