Aero
Executive summary — Aero chains two 2023 CVEs without ever touching a password: a Windows 11 theme portal that automatically processes any file uploaded by an anonymous user is vulnerable to CVE-2023-38146 ("ThemeBleed"), a TOCTOU race condition in the Windows theme engine that executes an arbitrary DLL while bypassing Authenticode signature verification, loaded from an attacker-controlled SMB share. The resulting domain-user access is escalated to NT AUTHORITY\SYSTEM with CVE-2023-28252, a privilege-escalation 0-day in the CLFS (Common Log File System) driver that was exploited in the wild by the Nokoyawa ransomware before being patched.
| Platform | Hack The Box |
| Operating system | Windows 11 Pro (Build 22000 / 21H2) |
| Difficulty | Medium |
| Status | Retired |
| Target IP | 10.129.229.128 |
| Hostname / web domain | aero / aerohub.htb |
| Starting point | anonymous (unauthenticated upload form) |
Attack map
Anonymous : theme-upload form on "Aero Theme Hub" (80/HTTP)
│ POST /upload (.theme / .themepack) -> internal bot "tests" each theme
▼
CVE-2023-38146 "ThemeBleed"
│ .theme -> UNC path to .msstyles on attacker SMB
│ PACKTHEM_VERSION=999 -> Windows loads <name>_vrf.dll
│ TOCTOU (ShareAccess 1/7 signature check vs. 5 LoadLibrary) -> Authenticode bypass
▼
aero\sam.emerson (reverse shell) <- user.txt
│ CVE-2023-28252 (CLFS driver, Nokoyawa 0-day)
│ exploit.exe <token offset> <flag> <program> (offset 1208, Build 22000)
│ kernel memory corruption in CLFS -> SYSTEM token theft
▼
[ROOT] NT AUTHORITY\SYSTEM <- root.txt
1. Reconnaissance
sudo nmap -p- --min-rate 2000 -T4 -Pn 10.129.229.128 -oN nmap/allports.txt
PORT STATE SERVICE
80/tcp open http
A minimal attack surface: a single open port. The response's TTL=127 already points to a Windows host before the version scan even runs.
sudo nmap -p 80 -sCV -Pn 10.129.229.128 -oN nmap/http.txt
80/tcp open http Microsoft IIS httpd 10.0
|_http-title: Aero Theme Hub
|_http-server-header: Microsoft-IIS/10.0
1.1 Web enumeration
The site is "Aero Theme Hub", described as "a free, community driven, Windows 11 theme repository". The interesting part is a theme upload form:
<form class="form-upload" id="uploadForm" method="post" enctype="multipart/form-data" action="/upload">
<input type="file" id="fileInput" accept=".theme, .themepack" name="files" required>
</form>
Two key details: the POST /upload endpoint accepts .theme / .themepack files in the files field, and any upload gets the exact same response:
echo 'test' > /tmp/t.theme
curl -s -F "files=@/tmp/t.theme" http://10.129.229.128/upload
{"success":true,"message":"Once we test your theme it will be added to the site!"}
The phrase "we test your theme" is the critical hint: there's a server-side process (a real Windows account) that opens or applies uploaded themes with no human involved and no prior authentication. Automatic processing of untrusted content submitted by an anonymous user is, almost always, a direct path to code execution — and on a freshly released Windows 11 host in 2023, the theme engine points straight at CVE-2023-38146 (ThemeBleed).
Resumen ejecutivo — Aero encadena dos CVEs de 2023 sin tocar una sola contraseña: un portal de temas de Windows 11 que procesa automáticamente cualquier fichero subido por un usuario anónimo es vulnerable a CVE-2023-38146 ("ThemeBleed"), una condición de carrera TOCTOU en el motor de temas que permite ejecutar una DLL arbitraria saltándose la verificación de firma Authenticode, cargada desde un recurso SMB bajo control del atacante. El acceso obtenido como usuario de dominio se escala a NT AUTHORITY\SYSTEM con CVE-2023-28252, un 0-day de elevación de privilegios en el driver CLFS (Common Log File System) que fue explotado in the wild por el ransomware Nokoyawa antes de ser parcheado.
| Plataforma | Hack The Box |
| Sistema operativo | Windows 11 Pro (Build 22000 / 21H2) |
| Dificultad | Medium |
| Estado | Retired |
| IP objetivo | 10.129.229.128 |
| Hostname / dominio web | aero / aerohub.htb |
| Punto de partida | anónimo (formulario de subida sin autenticación) |
Mapa del ataque
Anónimo : formulario de subida de temas en "Aero Theme Hub" (80/HTTP)
│ POST /upload (.theme / .themepack) -> bot interno "testea" cada tema
▼
CVE-2023-38146 "ThemeBleed"
│ .theme -> ruta UNC a .msstyles en SMB del atacante
│ PACKTHEM_VERSION=999 -> Windows carga <nombre>_vrf.dll
│ TOCTOU (ShareAccess 1/7 firma vs. 5 LoadLibrary) -> bypass Authenticode
▼
aero\sam.emerson (reverse shell) <- user.txt
│ CVE-2023-28252 (CLFS driver, 0-day de Nokoyawa)
│ exploit.exe <token offset> <flag> <programa> (offset 1208, Build 22000)
│ corrupción de kernel CLFS -> robo de token SYSTEM
▼
[ROOT] NT AUTHORITY\SYSTEM <- root.txt
1. Reconocimiento
sudo nmap -p- --min-rate 2000 -T4 -Pn 10.129.229.128 -oN nmap/allports.txt
PORT STATE SERVICE
80/tcp open http
Superficie de ataque mínima: un único puerto abierto. El TTL=127 de la respuesta ya apunta a un sistema Windows antes incluso del escaneo de versión.
sudo nmap -p 80 -sCV -Pn 10.129.229.128 -oN nmap/http.txt
80/tcp open http Microsoft IIS httpd 10.0
|_http-title: Aero Theme Hub
|_http-server-header: Microsoft-IIS/10.0
1.1 Enumeración web
La web es "Aero Theme Hub", descrita como "a free, community driven, Windows 11 theme repository". La pieza interesante es un formulario de subida de temas:
<form class="form-upload" id="uploadForm" method="post" enctype="multipart/form-data" action="/upload">
<input type="file" id="fileInput" accept=".theme, .themepack" name="files" required>
</form>
Dos detalles clave: el endpoint POST /upload acepta ficheros .theme / .themepack en el campo files, y la respuesta a cualquier subida es siempre el mismo mensaje:
echo 'test' > /tmp/t.theme
curl -s -F "files=@/tmp/t.theme" http://10.129.229.128/upload
{"success":true,"message":"Once we test your theme it will be added to the site!"}
La frase "we test your theme" es la pista crítica: hay un proceso del lado del servidor (una cuenta real de Windows) que abre o aplica los temas subidos, sin intervención humana ni autenticación previa. Procesamiento automático de contenido no confiable aportado por un usuario anónimo es, casi siempre, una vía directa de ejecución de código — y en un host Windows 11 recién publicado en 2023, el motor de temas apunta de inmediato a CVE-2023-38146 (ThemeBleed).
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.
Root Access desbloquea el contenido que no puedes ver — todo lo demás de la web ya está abierto.
Ver planes de Root Access¿Sin cuenta? Crea una gratis y luego mejora desde tu consola.