Odyssey
Executive summary — Odyssey (Insane) is a long chain across three hosts: a Linux web server, a Windows SQL server and a Windows Server 2025 domain controller. The entry point is AEGIS, a Node.js app that only accepts FIDO2/WebAuthn logins. A MongoDB aggregation filter that checks only top-level stages leaks invite tokens; a home-made authenticator registers against an attestation-free server, and a trusted
userHandlegrants Administrator. Prototype pollution unlocks raw LaTeX, TeX's own I/O primitives read the source, and a jsonpath-plus eval bug (CVE-2025-1302) gives a shell. Inside, MSSQL coercion, Shadow Credentials, a post-patch dMSA abuse, a DPAPI oracle in a custom .NET named-pipe service and a YAML deserialization gadget lead to an account with DCSync rights.
| Platform | Hack The Box |
| OS | Windows (domain odyssey.htb, DC dc01.odyssey.htb) with a Linux web front end |
| Difficulty | Insane |
| Status | Retired |
| Target IP | <TARGET_IP> (only 3000/tcp exposed) |
| Internal network | 172.16.0.10 DC01, 172.16.0.11 odyssey-db (MSSQL), 172.16.0.12 odyssey-web |
| Techniques | MongoDB aggregation injection, WebAuthn forgery, prototype pollution, LaTeX file read, CVE-2025-1302, MSSQL UNC coercion, Shadow Credentials, dMSA abuse, DPAPI oracle, YamlDotNet deserialization, DCSync |
Attack map
[3000/HTTP] AEGIS (Node/Express, MongoDB) -- WebAuthn-only login
| $lookup nested in $facet bypasses the pipeline filter -> pending_invites tokens
v
synthetic authenticator (attestation none) + userHandle 'admin' -> Administrator
| prototype pollution in merge filter -> pandoc +raw_attribute -> raw LaTeX
v
TeX \openin/\read file read -> source + MDS_DIAG_TOKEN -> jsonpath-plus RCE (CVE-2025-1302)
| webadmin; DB password reused for sudo -> root on odyssey-web; ligolo pivot
v
[172.16.0.11] MSSQL bulkadmin -> BULK INSERT UNC coercion -> svc-mssql (cracked)
| sysadmin -> xp_cmdshell -> SeImpersonate -> GodPotato (Defender evasion) -> SYSTEM
v
hive dump -> ODYSSEY-DB$ hash -> nested groups -> AddKeyCredentialLink -> svc-aegis-build
| dMSA 'Ouroboros' (post-patch BadSuccessor) -> svc-aegis-deploy, WinRM on DC01
v
AegisStreamSvc named pipe: DPAPI oracle -> operator key -> YAML deserialization -> svc-aegis-stream
| Rubeus tgtdeleg -> DCSync
v
Administrator NT hash -> Domain Admin -> ROOT
1. Reconnaissance
rustscan -a <TARGET_IP> --ulimit 5000 -- -sV -sC -oN scans/initial.txt
3000/tcp open http Node.js Express framework
|_http-title: Did not follow redirect to http://aegis.korvia.htb:3000/
A single port, an Express app redirecting to aegis.korvia.htb. Virtual host fuzzing (ffuf with Host: FUZZ.korvia.htb) finds nothing else, so everything lives on that one name. Directory brute force shows that every route redirects to /login, except one:
echo "<TARGET_IP> aegis.korvia.htb" | sudo tee -a /etc/hosts
gobuster dir -u http://aegis.korvia.htb:3000/ \
-w /usr/share/wordlists/seclists/Discovery/Web-Content/directory-list-lowercase-2.3-medium.txt
/login (Status: 200)
/account (Status: 302) [--> /login]
/dashboard (Status: 302) [--> /login]
/requests (Status: 302) [--> /login]
/onboard (Status: 400)
The app is AEGIS (“Sovereign Signing & Attestation Authority”) and the login page only offers a hardware authenticator: no username or password field. The WebAuthn API confirms it:
curl -s -X POST http://aegis.korvia.htb:3000/api/v1/auth/webauthn/auth/begin \
-H "Content-Type: application/json" -d '{}' | jq
# {"rpId":"aegis.korvia.htb","challenge":"vK2T...","allowCredentials":[],...}
curl -s http://aegis.korvia.htb:3000/onboard/test | grep -i "pending\|token\|invite"
# No matching record in pending_invites (token may have been redeemed, expired, or never issued).
The error names a collection, pending_invites, which smells like MongoDB. /onboard/<token> redeems invite tokens, so reading that collection would let us enrol ourselves as an operator.
Root Access unlocks the content you can't see — everything else on the site is already open.
See Root Access plansNo account? Create one free then upgrade from your console.