HackTheBox - Backfire
IppSec
View ChannelAbout
Video Search: https://ippsec.rocks
Latest Posts
Video Description
00:00 - Introduction 00:48 - Start of nmap 02:00 - Showing Havoc adding the X-HAVOC true header on GET/POST requests on its HTTP Hosting Service 05:00 - Seraching CVEDetails finding CVE-2024-41570 which is a SSRF 06:25 - Some quick C2 talk before we dive into the SSRF 08:45 - Going over the Havoc SSRF Script 17:10 - Talking about a research article that looked at multiple open-source C2's and the vulnerabilities they had 21:30 - Allowing our SSRF to make a websocket connection, which lets us authenticate and perform the RCE in Havoc 35:00 - Getting a shell, explaining our attack chain again 38:10 - Discovering Hardhatc2, looking at google and seeing it has a static JWT Signing Key 41:00 - Standing up HardHat c2 via docker to craft an authenticated cookie, then tunneling to backfire and bypassing auth. Use terminal to get shell 46:45 - Our new user can run iptables/iptables-save with sudo. Using this combo to write to roots authorized_keys2 to get a shell, which is a bit safer than authorized_keys
Upgrade Your Cyber Lab
AI-recommended products based on this video

10.1 Inch Touch Portable Monitor IPS Screen 1366x768P 60Hz 400 Brightness 99% sRGB HDMI USB-C Monitors Switch for Xbox PS3/4/5 Laptop Compatible with Raspberry Pi, Mini Touch Screen

Syntech Link Cable Compatible with Meta/Oculus Quest 3S/Quest 3/Quest2/Pro/Pico 4/Ultra and PC/SteamVR, 16FT Upgraded Type C Cable with USB 3.0 Adapter, High Speed Data Transfer Cord for VR Headset

Nineplus 1300Mbps Dual 5Dbi Antennas 5G/2.4G WiFi Adapter for Desktop PC Laptop Windows11/10/8/7/Vista/XP, USB 3.0 Wireless Adapter for Desktop Computer Network Adapters

EDUP USB 3.0 WiFi Adapter for PC Gaming 1300Mbps, USB Wireless Adapter Dual Band 5GHz 802.11AC WiFi Dongle 5dBi Antenna Support Desktop Laptop Windows XP/Vista/7/8/10/11 Mac 10.6-10.15

TP-Link USB to Ethernet Adapter (UE306) - Foldable USB 3.0 to Gigabit Ethernet LAN Laptop Network Adapter, Supports Nintendo Switch, Windows, Linux, Apple MacBook OS 10.11- OS 12, Surface

TP-Link 5 Port Gigabit Ethernet Network Switch (TL-SG1005D) - Plug and Play, Desktop or Wall Mount, Plastic Case, Ethernet Splitter, Fanless, Traffic Optimization, Unmanaged (TL-SG1005D)

TP-Link USB to Ethernet Adapter (UE306) - Foldable USB 3.0 to Gigabit Ethernet LAN Laptop Network Adapter, Supports Nintendo Switch, Windows, Linux, Apple MacBook OS 10.11- OS 12, Surface




