PoC Monitor
← All CVEs
CVE-2024-4040published 22 Apr 2024 19:21 UTCData: JSON · API

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.

First public PoC 14 hafter publication · 23 Apr 2024
Public PoCs2018 on GitHub · 2 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by CNA · CWE-1336
CISA KEV 24 Apr 20242 days after publication

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published22 Apr 2024 · t = 0First public PoC23 Apr 2024 · t+14hAdded to CISA KEV24 Apr 2024 · t+2d

First 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
RepositoryCreatedStarsAssessment
airbus-cert/CVE-2024-4040 23 Apr 2024 +14 h 59 Scanner
rbih-boulanouar/CVE-2024-4040 25 Apr 2024 +2.4 d 17 PoC
Mufti22/CVE-2024-4040 25 Apr 2024 +2.4 d 0 PoC
Stuub/CVE-2024-4040-SSTI-LFI 25 Apr 2024 +3 d 69 PoC
Stuub/CVE-2024-4040-SSTI-LFI-PoC 25 Apr 2024 +3 d 69 PoC
GraySignal/CVE-2024-4040-CrushFTP-server 29 Apr 2024 +6.6 d 0 PoC
Praison001/CVE-2024-4040-CrushFTP-server 29 Apr 2024 +6.6 d 0 PoC
Mohammaddvd/CVE-2024-4040 30 Apr 2024 +7.8 d 5 PoC
dhammerg/CVE-2024-4040 30 Apr 2024 +7.8 d 5 PoC
jakabakos/CVE-2024-4040-CrushFTP-File-Read-vulnerability 1 May 2024 +8.8 d 7 PoC
gotr00t0day/CVE-2024-4040 3 May 2024 +11 d 9 PoC
1ncendium/CVE-2024-4040 13 May 2024 +21 d 0 PoC
olebris/CVE-2024-4040 28 Jun 2024 +67 d 0 PoC
geniuszly/GenCrushSSTIExploit 30 Sep 2024 +161 d 8 PoC
geniuszlyy/GenCrushSSTIExploit 30 Sep 2024 +161 d 8 PoC
tongchengbin/nuclei-sdk 23 Oct 2024 +183 d 2 PoC via PoC Index
rahisec/CVE-2024-4040 23 Oct 2024 +183 d 0 Scanner
ill-deed/CrushFTP-CVE-2024-4040-illdeed 4 Jul 2025 +1.2 y 0 PoC
Pending 7
RepositoryCreatedStarsAssessment
safeer-accuknox/CrushFTP-cve-2024-4040-poc 18 Sep 2024 +148 d 0 Pending · repository exceeds size limit via PoC Index
Flags · score 15
  • owner account created less than 30 days before the repo

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
RepositoryCreatedStarsAssessment
0xN7y/CVE-2024-4040 28 Apr 2024 +5.7 d 0 Informational · write-up
Suspicious or fake 2
RepositoryCreatedStarsAssessment
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.

PoC characteristics

What to hunt for in your logs · from 21 PoC repos

POST /WebInterface/function/

Query
c2f= command=zip path= names=/a command=getUserName format=JSONOBJ names=* 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=getUserInfo path=%2F random=0.24949370009952042 c2f= command=exists paths= command=login username= password= encoded=true language=en random=0.34712915617878926 in application/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.36 Mozilla/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

POST /WebInterface/login.html

Body markers
command=exists paths= in application/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 /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" in application/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.

POST /WebInterface/function/
(?i)^/WebInterface/function/\?(?:.*&)?c2f=.*command=zip.*path=.*names=/a.*command=getUserName.*format=JSONOBJ.*names=\*.*names=/bbb
GET /WebInterface/
(?i)^/WebInterface/(?:[?#].*)?$
GET /WebInterface/function/
(?i)^/WebInterface/function/\?(?:.*&)?command=zip.*c2f=.*path=.*names=\*/WebInterface/function/\?command=zip.*names=\*
POST /WebInterface/
(?i)^/WebInterface/(?:[?#].*)?$
POST /WebInterface/login.html
(?i)^/WebInterface/login\.html(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /WebInterface/function/
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;)
GET /WebInterface/
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;)
GET /WebInterface/function/
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;)
POST /WebInterface/
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;)
POST /WebInterface/login.html
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.

POST /WebInterface/function/
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
GET /WebInterface/
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
GET /WebInterface/function/
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
POST /WebInterface/
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
POST /WebInterface/login.html
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