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

Bastard

18 Mar 2017 · 9 min read · root access
Bastard - maquina de Hack The Box

Executive summary — Bastard is a Medium Windows box with a classic chain: unpatched Drupal 7 falls to Drupalgeddon2 (CVE-2018-7600), an unauthenticated RCE that gives a command prompt, but only as the limited IUSR user. Uploading nc.exe via certutil yields a real reverse shell (user flag). systeminfo reveals a Windows Server 2008 R2 with zero hotfixes — a direct candidate for a kernel exploit: MS15-051 (CVE-2015-1701), shared over SMB to avoid permission issues, gives execution as SYSTEM.

PlatformHack The Box
Operating systemWindows Server 2008 R2
DifficultyMedium
StatusRetired
Target IP10.129.26.9

Attack map

[1] Recon -- 80/tcp http -> unpatched Drupal 7
        |
[2] Drupalgeddon2 (CVE-2018-7600) -- unauthenticated RCE -> drupalgeddon2>> prompt
      but only as nt authority\iusr, no real interactive shell
        |
[3] certutil -urlcache -- downloads nc.exe (native tool abuse) ->
      real reverse shell as IUSR  ->  user.txt
        |
[4] systeminfo -- Windows Server 2008 R2, Hotfix(s): N/A (unpatched)
        |
[5] MS15-051 (CVE-2015-1701) -- kernel exploit; shared over SMB
      (impacket-smbserver, avoids disk-write permission issues)
      +-> ms15-051x64.exe runs a second nc.exe as SYSTEM  ->  root.txt

1. Initial enumeration

nmap -sC -sV -p- 10.129.26.9 -oN nmap_bastard.txt

The most interesting port found is 80/tcp:

80/tcp open  http

Browsing to http://10.129.26.9, the web application is Drupal.

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