Skip to main content
Mallory
CriticalCISA KEVExploited in the wildPublic exploit

Unauthenticated RCE in Rejetto HTTP File Server via Template Injection

IdentifiersCVE-2024-23692CWE-1336· Improper Neutralization of Special…

CVE-2024-23692 is a critical template injection vulnerability in Rejetto HTTP File Server (HFS) affecting versions up to and including 2.3m; some reporting also lists 2.4.0 RC7 as affected. The flaw stems from improper neutralization of special elements used in the HFS template engine, allowing attacker-controlled input delivered in a specially crafted HTTP request to be interpreted by the template engine. Successful exploitation enables a remote, unauthenticated attacker to execute arbitrary commands on the underlying host. No user interaction is required. Public reporting indicates proof-of-concept exploit code is available and the vulnerability has been observed exploited in the wild.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation results in full remote code/command execution on the affected HFS server with the privileges of the HFS process, which can lead to complete compromise of confidentiality, integrity, and availability of the host. Observed post-exploitation activity includes reconnaissance, malware deployment, installation of coin miners, RAT/backdoor deployment, creation of local accounts for persistence and RDP access, data theft, and broader follow-on compromise. The vulnerability is rated CVSS v3.1 9.8 (Critical) and has been added to CISA's Known Exploited Vulnerabilities catalog.

Mitigation

If you can’t patch tonight, do this now.

If immediate migration is not possible, remove affected HFS instances from Internet exposure, restrict access to trusted networks only, and apply strict network segmentation and ingress filtering. Implement compensating controls such as reverse proxy/WAF filtering for suspicious crafted HTTP requests, enhanced logging and monitoring around HFS activity and child process creation, EDR coverage, and alerting for command execution, account creation, registry persistence changes, and unexpected process termination of hfs.exe. Conduct continuous monitoring for known exploitation and malware-delivery activity, and treat any Internet-exposed vulnerable instance as high risk for compromise.

Remediation

Patch, then assume compromise.

Upgrade or migrate away from vulnerable Rejetto HFS 2.x deployments immediately. The provided content indicates HFS 2.3m is unsupported and that no patch is available for HFS 2.x; users are advised to upgrade to a supported HFS 3.x release or replace the product with a maintained alternative. Because exploitation has been observed in the wild, remediation should include incident response actions on exposed or previously vulnerable systems: review logs, hunt for indicators of compromise, inspect for unauthorized accounts, persistence mechanisms, malware, and suspicious outbound connections, and rebuild or reimage compromised hosts as needed.
PUBLIC EXPLOITS

Exploits

8 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (2 hidden).

VALID 8 / 10 TOTALView more in app
CVE-2024-23692MaturityPoCVerified exploit

This repository contains a Python proof-of-concept exploit for CVE-2024-23692, which targets a Server-Side Template Injection (SSTI) vulnerability in a web application. The main script, 'CVE-2024-23692.py', reads a list of target URLs from 'xxx.txt', then sends specially crafted HTTP GET requests to each URL, attempting to execute the 'ipconfig /all' command on the server. If the response contains multiple 'RESULT' markers, the script considers the target vulnerable and logs the URL to 'vul_url'. The exploit uses multithreading for efficiency and routes requests through a local proxy at 127.0.0.1:7890. The README provides a sample HTTP request and describes the expected output. No specific product is named, but the exploit is tailored for systems vulnerable to CVE-2024-23692.

NanoWraithDisclosed Jun 11, 2024pythonnetwork
CVE-2024-23692_ExploitMaturityPoCVerified exploit

This repository provides a proof-of-concept (POC) exploit for CVE-2024-23692, a command execution vulnerability in Rejetto HFS (HTTP File Server) version 2.3 and below. The main exploit is implemented in 'poc.py', a Python script that takes a target URL and a command as arguments. It crafts a GET request to the HFS server, injecting a base64-encoded PowerShell command via the 'cmd' parameter in the URL. The script uses unique markers to extract and display the output of the executed command from the server's response. The exploit requires the target to be running a vulnerable version of HFS and accessible over the network. The repository also includes a README with a brief description and a .gitignore file. No hardcoded IPs or domains are present; the target URL is supplied by the user at runtime.

999gawkboyyDisclosed Mar 6, 2025pythonnetwork
CVE-2024-23692MaturityPoCVerified exploit

This repository contains a Python exploit script (exploit.py) targeting the Rejetto HTTP File Server (HFS) template injection vulnerability (CVE-2024-23692). The exploit allows remote, unauthenticated attackers to execute arbitrary system commands on vulnerable HFS servers (version 2.3m and earlier) by sending a specially crafted HTTP GET request. The script supports both single and batch exploitation modes, accepts a custom command to execute (defaulting to 'whoami'), and can save successful results to a file. The main attack vector is network-based, leveraging HTTP(S) requests to the target server. The repository also includes a README with detailed usage instructions and a LICENSE file. The exploit is operational, providing real command execution on the target, and is intended for authorized security testing and research.

