Manager
Executive summary — Manager is a Medium Active Directory box where the final escalation vector relies on Active Directory Certificate Services (AD CS). With RID brute and trivial password spraying (username=password) we get
operator, which authenticates to MSSQL; withoutxp_cmdshell,xp_dirtreelists the filesystem and locates a website backup leaking credentials forraven(user flag).ravendiscovers a misconfiguredSubCAtemplate (ENROLLEE_SUPPLIES_SUBJECT): after becoming a CA officer, enabling the template, requesting and manually approving a certificate asAdministrator, it authenticates via PKINIT and retrieves their NTLM hash for Pass-the-Hash.
| Platform | Hack The Box |
| Operating system | Windows |
| Domain | manager.htb |
| Difficulty | Medium |
| Status | Retired |
| CA | manager-DC01-CA |
| Target IP | <TARGET_IP> |
Attack map
[1] RID brute -> users -> password spraying (operator:operator)
|
[2] MSSQL as operator -- no xp_cmdshell, but xp_dirtree lists the filesystem ->
a website backup reachable over HTTP
|
[3] Backup leaks raven's credentials -> user.txt
|
[4] adPEAS/Certipy -- SubCA template with ENROLLEE_SUPPLIES_SUBJECT
raven adds itself as a CA officer + enables SubCA
|
[5] Request a cert impersonating administrator@manager.htb -- CERTSRV_E_TEMPLATE_DENIED
but the request IS created (Request ID) -> approve it manually as officer
|
[6] Retrieve administrator.pfx -> PKINIT (Certipy auth) -> Administrator's NTLM hash
(clock skew fixed with ntpdate)
|
[7] Pass-the-Hash (psexec.py) -> nt authority\system -> root.txt
1. Reconnaissance
echo "<TARGET_IP> manager.htb dc01.manager.htb ca.manager.htb" | sudo tee -a /etc/hosts
nmap -Pn -sC -sV <TARGET_IP> # DNS, Kerberos, LDAP, SMB, MSSQL(1433), HTTP, WinRM
These three hostnames (
manager.htb,dc01.manager.htb,ca.manager.htb) aren't added on a whim: later on, Certipy needs to resolve the DC and CA names to talk to the certificate's RPC/DCOM services. Without this entry in/etc/hosts,certipycommands fail with opaque errors likeFailed to resolveorFailed to get dynamic TCP endpoint for CertSvc, hard to tie back to DNS if you don't already know it.
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.