<- cd ../ (back to ~/writeups on the homepage)

Writeups

Case files from Hack The Box labs and CTF events — grouped by platform below. Full machine notes also live in l1ght-man/write-ups-and-notes on GitHub.

HTB Labs27 machines

Ghostlink

A self-hosted Gogs instance (vulnerable to CVE-2025-8110, but it needs credentials) is coerced into authenticating to a rogue listener. Responder captures svc_canary's NTLMv2 — uncrackable — so instead an NTLM relay with ntlmrelayx -socks / ghostsurf hijacks the authenticated browser session…

#htb #retired

platform htb

os
windows
diff
hard
date
2026-06-23
stat
solved
open case file →: Ghostlink3 min read

Nexus

A leftover git branch leaks a critical password, and an unrestricted PHP file upload (CVE-2026-38526) in the CMS admin TinyMCE endpoint gives RCE as www-data. A credential reused from an uploaded .env provides SSH access as jones for the user flag.

#htb #retired

platform htb

os
linux
diff
easy
date
2026-06-23
stat
solved
open case file →: Nexus2 min read

Helix

Foothold via unauthenticated Apache NiFi (CVE-2023-34468) — abusing the H2 database JDBC connector to load a malicious SQL script and get RCE as nifi. Lateral movement to operator via a leaked SSH private key found in NiFi's support bundles. Root via OPC UA manipulation of an industrial PLC…

#htb #retired

platform htb

os
linux
diff
medium
date
2026-05-09
stat
solved
open case file →: Helix3 min read

Logging

A known low-privilege domain user (wallace.everette) has SMB access to a world-readable Logs share, whose IdentitySync trace leaks the svc_recovery service-account password. svc_recovery is permitted to read the GMSA password of msa_health$; its NTLM hash gives a WinRM shell and the user flag.…

#htb #retired

platform htb

os
windows
diff
medium
date
2026-04-18
stat
solved
open case file →: Logging2 min read

Silentium

Exploit an auth bypass on a Flowise instance to trigger a password reset, then abuse CVE-2025-59528 (CustomMCP RCE) to get a shell inside a Docker container. Leak credentials from environment variables to SSH into the host as ben, then exploit CVE-2025-8110 (Gogs symlink RCE) to overwrite a git…

#htb #retired

platform htb

os
linux
diff
easy
date
2026-04-11
stat
solved
open case file →: Silentium3 min read

DevArea

Anonymous FTP exposes a Java service JAR that reveals a SOAP endpoint vulnerable to CVE-2022-46364 (Apache CXF SSRF/LFI), which leaks hardcoded Hoverfly credentials from a systemd service file. Those credentials authenticate against Hoverfly's admin API, where CVE-2025-54123 (middleware RCE)…

#htb #retired

platform htb

os
linux
diff
medium
date
2026-03-28
stat
solved
open case file →: DevArea7 min read

Kobold

An exposed MCPJam Inspector endpoint grants a shell as ben; a PrivateBin template LFI leaks Arcane admin credentials, and deploying a privileged container with the host filesystem mounted exposes the root flag.

#htb #retired

platform htb

os
linux
diff
easy
date
2026-03-21
stat
solved
open case file →: Kobold4 min read

VariaType

A variable-font generator feeds a .designspace file to Python fontTools, which is vulnerable to CVE-2025-66034 (arbitrary file write + XML injection); a PHP webshell injected through a CDATA section is written into the web root for RCE and a foothold.

#htb #retired

platform htb

os
linux
diff
medium
date
2026-03-14
stat
solved
open case file →: VariaType5 min read

Principal

The pac4j-jwt library (CVE-2026-29000) skips signature verification when a decrypted JWE wraps a PlainJWT (alg:none); forging an admin token with the server's exposed JWKS public key leaks a plaintext credential from /api/settings, which is the SSH password for svc-deploy. A local privilege…

#htb #retired

platform htb

os
linux
diff
medium
date
2026-03-12
stat
solved
open case file →: Principal2 min read

Snapped

CVE-2026-27944 against admin.snapped.htb pulls and decrypts an application backup, recovering credentials for a foothold. Local privilege escalation uses the snap-confine / systemd-tmpfiles TOCTOU race (CVE-2026-3888) to drop a SUID-root bash.

#htb #retired

platform htb

os
linux
diff
hard
date
2026-03-10
stat
solved
open case file →: Snapped4 min read

CCTV

ZoneMinder is vulnerable to CVE-2024-51482 (boolean-based SQL injection); dumping the zm.Users table and cracking the recovered hash gives credentials for a foothold.

#htb #retired

platform htb

os
linux
diff
easy
date
2026-03-07
stat
solved
open case file →: CCTV2 min read

pirate

Kerberoasting (after correcting clock skew) and a readable gMSA (gMSA_ADCS_prod$) give a WinRM foothold. Pivoting with Ligolo into the internal [REDACTED:IP]/24 segment exposes WEB01, which is coerced (PetitPotam / PrinterBug / DFSCoerce) and relayed to Active Directory Certificate Services to…

#htb #retired

platform htb

os
windows
diff
hard
date
2026-02-28
stat
solved
open case file →: pirate13 min read

