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

Facts

31 Jan 2026 · 9 min read · root access
Facts - maquina de Hack The Box

Executive summary — Facts is a Linux machine that isn't solved with a single exploit, but by chaining misconfigurations: a vulnerable web app leaks AWS credentials, those credentials grant access to an internal S3 store (a MinIO instance) holding a private SSH key, and once inside, a legitimate binary (facter) runnable as root enables the final escalation. A very realistic Web → Cloud → SSH → Root path.

PlatformHack The Box
Operating systemLinux
DifficultyEasy
StatusRetired
Target IP10.129.15.164

Attack map

[80/HTTP]  Camaleon CMS 2.9.0
   │  CVE-2025-2304 (IDOR) → temporary admin → credential dump
   ▼
[AWS]  S3 keys leaked in the backend
   │  point the endpoint at  facts.htb:54321
   ▼
[S3/MinIO]  bucket "internal" → .ssh/id_ed25519  (+ authorized_keys)
   │  download the private key · the user is "trivia"
   ▼
[SSH]  trivia@facts.htb   (passphrase: dragonballz)
   │  sudo -l  →  (ALL) NOPASSWD: /usr/bin/facter
   ▼
[ROOT]  custom Ruby fact → exec("/bin/bash -p")

1. Reconnaissance

We start by mapping the attack surface. We run an nmap scan with default scripts and version detection:

nmap -Pn -n -sC -sV -T4 10.129.15.164

Why these flags:

  • -Pn → skip host discovery ping; assume the host is up (HTB usually blocks ICMP).
  • -n → no DNS resolution, faster scan.
  • -sC → run the default NSE scripts (banners, HTTP titles, etc.).
  • -sV → identify each service's version.
  • -T4 → aggressive timing template (fast but not reckless).

Relevant result: port 80/tcp (HTTP) is open.

Analysis: with a single web port exposed, the entry vector is almost certainly the web application. All initial enumeration focuses 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.