HackTheBox - BroScience

IppSec · Beginner ·🔐 Cybersecurity ·3y ago
00:00 - Intro 00:51 - Start of nmap 02:30 - Finding some vulnerable-looking parameters 03:50 - Testing some basic things for LFI, finding a WAF blocking ../. Double encoding it to get passed 07:11 - Start of writing a script to abuse this LFI and crawl/download all the php source 10:30 - Making the script recursive, so it will check pages downloaded for new links 16:50 - Making the script save the files 19:40 - Opening the code in Visual Studio Code, and showing off Snyk's static code anlysis to highlight a Unserialization vuln 22:20 - Identifying how the site generates activation codes upon registration identifying an insecure use of SRAND(). Generating our own activation code 25:30 - Exploiting the PHP Unserialization by finding a vulnerable gadget (wakeup) which will save a file 27:45 - Building a deserialization object to download a file off our server and write it to the web directory 32:08 - EDIT: Talking about webserver hardening (allow_url_fopen in php) and how it would slow down this attack 35:00 - EDIT: Poisoning our PHP Session with PHP Code as our username, then building an object to copy that to the server so don't need to use a remote host 41:38 - Getting a shell on the box, dumping credentials from postgres 44:55 - Attempting to crack the passwords, failing, checking the source code to identify there is a hidden salt. Then cracking the passwords 51:25 - Passwords cracked logging in as bill 55:10 - Using pspy to identify a script runs to renew certificates 57:15 - Going over the bash script and identifying a command injection vulnerability. 1:01:45 - Failing for a bit because I didn't change the certificate time, then changed too much at once which caused me more problems 1:06:04 - Finding the CheckEnd parameter, setting our days equal to one but our payload doesn't work 1:08:15 - Putting the payload in $(), and getting root to the box 01:10:20 - Just making sure we fully understood why our first attempts failed
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

Migrating Your Microservices to Post-Quantum TLS with liboqs
Migrate microservices to post-quantum TLS using liboqs to ensure security against quantum computing threats
Medium · Python
Your antivirus can’t stop what’s coming.
Traditional antivirus software is ineffective against emerging threats like ransomware, which can have devastating consequences, especially in critical infrastructure like hospitals
Medium · AI
Your antivirus can’t stop what’s coming.
Traditional antivirus software is ineffective against emerging threats like ransomware, highlighting the need for advanced security measures
Medium · Machine Learning
Your antivirus can’t stop what’s coming.
Traditional antivirus software is ineffective against emerging cyber threats, highlighting the need for advanced security measures
Medium · Cybersecurity

Chapters (22)

Intro
0:51 Start of nmap
2:30 Finding some vulnerable-looking parameters
3:50 Testing some basic things for LFI, finding a WAF blocking ../. Double encodin
7:11 Start of writing a script to abuse this LFI and crawl/download all the php sou
10:30 Making the script recursive, so it will check pages downloaded for new links
16:50 Making the script save the files
19:40 Opening the code in Visual Studio Code, and showing off Snyk's static code anl
22:20 Identifying how the site generates activation codes upon registration identify
25:30 Exploiting the PHP Unserialization by finding a vulnerable gadget (wakeup) whi
27:45 Building a deserialization object to download a file off our server and write
32:08 EDIT: Talking about webserver hardening (allow_url_fopen in php) and how it wo
35:00 EDIT: Poisoning our PHP Session with PHP Code as our username, then building a
41:38 Getting a shell on the box, dumping credentials from postgres
44:55 Attempting to crack the passwords, failing, checking the source code to identi
51:25 Passwords cracked logging in as bill
55:10 Using pspy to identify a script runs to renew certificates
57:15 Going over the bash script and identifying a command injection vulnerability.
1:01:45 Failing for a bit because I didn't change the certificate time, then changed t
1:06:04 Finding the CheckEnd parameter, setting our days equal to one but our payload
1:08:15 Putting the payload in $(), and getting root to the box
1:10:20 Just making sure we fully understood why our first attempts failed
Up next
The Linux Kernel Killswitch Changes Things Forever
Brodie Robertson
Watch →