
Python proof-of-concept for CVE-2026-120491, a stored XSS in Wing FTP Server before 8.2.6 where a crafted nowpath value forges a connection ID rendered unescaped in the legacy Activity page.
This repository contains a bounded Python proof of concept for CVE-2026-120491. A logged-in Wing FTP web-client user can place a crafted nowpath value in live-connection data. On a vulnerable server, that value forges an XML connection ID that the legacy administrator Activity page inserts as HTML. An administrator viewing that page can execute the user's script.
I confirmed the issue on Wing FTP Server 8.2.5 Linux x86-64. The same reproduction was negative on 8.2.6 Linux x86-64, which Wing FTP released as a fix on October 9, 2026. The published CVE record describes versions before 8.2.6 as affected. My direct tests covered the two Linux builds above; I did not test Windows or every earlier version.
admin_connection_list.html?domain=<domain>. The page refreshes its connection list automatically. An already-open page can execute the marker on refresh; the administrator does not need to click a row.The script does not know or request administrator credentials. It does not issue an OS command, send a callback, or collect browser data. The xss mode only sets window.__wing009_poc in the administrator page.
First, open the legacy Activity page in a separate administrator browser session. From the web-client side, preview the inert XML payload:
python3 poc.py --base-url http://127.0.0.1:8081/ --mode xml
Then send a control request and the inert payload. The script prompts for the file-user password without printing it:
python3 poc.py --base-url http://127.0.0.1:8081/ --username <file-user> --mode xml --send
While the script holds the session open, inspect the legacy page's admin_get_lastconn.html response in the browser Network panel. The ordinary nowpath=/ control has one connection row for the user; the crafted request adds a second, well-formed connection whose ID is CVE_2026_120491. The requested thumbnail intentionally does not exist. Wing FTP records nowpath before thumbnail validation.
To confirm browser execution, run the harmless marker mode:
python3 poc.py --base-url http://127.0.0.1:8081/ --username <file-user> --mode xss --send
In the full administrator's legacy Activity page console, evaluate:
window.__wing009_poc
On my vulnerable 8.2.5 Linux test, it became "CVE_2026_120491" after the page refreshed. On the patched 8.2.6 Linux test, the crafted request did not forge a connection ID and the browser marker did not execute. A successful HTTP response from makethumb.html alone does not prove the vulnerability.
If the web-client session is already established, put its raw Cookie header value on one line in a local session.cookie file and use --cookie-file session.cookie in place of --username. The script does not log out a borrowed session. Keep that cookie file out of version control; .gitignore excludes *.cookie.
The script accepts a non-local target only when --allow-remote is supplied explicitly. It does not follow HTTP redirects. A newly created script session is logged out after the hold period, which defaults to 12 seconds. Use --hold-seconds if the administrator page needs more time to refresh.
Run the offline harness checks with python3 -m unittest -v test_poc. They verify payload structure, URL encoding, the local-host guard, and the control, login, and logout HTTP flow. They do not substitute for the administrator-browser observation above.
webclient/makethumb.html reads nowpath and updates the user's live connection before checking whether the thumbnail request is valid.]]>.<connection> whose <id> contains the marker, then reopens the directory CDATA. The XML remains parseable.admin_connection_list.html page reads the forged ID and inserts it into an HTML string without escaping it. In xss mode, an image error handler sets a browser variable. The modern Activity view rendered my test marker as text.I reported the issue privately to Wing FTP on October 5, 2026. The vendor confirmed it, released 8.2.6 on October 9, and agreed to October 29 for public technical disclosure. VulnCheck assigned and published CVE-2026-120491 on November 2, 2026 and credits Elijah Elliott as the finder.
Upgrade to 8.2.6 or later. The old administrator page was the tested browser execution path; relying on the modern UI alone is not a substitute for patching.