root@sparrow:~/writeups$ cat bastard.md
// writeups
Bastard
18 Mar 2017
· 6 min read
· root access
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
IUSRuser. Uploadingnc.exeviacertutilyields a real reverse shell (user flag).systeminforeveals 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.
| Platform | Hack The Box |
| Operating system | Windows Server 2008 R2 |
| Difficulty | Medium |
| Status | Retired |
| Target IP | <TARGET_IP> |
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- <TARGET_IP> -oN nmap_bastard.txt
The most interesting port found is 80/tcp:
80/tcp open http
Browsing to http://<TARGET_IP>, the web application is Drupal.
🔒 Clearance required
Root Access unlocks the content you can't see — everything else on the site is already open.
See Root Access plansNo account? Create one free then upgrade from your console.