HackTheBox - RedPanda

IppSec · Beginner ·🔐 Cybersecurity ·3y ago
00:00 - Introduction 00:55 - Start of nmap 01:58 - Poking at the web page, examining the request, playing with server headers 02:25 - Discovering an error message, googling it and finding out it is tied to Sping Boot 03:45 - Start of FFuf, using a raw request so we can ffuf like we can sqlmap 04:45 - Going over the results of FFUF 05:40 - Matching all error codes with FFUF which is very important, going over the special characters 08:15 - The curly braces return 500 in FFUF, big indication it is going to be SSTI 09:20 - Using HackTricks to get a Spring Framework SSTI payload and getting command execution 13:05 - Using curl to download a shell script and then execute it because we are having troubles getting a reverse shell 15:30 - Going back to just show the Match Regex feature of FFUF to search for banned characters 17:00 - Searching the file system for files owned by logs, discovering redpanda.log. Using a recursive grep to find out what uses this 19:50 - Examining the Credit Score java application and seeing what it does with the RedPanda.log file 22:00 - Discovering the Credit Score application gets the Artist variable via ExifData in an image 24:10 - With the Artist, the Credit Score application opens an XML File and writes. This is like an Second Order XXE Injection 25:50 - Downloading an image, so we can change the exif metadata 27:30 - Using Exiftool to modify the artist 29:30 - Building the malicious XML File 33:20 - Putting a malcious entry in the log, waiting for the cron to hit and then checking if we got root key 35:15 - Showing why our user had the group of logs. On boot the service was started with sudo and assigned us that group
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

Breaking MedBay.AI
Learn how prompt injection, SSTI, and stored XSS vulnerabilities can be chained to compromise an AI medical assistant and steal a privileged session
Medium · Cybersecurity
From Alert Fatigue to Action: Architecting a Hyper-Automated SOC Workflow
Learn how to architect a hyper-automated SOC workflow to reduce alert fatigue and increase efficiency
Medium · Cybersecurity
Advancing Cloud-Native Cybersecurity and Intelligent IoT Infrastructure for Telecommunications
Advance cloud-native cybersecurity and intelligent IoT infrastructure for telecommunications with emerging technologies
Medium · AI
MartiniAD | Hack Smarter Labs Walkthrough
Learn to hack smarter with MartiniAD on Hack Smarter Labs, a walkthrough for cybersecurity enthusiasts
Medium · Cybersecurity

Chapters (20)

Introduction
0:55 Start of nmap
1:58 Poking at the web page, examining the request, playing with server headers
2:25 Discovering an error message, googling it and finding out it is tied to Sping
3:45 Start of FFuf, using a raw request so we can ffuf like we can sqlmap
4:45 Going over the results of FFUF
5:40 Matching all error codes with FFUF which is very important, going over the spe
8:15 The curly braces return 500 in FFUF, big indication it is going to be SSTI
9:20 Using HackTricks to get a Spring Framework SSTI payload and getting command ex
13:05 Using curl to download a shell script and then execute it because we are havin
15:30 Going back to just show the Match Regex feature of FFUF to search for banned c
17:00 Searching the file system for files owned by logs, discovering redpanda.log.
19:50 Examining the Credit Score java application and seeing what it does with the R
22:00 Discovering the Credit Score application gets the Artist variable via ExifData
24:10 With the Artist, the Credit Score application opens an XML File and writes. Th
25:50 Downloading an image, so we can change the exif metadata
27:30 Using Exiftool to modify the artist
29:30 Building the malicious XML File
33:20 Putting a malcious entry in the log, waiting for the cron to hit and then chec
35:15 Showing why our user had the group of logs. On boot the service was started wi
Up next
Secure Mobile, IoT & Secure Applications
Coursera
Watch →