Interpreter

Mirth Connect is vulnerable to CVE-2023-43208 (unauthenticated RCE), giving a shell. The Mirth database password exposes sedric's PBKDF2-SHA256 hash, which cracks to his credentials for user access.

#htb #retired

platform htb

os
linux
diff
medium
date
2026-02-21
stat
solved
open case file →: Interpreter3 min read

pterodactyl

The Pterodactyl panel v1.11.10 is vulnerable to CVE-2025-49132, an unauthenticated RCE via a PEAR pearcmd local-file-inclusion trick, landing a shell as the web user. Further enumeration and privilege escalation lead to root.

#htb #retired

platform htb

os
linux
diff
medium
date
2026-02-07
stat
solved
open case file →: pterodactyl2 min read

facts

A local file inclusion (CVE-2024-46987) reads an SSH private key; cracking its passphrase with john yields SSH access and the user flag.

#htb #retired

platform htb

os
linux
diff
easy
date
2026-01-31
stat
solved
open case file →: facts2 min read

Overwatch

A connection string recovered from SQLite artifacts gives MSSQL access as sqlsvc; the server is linked to SQL07, and coercing that linked server to authenticate to Responder leaks the cleartext sqlmgmt password. sqlmgmt has WinRM access (Pwn3d!) for the user flag.

#htb #retired

platform htb

os
windows
diff
medium
date
2026-01-24
stat
solved
open case file →: Overwatch1 min read

AirTouch

SNMP leak gives consultant SSH creds → crack WPA2-PSK to enter Tablets VLAN → exploit router web panel via session hijacking + file upload → pivot to gateway, extract EAP certs → evil twin WPA-Enterprise attack captures MSCHAPv2 hash → crack to enter Corp VLAN → SSH as remote, escalate to root.

#htb #retired

platform htb

os
linux
diff
medium
date
2026-01-17
stat
solved
open case file →: AirTouch2 min read

MonitorsFour

Recovered MD5 hashes crack to Cacti credentials; Cacti 1.2.28 is vulnerable to CVE-2025-24367 (authenticated RCE), landing a shell in the Cacti container. An unauthenticated Docker daemon API (:2375) reachable from the container lets you create a privileged exec and read the root flag off the…

#htb #retired

platform htb

os
windows
diff
easy
date
2025-12-06
stat
solved
open case file →: MonitorsFour2 min read

Fries

Provided credentials log into a pgAdmin 9.1.0 instance vulnerable to authenticated RCE (Metasploit pgadmin_query_tool_authenticated), yielding a shell as pgadmin. The container environment leaks PGADMIN_DEFAULT_PASSWORD, which is reused for SSH as svc. Privilege escalation captures an LDAP bind…

#htb #retired

platform htb

os
windows
diff
hard
date
2025-11-22
stat
solved
open case file →: Fries1 min read

Eighteen

Eighteen is a Windows Active Directory machine running on Server 2025. Initial access is gained through MSSQL login impersonation to access a financial planning database, where a PBKDF2 password hash is cracked to obtain domain credentials. Privilege escalation abuses a GenericAll ACL and the…

#htb #retired

platform htb

os
windows
diff
easy
date
2025-11-15
stat
solved
open case file →: Eighteen3 min read

NanoCorp

Foothold via a malicious .library-ms file uploaded to a hiring portal, which coerces NTLM authentication from the DC and leaks web_svc credentials. AD ACL abuse lets me add web_svc to IT_Support and reset monitoring_svc's password, then authenticate to WinRM via Kerberos for user. Root comes…

#htb #retired

platform htb

os
windows
diff
hard
date
2025-11-08
stat
solved
open case file →: NanoCorp4 min read

Conversor

A document-conversion service processes attacker-supplied XSLT; an <xsl:document> sink writes a Python reverse shell into a scripts directory that a cron job runs every minute, granting a shell. Credentials pulled from a local users.db advance to the user.

#htb #retired

platform htb

os
linux
diff
easy
date
2025-10-25
stat
solved
open case file →: Conversor2 min read

Hercules

Foothold comes through LDAP injection on the login portal, leaking credentials stored in user description fields, followed by LFI to extract ASP.NET machineKey values and forge an admin auth cookie. From there, the chain runs through NTLMv2 hash capture via malicious ODT upload, Shadow…

#htb #retired

platform htb

os
windows
diff
insane
date
2025-10-18
stat
solved
open case file →: Hercules13 min read

Expressway

Enumeration flags an IKE/IPsec VPN whose aggressive mode leaks a crackable pre-shared key via ike-scan, yielding SSH access; privilege escalation abuses a vulnerable sudo (CVE-2025-61984 / CVE-2025-61985) to reach root.

#htb #retired

platform htb

os
linux
diff
easy
date
2025-09-20
stat
solved
open case file →: Expressway2 min read

CodePartTwo

A js2py sandbox escape (CVE-2024-28397) gives RCE and a shell; a cracked MD5 from a local SQLite database provides SSH as marco, who can run npbackup-cli as root via sudo — abused for the root flag.

#htb #retired

platform htb

