Skip to content
RCE Write-up Intermediate

CVE-2024–23692: A Critical Vulnerability in Rejetto HTTP File Server

Rejetto HTTP File Server up to version 2.3m contains a template injection flaw that lets an unauthenticated attacker run arbitrary commands on the server. The article states this allows remote code execution with the privileges of the user running the HFS process.

elniak Follow

Published on infosecwriteups.com

Staying on top of the latest vulnerabilities is critical in the ever-evolving cybersecurity landscape. One such vulnerability that has been making waves recently is CVE-2024–23692, a critical flaw in Rejetto HTTP File Server (HFS) version 2.3m.

ElNiak, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the template engine does not neutralise special template syntax supplied in HTTP requests, so attacker-controlled input is evaluated as template code.

Impact

An unauthenticated remote attacker could execute arbitrary commands on the server with the privileges of the HFS process, potentially leading to full compromise of the host.

What the attacker needed

Network access to the HFS server; no authentication required

The fix

Upgrade to Rejetto HFS version 3, which addresses the vulnerability; if that is not possible, apply vendor mitigations or discontinue use of version 2.3m.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This is a flaw in a small file-sharing program called Rejetto HFS. The program builds web pages using a template system, and it fails to stop users from inserting their own template instructions into a request. An attacker can send a crafted request that makes the server run a command of their choosing, without needing to log in.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by elniak

View all

28 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.