HackTheBox - Socket

IppSec · Beginner ·🔐 Cybersecurity ·2y ago

Key Takeaways

Exploits XXE vulnerability in a web application using RegEx and Python

Original Description

00:00 - Introduction 01:00 - Start of nmap 01:45 - Taking a look at QReader.htb 04:40 - Opening the QReader application to discover it requires GLIBC_2.35, going back to nmap to see what flavor of linux was used 06:25 - Switching to Ubuntu Jammy and running Wireshark with the app running to see it makes a request to WS.QREADER.HTB 09:30 - Using BurpSuite to intercept this thick client by setting it up as a transparent proxy 12:00 - Playing with the websocket and discovering SQL Injection 14:40 - Using WebSocat and watch to build a quick client to test the SQL Injection over websockets and playing with Union to see how many columns are needed 16:00 - Identifying what database is used, using SQLITE_VERSION() and seeing it is SQLITE. Then dumping the schema of SQLITE 20:30 - Dumping the Users table 24:10 - Dumping the other tables, getting the name of the admin in the answers table 28:20 - Using username-anarchy to generate a bunch of potential usernames, then using CrackMapExec to spray ssh 29:30 - Logging into the webserver, looking at the webserver code and not really finding anything 32:00 - Looking at sudo rules to see I can run build-installer.sh, which is a wrapper around pyinstaller 34:50 - Looking at the PyInstaller spec file, to show we can include files in the executable that gets created by pyinstaller 35:30 - Including files owned by root such as ssh key, shadow and flag in the specfile for pyinstaller 39:30 - Using Pyinstxtractor to extract the pysinstaller exe and downloading our files 40:47 - Beyond Root: Decompiling the QReader Application with pycdc (Decompyle++)
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 Reads

📰
Australian Cyber Security Centre Issues Alert on Mass Exploitation of CMS Vulnerabilities
The Australian Cyber Security Centre warns of a large-scale campaign exploiting CMS vulnerabilities, urging organizations to patch systems immediately
Dev.to · NetSecOpsIO
📰
Malicious 'jscrambler' NPM Package Versions Deploy Cross-Platform Infostealer in Sophisticated Supply Chain Attack
Learn about a sophisticated supply chain attack on the jscrambler NPM package that deployed a cross-platform infostealer, and how to protect yourself
Dev.to · NetSecOpsIO
📰
This Week in Breaches: What HSIN and Accenture Teach Us About Life After the Break-In
Learn from recent breaches like HSIN and Accenture to improve post-breach security and response strategies
Dev.to · Arashad Dodhiya
📰
If I Had to Start From Zero in 2026, I Would Do This
Learn a step-by-step roadmap to break into Application Security from scratch in 2026
Medium · AI

Chapters (18)

Introduction
1:00 Start of nmap
1:45 Taking a look at QReader.htb
4:40 Opening the QReader application to discover it requires GLIBC_2.35, going back
6:25 Switching to Ubuntu Jammy and running Wireshark with the app running to see it
9:30 Using BurpSuite to intercept this thick client by setting it up as a transpare
12:00 Playing with the websocket and discovering SQL Injection
14:40 Using WebSocat and watch to build a quick client to test the SQL Injection ove
16:00 Identifying what database is used, using SQLITE_VERSION() and seeing it is SQL
20:30 Dumping the Users table
24:10 Dumping the other tables, getting the name of the admin in the answers table
28:20 Using username-anarchy to generate a bunch of potential usernames, then using
29:30 Logging into the webserver, looking at the webserver code and not really findi
32:00 Looking at sudo rules to see I can run build-installer.sh, which is a wrapper
34:50 Looking at the PyInstaller spec file, to show we can include files in the exec
35:30 Including files owned by root such as ssh key, shadow and flag in the specfile
39:30 Using Pyinstxtractor to extract the pysinstaller exe and downloading our files
40:47 Beyond Root: Decompiling the QReader Application with pycdc (Decompyle++)
Up next
How to Build a Successful Career in Cyber Security, Avoid Common Mistakes in Tech Education
Sreevidhya Santhosh
Watch →