os
linux
diff
easy
date
2025-08-16
stat
solved
open case file →: CodePartTwo3 min read

Cobblestone

A UNION-based SQL injection with FILE privilege writes a PHP webshell to the webroot for RCE and a foothold. Privilege escalation abuses a root-run XML-RPC service vulnerable to template injection — a __import__('os').popen(...) payload executes as root to read the flag.

#htb #retired

platform htb

os
linux
diff
insane
date
2025-08-09
stat
solved
open case file →: Cobblestone1 min read

Fireflow

A Langflow instance is vulnerable to CVE-2025-33017, giving RCE as www-data. A password sitting in the service environment lets you pivot by SSH to the user nightfall.

#htb #retired

platform htb

os
linux
diff
medium
date
—
stat
solved
open case file →: Fireflow3 min read

Securinets ENIT — Cat the Flag v3■ 1st place9 challenges

Cat Jail v3: Paws Off

A "beat me 10 times in a row" Nim-like fish game with take and split moves under a per-move timeout. Model it as an impartial combinatorial game and compute Sprague-Grundy values to force a win every round, driven by an automated client.

#ctf #misc #game-theory #sprague-grundy

event securinets enit

cat
misc
pts
—
date
2026-10-11
stat
solved
open case file →: Cat Jail v3: Paws Off2 min read

DNS

All 9 flags live in DNS records on the enitt.online zone — no web exploitation. The names are protocol- and record-type-themed, reached by guessing DNS/email-security concepts or by following the DNS graph: MX target, CNAME chain, SRV pivot.

#ctf #recon #dns #osint

event securinets enit

cat
recon
pts
620
date
2026-10-11
stat
solved
open case file →: DNS4 min read

Don't Whisper

A web app transcribes uploaded audio with Whisper tiny.en and drops the transcription unescaped into a shell command. Natural speech can't produce shell metacharacters, so I invert the Whisper model with gradient descent to synthesize a 30-second waveform that greedily decodes to a command-injection payload — RCE as root.

#ctf #misc #ai-ml #adversarial #command-injection

event securinets enit

cat
misc
pts
1000
date
2026-10-11
stat
solved
open case file →: Don't Whisper6 min read

Jean Valjean

DFIR from a single Chrome History SQLite database. An intern wired a typosquatted npm package — a credential stealer — into a production SaaS that exfiltrates to a Cloudflare-fronted C2. Decode the obfuscated C2 config, sidestep the deliberately mis-spelled decoy endpoint, and hit the real flag-serving route.

#ctf #dfir #forensics #c2

event securinets enit

cat
dfir
pts
350
date
2026-10-11
stat
solved
open case file →: Jean Valjean3 min read

LayerUp

A stripped x86-64 ELF implements a custom stack-machine VM running 117 bytes of bytecode that folds your input into two 32-bit registers, printing Correct! only on a single 64-bit equality. The check is not hand-invertible, so I recover the flag with a meet-in-the-middle search.

#ctf #reversing #vm #mitm

event securinets enit

cat
rev
pts
370
date
2026-10-11
stat
solved
open case file →: LayerUp5 min read

NotesVault

Admin account takeover. A client-side slug validator blocks ../ but not raw tab/newline/CR, which browsers strip while parsing a URL. Combined with a CSRF-less, no-old-password change endpoint and the draft feature, the admin bot changes its own password to one I pick — log in as admin and read the flag.

#ctf #web #account-takeover #csrf

event securinets enit

cat
web
pts
170
date
2026-10-11
stat
solved
open case file →: NotesVault2 min read

Painted

A GIF-only avatar uploader exposes a ?check= parameter that reaches file_exists(), which happily accepts the phar:// wrapper — a PHAR metadata-deserialization sink. With no source and only a boolean existence oracle, I rebuilt the POP chain entirely blind by weaponizing PHP display_errors, then turned the arbitrary file write into RCE. (700 pts, 0 solves.)

#ctf #web #phar #deserialization

event securinets enit

cat
web
pts
700
date
2026-10-11
stat
solved
open case file →: Painted6 min read

Quillpad

A PHP notes app includes pages by name (?page=) with no sanitization — Local File Inclusion. A WAF blocks php:// stream wrappers, so I poison the readable Apache access log via the User-Agent header and include the log for RCE, then read /flag.txt.

#ctf #web #lfi #log-poisoning

event securinets enit

cat
web
pts
—
date
2026-10-11
stat
solved
open case file →: Quillpad3 min read

RC(E)

An upload + render.php viewer include()s any path under /tmp. You can't get PHP tags past the scanner, so there are two paths to RCE: the unintended session.upload_progress trick, and the intended TOCTOU race between write and unlink.

#ctf #web #race-condition #toctou #lfi

event securinets enit

cat
web
pts
600
date
2026-10-11
stat
solved
open case file →: RC(E)7 min read

Notes1 entries

Sliver C2 — operator notes

Operator notes for the Sliver C2 framework.

#c2 #notes

type notes

kind
notes
tags
#c2
date
—
stat
reference
open case file →: Sliver C2 — operator notes1 min read

more writeups incoming

new case files land here after each solve, written once the machine or event is retired.