Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-4040 PoC — Unauthenticated arbitrary file read and remote code execution in CrushFTP

Source
Associated Vulnerability
Title: Unauthenticated arbitrary file read and remote code execution in CrushFTP (CVE-2024-4040)
Description:A server side template injection vulnerability in CrushFTP in all versions before 10.7.1 and 11.1.0 on all platforms allows unauthenticated remote attackers to read files from the filesystem outside of the VFS Sandbox, bypass authentication to gain administrative access, and perform remote code execution on the server.
Description
A Dockerized setup for running a vulnerable CrushFTP 10 server instance (CVE-2024-4040).
Readme
# CrushFTP 10.0 Docker Deployment (vulnerable to CVE-2024-4040)

This repository provides a Dockerfile to build a Docker image and deploy a Linux container with a CrushFTP server that is vulnerable to the [CrushFTP VFS Sandbox Escape Vulnerability](https://nvd.nist.gov/vuln/detail/cve-2024-4040) (CVE-2024-4040).


> ⚠️ **Disclaimer**
> This repository is provided for educational and security research purposes only. The Docker image deploys a version of CrushFTP that is known to be vulnerable. Do not expose it to the internet or use it in production environments. The author is not affiliated with CrushFTP and assumes no responsibility for misuse.

---
## How to deploy the vulnerable CrushFTP server?

### 1. Build the image from the Dockerfile

```
docker build -t cve-2024-4040-crushftp10 .
```

### 2. Create and run the container from the image
```
docker run -dit -p 22:22 -p 21:21 -p 8080:8080 -p 9090:9090 -p 443:443 --name CVE-2024-4040-CrushFTP10 cve-2024-4040-crushftp10
```

The service should be now running on ports 21, 22, 443, 8080 and 9090.

## How to exploit the vulnerability?
I recommend trying out [Stuub](https://github.com/Stuub)'s [CVE-2024-4040-SSTI-LFI-PoC](https://github.com/Stuub/CVE-2024-4040-SSTI-LFI-PoC) proof of concept.
File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →