
Python exploit script for CVE-2024-23692, a template injection RCE in Rejetto HFS 2.3m. Supports single and batch URL exploitation with custom command execution.
Rejetto HTTP File Server (HFS) is a lightweight HTTP file server widely used for file sharing and file transfer. CVE-2024-23692 is a template injection vulnerability that allows a remote, unauthenticated attacker to execute arbitrary commands on the affected system by sending specially crafted HTTP requests. As of the CVE assignment date, Rejetto HFS 2.3m is no longer supported.
We provide a Python script to exploit this vulnerability. Ensure the following dependencies are installed:
argparsehttp.clienturllib.parsepathlibconcurrent.futuresexploit.py.python exploit.py -url http://example.com:8080 -cmd "whoami"
-url: Target URL.-cmd: Command to execute (default: whoami).-o: File to save successful results (default: output.txt).
Batch URL Exploitation:Create a text file containing multiple URLs, e.g., urls.txt, one URL per line.
python exploit.py -r urls.txt -cmd "whoami" -o results.txt