A detailed walkthrough of the HackTheBox 'Overwatch' machine. The attack chain starts with anonymous SMB access to a software share containing a .NET monitoring binary. Reverse engineering the binary reveals hardcoded SQL Server credentials and a WCF service with a PowerShell command injection vulnerability in the KillProcess method. Using the SQL credentials, a linked server pointing to an unresolvable host is discovered. By abusing CREATE_CHILD permissions on the AD-integrated DNS zone, a DNS record is added pointing SQL07 to the attacker's machine, capturing cleartext SQL authentication via Responder. These credentials grant WinRM access. Finally, the WCF KillProcess command injection on a localhost SOAP endpoint is exploited to achieve SYSTEM-level code execution, demonstrated through four different methods: raw SOAP, WebServiceProxy, WCF inline client, and a compiled WCF binary client.
Sort: