22 Writeups

CTF Writeups

Detailed walkthroughs of CTF challenges and HackTheBox / TryHackMe machines with techniques and lessons learned.

Showing 22 of 22 writeups

Keeper

Easy
HackTheBoxMisc20 pts

Exploiting default credentials on a Zabbix ticketing system to gain initial access, then leveraging a KeePass memory dump to extract the master password and pivot to root.

Default CredentialsKeePassMemory Forensics+1
cyberhub2024-01
Read

Analytics

Easy
HackTheBoxWeb20 pts

Pre-authentication RCE in Metabase via a SSTI vulnerability in the setup token endpoint. Privilege escalation through a vulnerable Docker host environment variable.

SSTIMetabase RCEDocker Escape+1
cyberhub2024-02
Read

Socket

Medium
HackTheBoxWeb30 pts

WebSocket SQL injection to extract credentials, followed by abusing a PyInstaller build script running as sudo for privilege escalation.

WebSocketSQL InjectionPyInstaller+1
cyberhub2024-01
Read

Intentions

Hard
HackTheBoxWeb40 pts

Second-order SQL injection in a Laravel application to leak admin hashes, then exploiting ImageMagick MSL file to read arbitrary files and escalate to root via a Git hook.

Second-Order SQLiImageMagickMSL Files+2
cyberhub2024-03
Read

Rebound

Insane
HackTheBoxNetwork50 pts

Complex Active Directory attack chain involving AS-REP roasting, Kerberoasting, shadow credentials, cross-session relay, and RBCD for domain compromise.

Active DirectoryAS-REP RoastingKerberoasting+3
cyberhub2024-04
Read

Pickle Rick

Easy
TryHackMeWeb

Web challenge requiring enumeration of a Rick and Morty themed server, exploiting a command injection panel to read ingredient files.

Web EnumerationCommand InjectionLinux Commands+1
cyberhub2024-01
Read

Blue

Easy
TryHackMeNetwork

Exploiting the EternalBlue (MS17-010) vulnerability using Metasploit against a Windows 7 target to achieve SYSTEM-level access.

EternalBlueMS17-010Metasploit+2
cyberhub2024-02
Read

Relevant

Medium
TryHackMeNetwork

Enumerating an exposed SMB share to find credentials, then using PrintSpoofer to escalate from low-privileged IIS service account to SYSTEM.

SMB EnumerationIISPrintSpoofer+2
cyberhub2024-03
Read

Buffer Overflow 1

Easy
PicoCTFPwn200 pts

Classic stack buffer overflow to overwrite the return address and redirect execution to a win function that prints the flag.

Buffer OverflowStack SmashingReturn Address Overwrite+2
cyberhub2024-01
Read

Web Gauntlet

Medium
PicoCTFWeb300 pts

Multi-round SQL injection challenge where each round filters different keywords. Requires creative bypass techniques to extract the admin password.

SQL InjectionFilter BypassSQLite+1
cyberhub2024-02
Read

Spelunky

Hard
PicoCTFReverse500 pts

Reverse engineering a stripped binary to reconstruct the flag generation algorithm, involving anti-debugging techniques and obfuscated control flow.

Reverse EngineeringAnti-DebuggingBinary Analysis+2
cyberhub2024-03
Read

RSA Madlibs

Easy
CTFtimeCrypto100 pts

Series of RSA challenges covering basic concepts: computing private exponents, factoring small moduli, and exploiting small public exponents.

RSAPublic Key CryptographyModular Arithmetic+2
cyberhub2024-01
Read

Disk Disk Sleuth

Medium
CTFtimeForensics300 pts

Analyzing a disk image to find a hidden flag. Requires understanding of filesystem structures, file carving, and examining slack space.

Disk ForensicsFile CarvingAutopsy+2
cyberhub2024-02
Read

PC

Easy
HackTheBoxNetwork20 pts

Enumerating a gRPC service to discover a SQL injection vulnerability in the proto interface, then escalating via a vulnerable pyLoad instance.

gRPCSQL InjectionpyLoad+2
cyberhub2024-05
Read

Kioptrix Level 1

Easy
VulnHubNetwork

Classic beginner VM exploiting an outdated Samba version with OpenFuck to gain root access. Great introduction to Metasploit and manual exploitation.

SambaOpenFuckMetasploit+2
cyberhub2024-01
Read

Google Me

Easy
CTFtimeOSINT50 pts

OSINT challenge involving researching a fictional person across social media platforms, GitHub, and public records to piece together hidden information.

OSINTSocial Media InvestigationGoogle Dorking+1
cyberhub2024-03
Read

Sandworm

Medium
HackTheBoxWeb30 pts

Exploiting a SSTI vulnerability in a PGP verification page running inside a Firejail sandbox, then escaping the sandbox via a Firejail privilege escalation.

SSTIJinja2Firejail Escape+2
cyberhub2024-06
Read

Sleuthkit Apprentice

Easy
PicoCTFForensics200 pts

Using Sleuthkit tools to analyze a disk image, mounting partitions, and extracting a hidden flag from a Linux filesystem.

SleuthkitDisk ForensicsFilesystem Analysis+2
cyberhub2024-04
Read

ret2libc

Medium
CTFtimePwn250 pts

Return-to-libc attack against a 32-bit binary with stack canaries disabled. Chain libc gadgets to call system('/bin/sh') and pop a shell.

ret2libcNX BypassROP Chains+2
cyberhub2024-05
Read

Codify

Easy
HackTheBoxWeb20 pts

Exploiting a vm2 sandbox escape in a Node.js code execution environment, then cracking a bcrypt hash and exploiting a weak bash comparison in a backup script.

vm2 Sandbox EscapeNode.jsCVE-2023-32314+2
cyberhub2024-07
Read

Invisible WORDs

Easy
CTFtimeMisc75 pts

Steganography challenge hiding a flag within a PNG image using LSB encoding. Solved with Stegsolve and custom Python extraction script.

SteganographyLSB EncodingPNG Analysis+2
cyberhub2024-06
Read

DC: 1

Medium
VulnHubWeb

Exploiting a Drupal 7 installation vulnerable to Drupalgeddon2 (SA-CORE-2018-002) for RCE, then escalating privileges via SUID find binary.

Drupalgeddon2CMS ExploitationSUID Abuse+2
cyberhub2024-02
Read