CrushFTP
Unauthenticated arbitrary file read and remote code execution in CrushFTP
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.
Timeline
Days relative to CVE publicationFirst public PoC 14 h after publication; added to CISA KEV 2 days after publication. First PoC: airbus-cert/CVE-2024-4040 (created 23 Apr 2024, found by us: backfilled).
PoC repositories
Found on GitHub.18 PoCs · 7 pending · 1 informational · 2 suspicious or fake
PoCs 18
Pending 7
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| safeer-accuknox/CrushFTP-cve-2024-4040-poc | 18 Sep 2024 +148 d | 0 | Pending · repository exceeds size limit via PoC Index
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| juanorts/CrushFTP10-Docker-CVE-2024-4040 | 5 Nov 2025 +1.5 y | 0 | Pending · repository exceeds size limit via PoC Index |
| cthhhhhh/CrushFTP-SSTI-LFI-Proof-of-Concept | 6 May 2026 +2.0 y | 0 | Pending · repository exceeds size limit |
| Sidjaz/CrushFTP-CVE-2024-4040-Proof-of-Concept | 8 May 2026 +2.0 y | 0 | Pending · repository exceeds size limit via PoC Index |
| qt2a23/CVE-2024-4040 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| tr4c3rs/CVE-2024-4040-RCE-POC | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| tucommenceapousser/CVE-2024-4040-Scanner | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| 0xN7y/CVE-2024-4040 | 28 Apr 2024 +5.7 d | 0 | Informational · write-up |
Suspicious or fake 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| getdrive/PoC | 5 Aug 2023 −261 d | 74 | Fake |
| entroychang/CVE-2024-4040 | 5 Jul 2024 +73 d | 3 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Metasploit | Metasploit auxiliary: CrushFTP Unauthenticated Arbitrary File Read (auxiliary/gather/crushftp_fileread_cve_2024_4040) | 30 Apr 2024 | 14 Nov 2026 |
| nuclei template | nuclei template: CrushFTP VFS - Sandbox Escape LFR | 23 Apr 2024 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 21 PoC reposPOST /WebInterface/function/
- Query
c2f=command=zippath=names=/acommand=getUserNameformat=JSONOBJnames=*names=/bbb- Key headers
Authorization: AWS4-HMAC-SHA256 Credential={var}/Cookie: currentAuth={var}; CrushAuth={var}Cookie: CrushAuth={var}; currentAuth={var}Origin: {var}Referer: http://{var}/WebInterface/login.html- Body markers
command=getUserInfopath=%2Frandom=0.24949370009952042c2f=command=existspaths=command=loginusername=password=encoded=truelanguage=enrandom=0.34712915617878926inapplication/x-www-form-urlencoded- Ports
- 5000, 8080, 10808
- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Chrome/122.0.0.0 Safari/537.36Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0- Seen in
- 8 repos: Mohammaddvd/CVE-2024-4040, Stuub/CVE-2024-4040-SSTI-LFI, Stuub/CVE-2024-4040-SSTI-LFI-PoC, dhammerg/CVE-2024-4040, ill-deed/CrushFTP-CVE-2024-4040-illdeed, jakabakos/CVE-2024-4040-CrushFTP-File-Read-vulnerability, rahisec/CVE-2024-4040, tongchengbin/nuclei-sdk
- Evidence
- Mohammaddvd/CVE-2024-4040/CVE-2024-4040.py:10 Stuub/CVE-2024-4040-SSTI-LFI/crushed.py:105 Stuub/CVE-2024-4040-SSTI-LFI-PoC/crushed.py:105 dhammerg/CVE-2024-4040/CVE-2024-4040.py:10 ill-deed/CrushFTP-CVE-2024-4040-illdeed/CVE-2024-4040.py:55 jakabakos/CVE-2024-4040-CrushFTP-File-Read-vulnerability/exploit.py:32
GET /WebInterface/
- Ports
- 5000, 9090, 10808
- Seen in
- 5 repos: Stuub/CVE-2024-4040-SSTI-LFI, Stuub/CVE-2024-4040-SSTI-LFI-PoC, airbus-cert/CVE-2024-4040, rahisec/CVE-2024-4040, tongchengbin/nuclei-sdk
- Evidence
- Stuub/CVE-2024-4040-SSTI-LFI/crushed.py:51 Stuub/CVE-2024-4040-SSTI-LFI-PoC/crushed.py:51 airbus-cert/CVE-2024-4040/scan_host.py:55 rahisec/CVE-2024-4040/cve-2024-4040-nuclei-template.yaml:46 tongchengbin/nuclei-sdk/example/CVE-2024-4040.yaml:50
GET /WebInterface/function/
- Query
command=zipc2f=path=names=*/WebInterface/function/?command=zipnames=*- Ports
- 8080
- Seen in
- 4 repos: Mohammaddvd/CVE-2024-4040, Mufti22/CVE-2024-4040, dhammerg/CVE-2024-4040, rbih-boulanouar/CVE-2024-4040
- Evidence
- Mohammaddvd/CVE-2024-4040/CVE-2024-4040.py:20 Mohammaddvd/CVE-2024-4040/CVE-2024-4040.py:33 Mufti22/CVE-2024-4040/poc.py:17 Mufti22/CVE-2024-4040/poc.py:31 dhammerg/CVE-2024-4040/CVE-2024-4040.py:20 dhammerg/CVE-2024-4040/CVE-2024-4040.py:33
POST /WebInterface/
- Key headers
Cookie: CrushAuth={var}; currentAuth={var}- Ports
- 8080
- Seen in
- 3 repos: Stuub/CVE-2024-4040-SSTI-LFI, Stuub/CVE-2024-4040-SSTI-LFI-PoC, jakabakos/CVE-2024-4040-CrushFTP-File-Read-vulnerability
- Evidence
- Stuub/CVE-2024-4040-SSTI-LFI/crushed.py:82 Stuub/CVE-2024-4040-SSTI-LFI/crushed.py:130 Stuub/CVE-2024-4040-SSTI-LFI/crushed.py:152 Stuub/CVE-2024-4040-SSTI-LFI/crushed.py:199 Stuub/CVE-2024-4040-SSTI-LFI/crushed.py:227 Stuub/CVE-2024-4040-SSTI-LFI-PoC/crushed.py:82
POST /WebInterface/login.html
- Body markers
command=existspaths=inapplication/x-www-form-urlencoded- Ports
- 8080
- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36- Seen in
- 3 repos: 1ncendium/CVE-2024-4040, gotr00t0day/CVE-2024-4040, olebris/CVE-2024-4040
- Evidence
- 1ncendium/CVE-2024-4040/exploit.py:21 1ncendium/CVE-2024-4040/exploit.py:49 gotr00t0day/CVE-2024-4040/CVE-2024-4040.py:53 gotr00t0day/CVE-2024-4040/CVE-2024-4040.py:64 olebris/CVE-2024-4040/CVE-2024-4040.py:26 olebris/CVE-2024-4040/CVE-2024-4040.py:37
GET /
- Query
a=1a=2a=3a=4a=5a=6a=7a=8a=9- Key headers
Url: http://{var}- Ports
- 5000, 10808
- Seen in
- 1 repo: tongchengbin/nuclei-sdk
- Evidence
- tongchengbin/nuclei-sdk/example/cyberpanel-rce.yaml:25 tongchengbin/nuclei-sdk/tests/templates/interactsh-requests-mc-and.yaml:15 tongchengbin/nuclei-sdk/tests/templates/interactsh-stop-at-first-match.yaml:11 tongchengbin/nuclei-sdk/tests/templates/interactsh-stop-at-first-match.yaml:12 tongchengbin/nuclei-sdk/tests/templates/interactsh-stop-at-first-match.yaml:13 tongchengbin/nuclei-sdk/tests/templates/interactsh-stop-at-first-match.yaml:14
GET /api/geoping/{var}
- Ports
- 5000, 10808
- Seen in
- 1 repo: tongchengbin/nuclei-sdk
- Evidence
- tongchengbin/nuclei-sdk/tests/templates/interactsh-requests-mc-and.yaml:11
PUT /dataBases/upgrademysqlstatus
- Key headers
Cookie: csrftoken={var}Referer: {var}X-Csrftoken: {var}- Body markers
"statusfile":"/dev/null; id; #""csrftoken"inapplication/json- Ports
- 5000, 10808
- Seen in
- 1 repo: tongchengbin/nuclei-sdk
- Evidence
- tongchengbin/nuclei-sdk/example/cyberpanel-rce.yaml:29
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/WebInterface/function/\?(?:.*&)?c2f=.*command=zip.*path=.*names=/a.*command=getUserName.*format=JSONOBJ.*names=\*.*names=/bbb
(?i)^/WebInterface/(?:[?#].*)?$
(?i)^/WebInterface/function/\?(?:.*&)?command=zip.*c2f=.*path=.*names=\*/WebInterface/function/\?command=zip.*names=\*
(?i)^/WebInterface/(?:[?#].*)?$
(?i)^/WebInterface/login\.html(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [5000,8080,10808] (msg:"GG PoC-Monitor CVE-2024-4040 CrushFTP CrushFTP exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/WebInterface/function/"; http.uri; content:"c2f="; http.uri; content:"command=zip"; http.uri; content:"path="; http.uri; content:"names=/a"; http.uri; content:"command=getUserName"; http.uri; content:"format=JSONOBJ"; http.uri; content:"names=*"; http.uri; content:"names=/bbb"; http.header; content:"Authorization: AWS4-HMAC-SHA256 Credential="; nocase; http.header; content:"Cookie: currentAuth="; nocase; http.header; content:"Cookie: CrushAuth="; nocase; http.header_names; content:"Origin"; nocase; http.header; content:"Referer: http://"; nocase; http.request_body; content:"command=getUserInfo"; http.request_body; content:"path=%2F"; http.request_body; content:"random=0.24949370009952042"; http.request_body; content:"c2f="; http.request_body; content:"command=exists"; http.request_body; content:"paths="; http.request_body; content:"command=login"; http.request_body; content:"username="; http.request_body; content:"password="; http.request_body; content:"encoded=true"; http.request_body; content:"language=en"; http.request_body; content:"random=0.34712915617878926"; reference:url,poc.griffinguard.io/cve/CVE-2024-4040; classtype:web-application-attack; sid:9154287; rev:1;)
alert http any any -> $HOME_NET [5000,9090,10808] (msg:"GG PoC-Monitor CVE-2024-4040 CrushFTP CrushFTP exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/WebInterface/"; reference:url,poc.griffinguard.io/cve/CVE-2024-4040; classtype:web-application-attack; sid:9313758; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2024-4040 CrushFTP CrushFTP exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/WebInterface/function/"; http.uri; content:"command=zip"; http.uri; content:"c2f="; http.uri; content:"path="; http.uri; content:"names=*/WebInterface/function/?command=zip"; http.uri; content:"names=*"; reference:url,poc.griffinguard.io/cve/CVE-2024-4040; classtype:web-application-attack; sid:9275079; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2024-4040 CrushFTP CrushFTP exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/WebInterface/"; http.header; content:"Cookie: CrushAuth="; nocase; reference:url,poc.griffinguard.io/cve/CVE-2024-4040; classtype:web-application-attack; sid:9101222; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2024-4040 CrushFTP CrushFTP exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/WebInterface/login.html"; http.request_body; content:"command=exists"; http.request_body; content:"paths="; reference:url,poc.griffinguard.io/cve/CVE-2024-4040; classtype:web-application-attack; sid:9852842; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: CrushFTP CrushFTP exploit attempt (CVE-2024-4040)
id: gg-pocmon-cve-2024-4040-9154287
status: experimental
description: Request pattern taken from public PoCs for CVE-2024-4040. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2024-4040
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/WebInterface/function/'
cs-uri-query|contains|all:
- 'c2f='
- 'command=zip'
- 'path='
- 'names=/a'
- 'command=getUserName'
- 'format=JSONOBJ'
- 'names=*'
- 'names=/bbb'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2024.4040
title: CrushFTP CrushFTP exploit attempt (CVE-2024-4040)
id: gg-pocmon-cve-2024-4040-9313758
status: experimental
description: Request pattern taken from public PoCs for CVE-2024-4040. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2024-4040
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/WebInterface/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2024.4040
title: CrushFTP CrushFTP exploit attempt (CVE-2024-4040)
id: gg-pocmon-cve-2024-4040-9275079
status: experimental
description: Request pattern taken from public PoCs for CVE-2024-4040. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2024-4040
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/WebInterface/function/'
cs-uri-query|contains|all:
- 'command=zip'
- 'c2f='
- 'path='
- 'names=*/WebInterface/function/?command=zip'
- 'names=*'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2024.4040
title: CrushFTP CrushFTP exploit attempt (CVE-2024-4040)
id: gg-pocmon-cve-2024-4040-9101222
status: experimental
description: Request pattern taken from public PoCs for CVE-2024-4040. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2024-4040
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/WebInterface/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2024.4040
title: CrushFTP CrushFTP exploit attempt (CVE-2024-4040)
id: gg-pocmon-cve-2024-4040-9852842
status: experimental
description: Request pattern taken from public PoCs for CVE-2024-4040. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2024-4040
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/WebInterface/login.html'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2024.4040