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

Forest

12 Oct 2019 · 10 min read · root access
Forest - maquina de Hack The Box

Executive summary — Forest is a textbook Easy Active Directory Windows box: anonymous enumeration of the domain, AS-REP Roasting of svc-alfresco (no Kerberos pre-auth), WinRM access, and an ACL-abuse escalation — membership in Account Operators plus WriteDACL from the Exchange Windows Permissions group — to grant ourselves DCSync and dump the Administrator hash. An AS-REP → WinRM → BloodHound/ACL → PowerView/DCSync → PtH path.

PlatformHack The Box
Operating systemWindows (Active Directory)
DifficultyEasy
StatusRetired
Target IP10.129.8.78

Attack map

[53/88/135/139/389/445/464/593/3268/5985] Active Directory (DC) · anonymous SMB enumeration
   │  netexec --users → Administrator, svc-alfresco, sebastien, lucinda, andy, mark, santi...
   ▼
[AS-REP]  svc-alfresco without Kerberos pre-auth → GetNPUsers → $krb5asrep$
   │  john + rockyou.txt → «s3rvice»
   ▼
[WINRM]  svc-alfresco (Evil-WinRM)  → user.txt
   │  BloodHound: svc-alfresco → Account Operators (creates users) + Exchange Windows
   │  Permissions (WriteDACL over the domain)
   ▼
[ACL ABUSE]  create htbuser → add it to Exchange Windows Permissions →
             PowerView Add-DomainObjectAcl -Rights DCSync
   ▼
[DCSYNC]  secretsdump with htbuser → Administrator NTLM hash → Pass-the-Hash → root.txt

1. Environment setup

As with any Active Directory box, the first step is resolving the domain name. We add the DC to /etc/hosts so Kerberos/LDAP tooling can resolve it correctly:

sudo nano /etc/hosts
# add:
10.129.8.78 forest.htb.local htb.local forest

HTB IPs change between resets, so it's worth double-checking the current IP before starting.

🔒 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.