HackTheBox - Secret
00:00 - Into
01:04 - Start of nmap talking about seeing two ports having the same HTTP Banner
03:20 - Checking out the webpage to discover source code and some docs
04:00 - Always RTFM, Playing with the API to Register a user, login, and check out privilege level.
05:50 - Renaming our burp repeater tab by just double clicking on the number
07:30 - Trying to login with a name instead of email
10:10 - Testing our login token to find out it uses JWT's in a non-standard way
10:50 - Analyzing the source code to see the token is used in a header called "auth-token"
12:40 - Looking at git commit history to see there is a hard coded secret in an older commit and forging a token
13:40 - Changing our tokens user, going back to the source code and seeing "theadmin" is a hardcoded administrative user
14:30 - Talking about the importance of rotating secrets in a web application
16:30 - Analyzing the private.js which shows a logs endpoint that is vulnerable to RCE
17:50 - Testing command injection and getting a reverse shell
22:00 - Noticing we are a user on the box, seeing our shell is /bin/bash, dropping a SSH Key for a second way into the box
23:40 - Checking NGINX Configuration to see if there is any difference between the two websites (port 80 and 3000), there isnt.
25:20 - Running LinPEAS, discovering a custom SetUID Binary called count
30:00 - Running the custom count binary against /etc/shadow, discovering it can read files as root, but not write files as root
31:57 - Examining the source code, to discover it allows for dump files to be created
33:15 - Failing to kill the linux process with the correct signal
34:50 - Pulling up the man page to kill and listing all signals, then killing the process with a Segfault (11)
36:40 - Using apport-unpack to extract the crash report into readable files
37:23 - Examining the coredump to discover the file read is there! Then doing the same thing with an SSH Key to get root on the box
40:00 - Showing how file descriptors (/proc/pid/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
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
HHC2016 - Analytics
IppSec
HackTheBox - October
IppSec
HackTheBox - Arctic
IppSec
HackTheBox - Brainfuck
IppSec
HackTheBox - Bank
IppSec
HackTheBox - Joker
IppSec
HackTheBox - Lazy
IppSec
Camp CTF 2015 - Bitterman
IppSec
HackTheBox - Devel
IppSec
Reversing Malicious Office Document (Macro) Emotet(?)
IppSec
HackTheBox - Granny and Grandpa
IppSec
HackTheBox - Pivoting Update: Granny and Grandpa
IppSec
HackTheBox - Optimum
IppSec
HackTheBox - Charon
IppSec
HackTheBox - Sneaky
IppSec
HackTheBox - Holiday
IppSec
HackTheBox - Europa
IppSec
Introduction to tmux
IppSec
HackTheBox - Blocky
IppSec
HackTheBox - Nineveh
IppSec
HackTheBox - Jail
IppSec
HackTheBox - Blue
IppSec
HackTheBox - Calamity
IppSec
HackTheBox - Shrek
IppSec
HackTheBox - Mirai
IppSec
HackTheBox - Shocker
IppSec
HackTheBox - Mantis
IppSec
HackTheBox - Node
IppSec
HackTheBox - Kotarak
IppSec
HackTheBox - Enterprise
IppSec
HackTheBox - Sense
IppSec
HackTheBox - Minion
IppSec
VulnHub - Sokar
IppSec
VulnHub - Pinkys Palace v2
IppSec
HackTheBox - Inception
IppSec
Vulnhub - Trollcave 1.2
IppSec
HackTheBox - Ariekei
IppSec
HackTheBox - Flux Capacitor
IppSec
HackTheBox - Jeeves
IppSec
HackTheBox - Tally
IppSec
HackTheBox - CrimeStoppers
IppSec
HackTheBox - Fulcrum
IppSec
HackTheBox - Chatterbox
IppSec
HackTheBox - Falafel
IppSec
How To Create Empire Modules
IppSec
HackTheBox - Nightmare
IppSec
HackTheBox - Nightmarev2 - Speed Run/Unintended Solutions
IppSec
HackTheBox - Bart
IppSec
HackTheBox - Aragog
IppSec
HackTheBox - Valentine
IppSec
HackTheBox - Silo
IppSec
HackTheBox - Rabbit
IppSec
HackTheBox - Celestial
IppSec
HackTheBox - Stratosphere
IppSec
HackTheBox - Poison
IppSec
HackTheBox - Canape
IppSec
HackTheBox - Olympus
IppSec
HackTheBox - Sunday
IppSec
HackTheBox - Fighter
IppSec
HackTheBox - Bounty
IppSec
More on: Tool Use & Function Calling
View skill →Related AI Lessons
⚡
⚡
⚡
⚡
Pony.ai Unveils NVIDIA-Powered Domain Controller for L4 Autonomy
Dev.to AI
Your LLM budget alerts won't save you if you can't map costs to users
Dev.to · John Medina
A System-Prompt Skeleton That Survives Claude/GPT/Gemini Swaps
Dev.to · Gabriel Anhaia
Wire OpenTelemetry Around Your Anthropic Python Calls
Dev.to · Gabriel Anhaia
Chapters (23)
Into
1:04
Start of nmap talking about seeing two ports having the same HTTP Banner
3:20
Checking out the webpage to discover source code and some docs
4:00
Always RTFM, Playing with the API to Register a user, login, and check out pri
5:50
Renaming our burp repeater tab by just double clicking on the number
7:30
Trying to login with a name instead of email
10:10
Testing our login token to find out it uses JWT's in a non-standard way
10:50
Analyzing the source code to see the token is used in a header called "auth-to
12:40
Looking at git commit history to see there is a hard coded secret in an older
13:40
Changing our tokens user, going back to the source code and seeing "theadmin"
14:30
Talking about the importance of rotating secrets in a web application
16:30
Analyzing the private.js which shows a logs endpoint that is vulnerable to RCE
17:50
Testing command injection and getting a reverse shell
22:00
Noticing we are a user on the box, seeing our shell is /bin/bash, dropping a S
23:40
Checking NGINX Configuration to see if there is any difference between the two
25:20
Running LinPEAS, discovering a custom SetUID Binary called count
30:00
Running the custom count binary against /etc/shadow, discovering it can read f
31:57
Examining the source code, to discover it allows for dump files to be created
33:15
Failing to kill the linux process with the correct signal
34:50
Pulling up the man page to kill and listing all signals, then killing the proc
36:40
Using apport-unpack to extract the crash report into readable files
37:23
Examining the coredump to discover the file read is there! Then doing the sam
40:00
Showing how file descriptors (/proc/pid/f
🎓
Tutor Explanation
DeepCamp AI