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

Heist

10 Aug 2019 · 13 min read · root access
Heist - maquina de Hack The Box

Executive summary — Heist is a tour of credential hygiene without exploiting a single software vulnerability: a support web app with guest access leaks a ticket carrying an attached Cisco router configuration; its Type 7 passwords (reversible by design) and its enable secret 5 (crackable MD5crypt) get reused against the host's Windows accounts; and, once inside as a user, a running Firefox keeps the administrator's panel password sitting in its process memory — dumping it with procdump closes the chain up to Administrator.

PlatformHack The Box
Operating systemWindows Server 2019 (Build 17763)
DifficultyEasy
StatusRetired
Target IP10.129.96.157

Attack map

[80/HTTP] login.php?guest=true -> issues.php (ticket with attachment)
   |
   v
[Attachment] config.txt Cisco IOS -- password 7 (reversible XOR) + enable secret 5 (MD5crypt)
   |  decrypt + hashcat -m 500
   v
[Reuse] hazard:stealth1agent (SMB) -- Chase:Q4)sJu\Y8qz*A3?d (WinRM)
   v
[USER] Chase over WinRM -> user.txt
   |  firefox.exe running (owned by Chase)
   v
[procdump] Firefox process memory dump (466 MB)
   |  Select-String "login_password" in the dump
   v
[ROOT] admin@support.htb : 4dD!5}}x/re8]FBuZ == Administrator password -> root.txt

1. Reconnaissance

An ICMP ttl≈127 (128 minus one hop) points at Windows.

sudo nmap -p- --min-rate 3000 -T4 -Pn -oN nmap-allports.txt 10.129.96.157
80/tcp    open  http
135/tcp   open  msrpc
445/tcp   open  microsoft-ds
5985/tcp  open  wsman
49669/tcp open  unknown
sudo nmap -p80,135,445,5985 -sCV -Pn -oN nmap-services.txt 10.129.96.157
80/tcp   open  http   Microsoft IIS httpd 10.0
| http-title: Support Login Page          (redirects to login.php)
| http-cookie-flags: PHPSESSID (httponly flag not set)     <- IIS + PHP
445/tcp  open  microsoft-ds? (name:SUPPORTDESK domain:SupportDesk signing not required)
5985/tcp open  http   Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)     <- WinRM

IIS + PHP is an unusual pairing — the PHPSESSID cookie on IIS gives away a hand-rolled PHP application, a good candidate for the initial surface. No Active Directory ports (88/389/53): this is a standalone Windows server, not a DC. WinRM already open hints at the shell path once a valid credential for a Remote Management Users member turns up.

netexec smb 10.129.96.157 -u '' -p '' --shares       # STATUS_ACCESS_DENIED
netexec smb 10.129.96.157 -u 'guest' -p '' --shares  # STATUS_LOGON_FAILURE

SMB closed to null and guest sessions: the real entry point is the web app.

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