HackTheBox - Guardian

IppSec · Beginner ·🔐 Cybersecurity ·2mo ago
00:00 - Introduction 00:52 - Start of nmap 03:00 - Discovering the portal.guardian.htb sub domain, there is a PDF here that shows the default password. Failing to enumerate valid accounts. 06:00 - Using FFUF to Bruteforce all accounts with the default password of GU1234 10:25 - Logging into the application, doing some quick notes of what functionality is exposed 14:25 - Identifying the Chat Functionality, attempting to see if there are broken access controls letting us read other users messages with ffuf 17:30 - Looking at the chats to admin, discovering a Gitea Password then finding the Gitea sub domain 22:00 - Doing some light enumeration against Gitea showing the Public API will let us enumerate if a user exists 24:45 - Logging in as Jamil and then downloading the portal source code and running it through Snyk 28:00 - Looking into the PHP Spreadsheet XSS Vulnerability and creating a python script to weaponize a document 35:20 - Stole the teachers cookie, switching our cookie and finding an CSRF Vulnerability 38:15 - Creating a quick CSRF Payload to add users 48:40 - Logged in as our newly created admin, exploiting the LFI Vulnerability with the Synactiv Filter Chain Vulnerability 55:15 - Got a shell on the box, dumping the database 58:30 - Identifying the hash, failing to crack it, realize its salted, finding the salt and cracking 1:06:10 - Logged in as Jamil, we can run a python script as Mark. We have write permission over a portion of the script allowing for RCE 1:08:45 - Mark can run SafeApache2CTL which is a custom wrapper, creating an apache module to show RCE 1:17:40 - Playing around with the binary, opening it up in Ghidra to show what it does and how weak the checks are 1:23:30 - Showing that using the Apache Include directive with a SymLink we can leak the first line of any file 1:25:10 - Showing copying the existing apache config and modifying it to just serve files out of /, this lets us grab entire files 1:34:30 - Showing a minimal apache config that
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

Stop Storing JWTs in localStorage: A Security Guide for Web Developers
Learn why storing JWTs in localStorage is insecure and how to secure your web application's authentication, which is crucial for protecting user data
Dev.to · Damilola Owolabi
Inside Consumer DVRs — Hardware, Firmware & Network Security Evaluation
Learn about the hardware, firmware, and network security of consumer DVRs through a reverse engineering analysis of the Hikvision DS-7204HUHI-K
Medium · Cybersecurity
Cómo construimos un SOC con honeypot e IA local
Learn how to build a Security Operations Center (SOC) using honeypot and local AI to detect and prevent cyber threats
Dev.to · Yoandy Ramirez Delgado
Credentials in web applications: how to store them properly
Learn how to store credentials properly in web applications to prevent breaches
Dev.to · Ian Johnson

Chapters (21)

Introduction
0:52 Start of nmap
3:00 Discovering the portal.guardian.htb sub domain, there is a PDF here that shows
6:00 Using FFUF to Bruteforce all accounts with the default password of GU1234
10:25 Logging into the application, doing some quick notes of what functionality is
14:25 Identifying the Chat Functionality, attempting to see if there are broken acce
17:30 Looking at the chats to admin, discovering a Gitea Password then finding the G
22:00 Doing some light enumeration against Gitea showing the Public API will let us
24:45 Logging in as Jamil and then downloading the portal source code and running it
28:00 Looking into the PHP Spreadsheet XSS Vulnerability and creating a python scrip
35:20 Stole the teachers cookie, switching our cookie and finding an CSRF Vulnerabil
38:15 Creating a quick CSRF Payload to add users
48:40 Logged in as our newly created admin, exploiting the LFI Vulnerability with th
55:15 Got a shell on the box, dumping the database
58:30 Identifying the hash, failing to crack it, realize its salted, finding the sal
1:06:10 Logged in as Jamil, we can run a python script as Mark. We have write permissi
1:08:45 Mark can run SafeApache2CTL which is a custom wrapper, creating an apache modu
1:17:40 Playing around with the binary, opening it up in Ghidra to show what it does a
1:23:30 Showing that using the Apache Include directive with a SymLink we can leak the
1:25:10 Showing copying the existing apache config and modifying it to just serve file
1:34:30 Showing a minimal apache config that
Up next
A single PR just hijacked the NPM registry...
Fireship
Watch →