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

GoodGames

21 Feb 2022 · 14 min read · root access
GoodGames - maquina de Hack The Box

Executive summary — GoodGames is a very instructive Easy Linux box chaining SQLi → SSTI → RCE → Docker escape → SUID → root. A classic SQL injection on the login form leaks the administrator's hash; inside the internal admin panel, a Server-Side Template Injection in Flask/Jinja2 gives command execution —but inside a Docker container, not on the host—; and an unrestricted host-mounted volume lets us plant a SUID bash and jump to the real system as root. A great box for understanding why «root in a container» isn't the same as «root on the box».

PlatformHack The Box
Operating systemLinux
DifficultyEasy
StatusRetired
Target IP10.129.X.X

Attack map

[80] goodgames.htb → login
   │  SQLi (UNION) → admin hash → crack → "superadministrator"
   ▼
[internal-administration.goodgames.htb]  admin panel
   │  SSTI (Flask/Jinja2)  {{7*7}}→49  → RCE
   ▼
[DOCKER]  root@container  (172.19.0.2)
   │  /home/augustus mounted from host + SUID bash
   ▼
[SSH]  augustus@host → ./bash -p
   ▼
[ROOT]

1. Reconnaissance

As always, we start with a sweep of every TCP port, then a detailed scan of just the ones that are open:

nmap -p- -sS --min-rate 5000 10.129.X.X -oN all_ports.txt
nmap -p 22,80 -sC -sV 10.129.X.X -oN service_scan.txt

Why two passes:

  • -p- covers all 65535 ports so we don't miss a service on a non-standard port; --min-rate 5000 forces a high packet rate to keep the scan fast.
  • Once we know which ports are open, the second scan (-sC -sV) is slower but far more informative: it runs the default NSE scripts and fingerprints each service's version, which isn't worth doing against all 65535 ports.
22/tcp  open  ssh
80/tcp  open  http

Analysis: minimal surface —SSH plus a single web service—. With only one web port exposed, the entry point is almost certainly there.

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