CrushFTP - Sandbox Escape (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.
psychologyCrowdSec Analysis
CVE-2024-4040 is a critical vulnerability in CrushFTP that enables server-side template injection, allowing unauthenticated remote attackers to execute code, bypass authentication for admin access, and read sensitive files from the filesystem.
CrowdSec has been tracking this vulnerability and its exploits since 15th of May 2024.
CrowdSec network data shows that most actors exploiting CVE-2024-4040 rely on broad, untargeted scans with minimal filtering. The activity is largely automated and opportunistic in nature. In addition, according to the CrowdSec network, attack volume against CVE-2024-4040 has dipped slightly compared to the previous week. Although still commonly targeted, the decline suggests a cooling-off period. Long-term relevance remains, but attention is waning.
Exploitation attempts typically involve requests to URLs containing /WebInterface/.
Full Intelligence Available
Connect your API key to access CrowdSec scores, exploit timelines, and attacker IPs.
| Event | Date |
|---|---|
| CVE Published | 2024-04-22 |
| CISA KEV | 2024-04-24 |
| CISA Remediation Deadline | 2024-05-01 |
| Rule Released | 2024-05-15 |
| CrowdSec First Seen | 2024-05-15 |
Related Weaknesses
The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Remediation & Protection
External References
- https://www.crushftp.com/crush11wiki/Wiki.jsp?page=Update
- https://www.rapid7.com/blog/post/2024/04/23/etr-unauthenticated-crushftp-zero-day-enables-complete-server-compromise/
- https://github.com/airbus-cert/CVE-2024-4040
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-4040.yaml