vanboomqiDisclosed Jun 13, 2024pythonnetwork
CVE-2024-23692MaturityPoCVerified exploit

This repository is a Go-based exploit for CVE-2024-23692, targeting Rejetto HTTP File Server (HFS) versions <= 2.3 on Windows. The exploit leverages a template injection vulnerability in HFS to achieve unauthenticated remote command execution. The main entry point is 'hfs.go', which provides a CLI interface for detection, command execution, and DNSLOG-based out-of-band verification. The exploit constructs a specially crafted GET request to the target HFS server, injecting a payload that triggers the '.exec' template to run arbitrary system commands. The output is parsed and displayed to the user. For detection in environments where direct output is not possible, the tool supports DNSLOG verification using ceye.io or a custom DNSLOG service, configurable via 'config/config.ini'. The codebase is modular, with separate packages for configuration, DNSLOG interaction, HTTP client handling (including proxy support), and argument parsing. The exploit is operational, providing both detection and exploitation capabilities, and is not part of a larger framework.

BBD-YZZDisclosed Jun 17, 2024gonetwork
CVE-2024-23692-EXPMaturityPoCVerified exploit

This repository provides an exploit and detection template for CVE-2024-23692, a critical remote code execution vulnerability in Rejetto HTTP File Server (HFS). The repository contains three files: a Bash exploit script (CVE-2024-23692.sh), a Nuclei detection template (CVE-2024-23692.yaml), and a README.md with usage instructions. The Bash script takes a target URL and a command, crafts a malicious HTTP GET request exploiting template injection in HFS, and executes arbitrary commands on the target using PowerShell, returning the output. The Nuclei template is designed for automated detection, sending a similar payload and checking for DNS interactions and response content. The exploit is operational, providing real command execution on vulnerable targets, and is suitable for both manual and automated exploitation or detection.

0x20cDisclosed Jun 18, 2024bashyamlnetwork
CVE-2024-23692-RCE-in-Rejetto-HFSMaturityPoCVerified exploit

This repository provides exploit and detection scripts for CVE-2024-23692, a critical unauthenticated remote code execution (RCE) vulnerability in Rejetto HTTP File Server (HFS) version 2.3m. The repository contains three files: a README.md with usage instructions and vulnerability details, 'exploit.py' (the main exploit script), and 'detect.py' (a detection script). Both Python scripts construct a specially crafted HTTP GET request targeting the vulnerable HFS server. The exploit script allows the user to specify a target IP, port, and arbitrary command to execute on the server, leveraging the '.exec' template feature in HFS to achieve code execution. The detection script uses a default harmless command ('calc') to check for vulnerability. The exploit is unauthenticated and works over the network, requiring only that the target HFS instance is accessible. No hardcoded IPs or domains are present; the scripts are generic and require user-supplied targets.

jakabakosDisclosed Jun 13, 2024pythonnetwork
CVE-2024-23692MaturityPoCVerified exploit

This repository provides a proof-of-concept (POC) exploit for CVE-2024-23692, a critical unauthenticated remote code execution vulnerability in Rejetto HTTP File Server (HFS) version 2.3m. The main exploit is implemented as a Bash script (CVE-2024-23692.sh) that takes a target URL and a command to execute. The script crafts a malicious HTTP GET request, injecting a base64-encoded PowerShell command via the vulnerable endpoint. If the target is vulnerable, the command is executed on the server, and the output is returned to the attacker. The repository includes a README with usage instructions and context about the vulnerability, and a LICENSE file. The exploit is straightforward, does not require authentication, and targets Windows systems running HFS 2.3m. No hardcoded IPs or domains are present; the user supplies the target URL. The attack vector is network-based, exploiting the HTTP interface of the HFS server.

verylazytechDisclosed Sep 15, 2024bashnetwork
CVE-2024-23692MaturityPoCVerified exploit

This repository provides a Bash exploit script (CVE-2024-23692.sh) targeting the Rejetto HFS (HTTP File Server) vulnerability CVE-2024-23692, a server-side template injection (SSTI) flaw that allows remote code execution. The script takes three arguments: the target server's IP address, port, and a command to execute. It crafts a malicious HTTP GET request exploiting the SSTI vulnerability, sending it to the target using netcat. The README.md explains the vulnerability, its impact, usage instructions (including how to obtain a reverse shell using msfvenom), and mitigation steps. The exploit is operational, allowing arbitrary command execution or reverse shell access on vulnerable HFS servers. The repository is simple, containing the exploit script, a README, and an image directory.

Mr-r00t11Disclosed Jun 14, 2024bashnetwork
EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
RejettoHttp File Serverapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

ACTIVITY FEED

Recent activity

7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence2

Every observed campaign linking this CVE to a named adversary.

Associated malware7

Malware families riding this exploit, with evidence and IOCs.

Detection signatures2

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity1

Community discussion across Reddit, Mastodon, and other social sources.