root@thehacksparrow:~/writeups$ SYSTEM ONLINE
root@sparrow:~/writeups$ cat eighteen.md
// writeups

Eighteen

15 Nov 2025 · 18 min read · root access
Eighteen - maquina de Hack The Box

Executive summary — Eighteen is a Windows Server 2025 domain controller (DC01.eighteen.htb) solved by chaining credential reuse with a cutting-edge Active Directory flaw. Starting from an assumed breach foothold, kevin's domain password turns out to also be his MSSQL login; from there we abuse SQL permissions (IMPERSONATE + DML) to dump the web app's admin hash, verify it offline, spray it against domain accounts and land adam.scott. The final escalation exploits BadSuccessor (CVE-2025-53779) against a dMSA to steal the Administrator NTLM hash. Path: MSSQL → web creds → WinRM → BadSuccessor → Root.

PlatformHack The Box
Operating systemWindows
DifficultyEasy
StatusRetired
Target IP10.129.33.24

Attack map

[80/HTTP]  Financial Planner (Flask behind IIS)
   │  probes negative; a pyodbc error leaks the MSSQL backend
   ▼
[1433/MSSQL]  kevin = SQL login (reused domain password)
   │  IMPERSONATE appdev → DML over financial_planner → dump the admin hash
   ▼
[creds]  Werkzeug hash verified offline → iloveyou1
   │  password spraying over WinRM
   ▼
[WinRM]  adam.scott:iloveyou1 (Pwn3d!) → user.txt · member of IT
   │  IT has CreateChild over OU=Staff (Windows 2025 domain)
   ▼
[BadSuccessor / CVE-2025-53779]  chisel SOCKS pivot + bloodyAD --prepatch
   │  the dMSA TGT reveals the Administrator NTLM hash
   ▼
[ROOT]  pass-the-hash as Administrator → root.txt

1. Reconnaissance

We start by mapping the attack surface with a full TCP port scan. There's an important speed nuance here:

nmap -p- --min-rate 500 -Pn -n -T3 --max-retries 3 10.129.33.24

Why slow it down: a first scan with --min-rate 3000 produced a false negative on 1433 due to overly aggressive rate-limiting. When the result looks suspiciously thin on a Windows/AD box, it's worth re-scanning slower with more retries before writing off services.

Open ports:

80/tcp    open  http      Microsoft IIS 10.0  (reverse proxy → Flask app "Financial Planner", eighteen.htb)
1433/tcp  open  ms-sql-s  Microsoft SQL Server 2022 RTM (16.0.1000)
5985/tcp  open  wsman     WinRM — host DC01, domain eighteen.htb, Windows Server 2025

Everything else (Kerberos 88, LDAP 389/636/3268, SMB 445, RDP 3389) is firewalled from the outside. DNS over UDP (53) does answer and confirms the SRV records _kerberos._tcp / _ldap._tcpdc01.eighteen.htb.

🔒 Clearance required

This content is Root Access only. Everything else on the site — the free tier, the whole public library — stays open.

See Root Access plans

No account? Create one free then upgrade from your console.