Delivery
Executive summary — Delivery is an Easy Linux box that isn't solved with a technical exploit but by chaining logic flaws: osTicket is used as an indirect mailbox (
<ticketID>@delivery.htb) to bypass Mattermost's email verification and get in; inside, an internal channel leaksmaildeliverer's SSH credentials and the hint that root's password is a variation of «PleaseSubscribe!». A Mattermost configuration file exposes its database credentials, which we use to dump root's bcrypt hash; with the hint in hand we apply hashcat rules instead of brute force to crack the password, which turns out to be reused as the system's root password. An osTicket → Mattermost → SSH → MySQL → hashcat rules → root path.
| Platform | Hack The Box |
| Operating system | Linux |
| Difficulty | Easy |
| Status | Retired |
| Target IP | 10.129.23.103 |
Attack map
[80] delivery.htb + [helpdesk] osTicket + [8065] Mattermost
│ osTicket (guest): open a ticket → «<ticketID>@delivery.htb» mailbox
│ Check Ticket Status trusts email+ID → an unvalidated mail viewer
│ register on Mattermost with that email → read the confirmation in the ticket
▼
[Mattermost] internal channel leaks: maildeliverer SSH creds + hint «root ~ PleaseSubscribe!»
▼
[SSH] maildeliverer : Youve_G0t_Mail! (user.txt)
│ /opt/mattermost/config/config.json → mmuser:Crack_The_MM_Admin_PW
│ MySQL → Users table → «root» bcrypt hash
▼
[hashcat] base «PleaseSubscribe!» + best64 rules → PleaseSubscribe!21
▼
[ROOT] su - (password reuse) → root.txt
1. Reconnaissance
We start by mapping the attack surface with two nmap passes: a fast sweep across every TCP port, then a second one with scripts and version detection against the ports found.
nmap -p- --min-rate 10000 10.129.23.103
nmap -p22,80,8065 -sC -sV 10.129.23.103
22/tcp open ssh
80/tcp open http
8065/tcp open http (Mattermost)
Hypothesis: a public web port (80) plus a secondary application (8065) plus open SSH is a very typical pattern for an easy box: the entry point is the web app, and the end goal is reusable credentials for the system.
Resumen ejecutivo — Delivery es un Linux Easy que no se resuelve con un exploit técnico, sino encadenando fallos lógicos: osTicket se usa como buzón de correo indirecto (
<ticketID>@delivery.htb) para saltarse la verificación de email de Mattermost y entrar; dentro, un canal interno filtra credenciales SSH demaildeliverery la pista de que la contraseña de root es una variación de «PleaseSubscribe!». Un archivo de configuración de Mattermost expone las credenciales de su base de datos, de donde sacamos el hash bcrypt de root; con la pista aplicamos reglas de hashcat en vez de fuerza bruta y craqueamos la contraseña, que además está reutilizada como la del usuario root del sistema. Recorrido osTicket → Mattermost → SSH → MySQL → hashcat rules → root.
| Plataforma | Hack The Box |
| Sistema operativo | Linux |
| Dificultad | Easy |
| Estado | Retired |
| IP objetivo | 10.129.23.103 |
Mapa del ataque
[80] delivery.htb + [helpdesk] osTicket + [8065] Mattermost
│ osTicket (invitado): abrir ticket → buzón «<ticketID>@delivery.htb»
│ Check Ticket Status confía en email+ID → visor de correo sin validar
│ registrarse en Mattermost con ese correo → leer la confirmación en el ticket
▼
[Mattermost] canal interno filtra: creds SSH de maildeliverer + pista «root ~ PleaseSubscribe!»
▼
[SSH] maildeliverer : Youve_G0t_Mail! (user.txt)
│ /opt/mattermost/config/config.json → mmuser:Crack_The_MM_Admin_PW
│ MySQL → tabla Users → hash bcrypt de «root»
▼
[hashcat] base «PleaseSubscribe!» + reglas best64 → PleaseSubscribe!21
▼
[ROOT] su - (reutilización de contraseña) → root.txt
1. Reconocimiento
Empezamos mapeando la superficie de ataque con dos pasadas de nmap: una barrida rápida de todos los puertos TCP y una segunda con scripts y detección de versión sobre los puertos encontrados.
nmap -p- --min-rate 10000 10.129.23.103
nmap -p22,80,8065 -sC -sV 10.129.23.103
22/tcp open ssh
80/tcp open http
8065/tcp open http (Mattermost)
Hipótesis: web pública (80) + aplicación secundaria (8065) + SSH abierto es un patrón muy típico de máquina fácil: la entrada va por la web y el objetivo final es conseguir credenciales reutilizables para el sistema.
This content is Root Access only. Everything else on the site — the free tier, the whole public library — stays open.
See Root Access plansNo account? Create one free then upgrade from your console.
Este contenido es solo para Root Access. Todo lo demás del sitio — el nivel gratuito, toda la biblioteca pública — sigue abierto.
Ver planes de Root Access¿Sin cuenta? Crea una gratis y luego mejora desde tu consola.