Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2024-2961-XXE-Exploit — CVE-2024-2961 (CNEXT) PHP file-read to RCE exploit adapted to an XXE/CTF channel | Kitploit
Tools/GitHubGitHub/qinglove777/cve-2024-2961-xxe-exploit
Vulnerability AnalysisExploitationWeb Application ExploitationCTFPayload DevelopmentBinary Exploitation
GitHubqinglove777/cve-2024-2961-xxe-exploit

CVE-2024-2961-XXE-Exploit

CVE-2024-2961 (CNEXT) PHP file-read to RCE exploit adapted to an XXE/CTF channel

View Repository
502 months agoNot yet reviewed
Share

CVE-2024-2961 (CNEXT) XXE Channel Adaptation Exploit Script

Adapts the PHP file-read -> RCE exploit script from Ambionics' official cnext-exploits to the SVG upload + XXE arbitrary file read scenario (PolarisCTF 2026 "Avatar Uploader" type challenges).

Prerequisites

  • Target: Linux + glibc < 2.39 (Ubuntu 20.04 requires < 2.31-0ubuntu9.15, fixed in USN-6737-1) + PHP (tested working on PHP 7.3)
  • Read primitive: Able to make PHP read an arbitrary path via XXE / LFI, and supports php://filter, data://, zlib (the script's check_vulnerable() will verify automatically)
  • Local: Python 3.10+, pip install -r requirements.txt (pwntools, ten, requests)

Differences from the Original (Adaptation Points)

  1. Remote class rewritten: Translates "make PHP read a path" into the challenge's XXE round-trip: upload an SVG containing an external entity -> update avatar_name -> request the parsing endpoint to echo back.
  2. Filter separator | -> /: When the XML entity URL contains |, libxml fails to parse (tested: DOMDocument returns an empty document); php://filter supports bare filters without a prefix separated by /, equivalent to read=a|b|c.
  3. LIBC_FILE changed to a relative path (runs on both Windows/Linux).
  4. download_file changed to use open() for writing (the Path exported by the ten library is a PosixPath subclass, which cannot be instantiated on Windows).

Usage

  1. Edit the Remote class at the top of the script: fill in the challenge API address, account, and password.
  2. Translate the target read primitive into Remote.send/download (the example implementation targets the "upload SVG + parse on view" interface form; adapt similarly for other forms).
  3. Run (the command produces no echo; use redirection to write a file and read it back, or use -s sleep timing to verify):
python cnext-exploit-xxe-polaris.py <url> '/readflag > /var/www/html/uploads/flag_out.txt' -s 2

After seeing EXPLOIT SUCCESS, use the read primitive to read the output file back.

Notes

  • For CTF competitions and security research in authorized environments only.
  • Upstream: https://github.com/ambionics/cnext-exploits (Charles Fol @cfreal_, Ambionics/LEXFO)
  • Vulnerability: CVE-2024-2961 (glibc iconv ISO-2022-CN-EXT out-of-bounds write), advisory GLIBC-SA-2024-0004; technical analysis: https://www.ambionics.io/blog/iconv-cve-2024-2961-p1
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    927
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    555
  • 3

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    360
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    357
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    324
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    289

Explore all tools

Browse our collection of tools

View all tools →