Exploit database

Vulnerability

CVE-2025-31161

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.1 · mitre

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Description

CrushFTP 10 before 10.8.4 and 11 before 11.3.1 allows authentication bypass and takeover of the crushadmin account (unless a DMZ proxy instance is used), as exploited in the wild in March and April 2025, aka "Unauthenticated HTTP(S) port access." A race condition exists in the AWS4-HMAC (compatible with S3) authorization method of the HTTP component of the FTP server. The server first verifies the existence of the user by performing a call to login_user_pass() with no password requirement. This will authenticate the session through the HMAC verification process and up until the server checks for user verification once more. The vulnerability can be further stabilized, eliminating the need for successfully triggering a race condition, by sending a mangled AWS4-HMAC header. By providing only the username and a following slash (/), the server will successfully find a username, which triggers the successful anypass authentication process, but the server will fail to find the expected SignedHeaders entry, resulting in an index-out-of-bounds error that stops the code from reaching the session cleanup. Together, these issues make it trivial to authenticate as any known or guessable user (e.g., crushadmin), and can lead to a full compromise of the system by obtaining an administrative account.

CVE Program

Exploit source choices

12 sources
immersive-labs-sec/cve-2025-31161
GH-7ccbe308f5089edb24f9783e9d0b7f3cGitHubUnofficial GitHub source

Proof of Concept for CVE-2025-31161 / CVE-2025-2825

2025-04-084 files · 48 stars
ghostsec420/shatteredftp
GH-b4e7f860c5b5690f76159cbfa36eef73GitHubUnofficial GitHub source

Shattered is a tool and POC for the new CrushedFTP vulns, CVE Exploit Script: CVE-2025-2825 vs CVE-2025-31161

2025-04-112 files · 13 stars
0xgh057r3c0n/cve-2025-31161
GH-b5b9e6318f0504f3603beca02cd0afa1GitHubUnofficial GitHub source

🛡️ CVE-2025-31161 - CrushFTP User Creation Authentication Bypass Exploit

2025-05-235 files · 5 stars
c4bsec/cve-2025-31161
GH-51d45193a601cf86bb92b7926a288906GitHubUnofficial GitHub source

c4bsec/cve-2025-31161 source repository

2025-10-215 files · 2 stars
f4dee-backup/cve-2025-31161
GH-bb39844aca34a1e1713930cfc2c57a2eGitHubUnofficial GitHub source

PoC CVE-2025-31161 - Authentication Bypass CrushFTP

2025-09-104 files · 2 stars
tx-one/cve-2025-31161
GH-b15bfd0a221277c365d86f033cdff866GitHubUnofficial GitHub source

CrushFTP CVE-2025-31161 Exploit Tool 🔓

2025-04-213 files · 2 stars
ch3m1cl/cve-2025-31161
GH-8adca2b7382a471898b60f203b09bb92GitHubUnofficial GitHub source

ch3m1cl/cve-2025-31161 source repository

2025-12-073 files · 1 stars
dairrow/cve-2025-31161
GH-a1885b068f44787c2e9b51429ed91120GitHubUnofficial GitHub source

PoC Authentication Bypass to RCE to Exploit CVE-2025-31161

2026-01-112 files · 1 stars
iteride/cve-2025-2825
GH-59e70b8e2787da471a87f75bd94ddd3aGitHubUnofficial GitHub source

iteride/cve-2025-2825 source repository

2025-09-238 files · 1 stars