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

Bounty

16 Jun 2018 · 10 min read · root access
Bounty - maquina de Hack The Box

Executive summary — Bounty is an Easy Windows box with a very elegant trick: an IIS 7.5 upload form filters .aspx, but allows uploading a web.config that reconfigures the server itself to treat .config as an executable script — and the same file embeds classic ASP code that downloads and launches a reverse shell, giving RCE as merlin. That service account holds SeImpersonatePrivilege, so we escalate to SYSTEM by abusing a privileged COM service with JuicyPotato. Path: web.config → RCE → SeImpersonate → JuicyPotato → SYSTEM.

PlatformHack The Box
Operating systemWindows
DifficultyEasy
StatusRetired
Target IP10.129.26.226

Attack map

[80] IIS 7.5 → /transfer.aspx (file upload)
   │  filters .aspx, but allows uploading web.config → embedded ASP → RCE
   ▼
[SHELL]  bounty\merlin  (user.txt)
   │  whoami /priv → SeImpersonatePrivilege
   ▼
[SYSTEM]  JuicyPotato (SeImpersonate abuse)

1. Reconnaissance

Full port scan first, service enumeration second: on HTB Easy boxes the attack surface is usually small, and it pays off to rule out the rest quickly.

nmap -p- --min-rate 5000 -T4 10.129.26.226
nmap -p 80 -sC -sV 10.129.26.226
80/tcp  open  http  Microsoft IIS httpd 7.5

A single open port: 80/HTTP, served by IIS 7.5 with an ASP.NET backend. Confirms Windows, and that the entry point has to be the web application.

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