MakeSense
Executive summary — MakeSense is a Medium Linux box centred on WordPress. The theme includes a «whisper» component (AI transcription) whose AES-GCM key is hardcoded in the client-side JavaScript: by encrypting our own payload we get a stored XSS that the admin bot runs when reviewing content in
wp-admin. With that execution we overwritefunctions.phpfrom the theme editor for persistent RCE aswww-data;wp-config.phpleaks database credentials reused by the Linux userwalter(SSH). Escalation abuses an internal OCR service running as root that saves results under whatever name the client requests — including the.phpextension — under its own docroot, served byphp -S.
| Platform | Hack The Box |
| Operating system | Linux (Ubuntu 24.04 / kernel 6.8) |
| Difficulty | Medium |
| Status | Retired |
| Target IP | <TARGET_IP> |
| tun0 (attacker) | <ATTACKER_IP> |
Attack map
[1] Recon -- 22 ssh, 443 Apache (WordPress "Agency LLC"); 80 y 8001 filtrados (solo internos)
|
[2] Enum WordPress -- tema "webagency" con componente "whisper" (transcripcion IA)
whisper-wrapper.js: clave AES-GCM hardcodeada + mapeo de simbolos para XSS
|
[3] Cifrar payload propio con la clave conocida -> save_voice_results (post_id valido) ->
el bot admin lo revisa en wp-admin -> Stored XSS ejecutado en su sesion
|
[4] XSS exfiltra el nonce -> sobrescribe functions.php via edit-theme-plugin-file (Theme Editor)
+-> webshell persistente -> RCE como www-data
|
[5] wp-config.php -- DB_USER/DB_PASSWORD reutilizadas por el usuario Linux walter (SSH) -> user.txt
|
[6] Servicio OCR interno (root, 127.0.0.1:8001) guarda archivos con nombre/extension libres
(incluido .php) bajo su docroot -> PNG con <?php ?> embebido -> OCR "lee" el texto ->
se guarda como .php -> ejecutado por php -S como root -> root.txt
1. Reconnaissance
ping -c 3 <TARGET_IP>
nmap -sV -sC -T4 -p- --min-rate 2000 -oN htb_full.txt <TARGET_IP>
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 9.6p1 Ubuntu 3ubuntu13.16
80/tcp filtered http
443/tcp open ssl/http Apache httpd 2.4.58 (Ubuntu)
|_http-title: Agency LLC
| ssl-cert: Subject: commonName=makesense.htb
|_http-generator: WordPress 7.0
8001/tcp filtered vcom-tunnel
The TLS certificate leaks the vhost
makesense.htb. The filtered ports 80 and 8001 are the first hint: likely only reachable from the host itself — worth remembering.
Attacker environment note: no passwordless
sudoon Kali → the vhost is resolved withcurl --resolveon every request instead of touching/etc/hosts.
curl -sk --resolve makesense.htb:443:<TARGET_IP> https://makesense.htb/
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.