Wing FTP Server wave (2 GHSAs): guessable admin session IDs and login names that run as Lua¶
Wave in one line: Wing FTP Server before 8.2.8 published two coordinated advisories that chain perimeter position to administrative control: session identifiers are derived from process, time, ServerID, and client-IP state so an unauthenticated attacker can enumerate candidate admin sessions with a license endpoint acting as a validity oracle, and login names are written unescaped into Lua session files so an LDAP-authenticated user's username becomes code executed later as the Wing FTP service account.
Published: 2026-11-23T15:32Z GitHub unreviewed batch (GHSA-cwpv-mq6q-jfw2 / CVE-2026-135171 critical 8.1, GHSA-94vr-5qx7-gx69 / CVE-2026-135170 high 7.5). GHSA package/version fields are empty across the wave (vendor-appliance fingerprinting pattern; band is "before 8.2.8" from the advisory text plus the vendor site). Not in KEV as of catalog 2026.11.23 (1790 entries), head-start window open. Wing FTP is a common on-prem file-transfer appliance with an admin web console, so this is a standing perimeter class.
Audience: pentesters and red-teamers on network/file-transfer appliances with an admin web UI, and bug hunters on self-hosted FTP/SFTP/WebDAV servers.
Authorized validation only
Run every proof against your own lab instance of Wing FTP (or an explicitly approved customer window). Session-ID analysis belongs against sessions you created yourself; never hijack or replay a live third-party administrator session. For the Lua leg, use a disposable LDAP test account and a benign marker (sleep, file-write marker), never destructive commands.
The two legs¶
| Advisory | CVE | Sev. | Primitive |
|---|---|---|---|
| GHSA-cwpv-mq6q-jfw2 | CVE-2026-135171 | critical 8.1 | Unauthenticated admin session hijack via predictable session IDs. Identifiers derive from process, time, ServerID, and client-IP state. Attackers enumerate candidate IDs, validate them against the service_get_license.html endpoint as a validity oracle, then replay a live administrator session to gain admin control, including the built-in Lua console. |
| GHSA-94vr-5qx7-gx69 | CVE-2026-135170 | high 7.5 | Deferred Lua code injection as the service account. Login names are embedded unescaped into session files; a username containing a Lua long-string terminator (]]) followed by statements executes on a later session request, not at login. Precondition: LDAP authentication enabled (the LDAP path skips the local username validation that filters the metacharacters). |
Durable operator rules¶
- Session-ID entropy is a black-box entropy audit, and this wave shows you how to run it. When identifiers derive from process/time/server/client state, the search space collapses from 2^128 to something enumerable within a session window. Standing battery for any cookie- or token-authenticated admin console: (1) collect a training set of IDs from sessions you own at {same second, same minute, different minute, restart-boundary}; (2) look for monotonically-advancing or shared components across IDs issued to different clients; (3) if a component is shared or slowly-varying, brute-force only the fast-varying remainder. The Sunhillo SureLine zero-entropy cookie (Oct 28) was the degenerate case (cookie = cleartext username); this is the low-entropy case. Both belong on the same appliance audit checklist.
- Any endpoint that answers differently for valid vs invalid session identifiers is an oracle, and it prices the brute-force.
service_get_license.htmlaccepts a session ID and its response distinguishes live from dead IDs, turning enumeration from blind guessing into a validated search. Recon step on any console: after issuing your own session, diff every low-privilege GET endpoint's response shape with your session valid vs your session corrupted; a status/length/response-JSON difference that correlates with session validity is the oracle. When you find one, the attackability question becomes: how many candidates x how fast x does the product rate-limit? A cheap oracle plus a narrow keyspace is a critical finding, not a hygiene note. - Session replay is the second half of session-ID prediction. The advisory's chain includes replaying live sessions, so the validation boundary is: prove ID predictability on sessions you created (capture N IDs, predict a held-back ID, use it before expiry), never against a real admin. For reporting, a predicted-then-used own-session with timestamped evidence is the artifact.
- Identity strings are code when the store re-parses them. The Lua leg is the recurring "write-time string reaches a second interpreter at read time" family: the username is validated for one consumer (LDAP/local auth) but later embedded into a generated Lua session file that the service re-executes. Audit battery for every field that persists and is later templated: (1) enumerate serialization formats the product uses for state (Lua, PHP
unserialize, Pythonpickle/repr, JSON-with-eval, INI, shell, SQL literals); (2) feed each persistence field the terminator vocabulary of that format (for Lua:]]]]]===, long-string openers[[; PHP: quoted-string breaks; shell: quote/semicolon set); (3) check execution timing: code that runs on a later request as the service account is the durable-primitive shape (the login succeeds cleanly, the payload sleeps until the session file is read). - Alternate auth paths skip validation. The Lua injection precondition is LDAP authentication enabled: the LDAP login path does not apply the local-username validator. Standing rule (sibling of the Oct 9 Nginx UI passkey-flag-vs-login-branch and the Nov 21 ArcadeDB first-request cold-state legs): enumerate every authentication transport/provider the product supports (local, LDAP, SAML, OIDC, RADIUS, API key) and diff which validation hooks each path invokes; validators coded on one path do not protect the other. On appliance engagements, ask whether LDAP is configured before theorizing about local-user filters.
- The admin console bundles a Lua console. Post-auth impact pricing for Wing FTP: administrator access includes the Lua console, i.e., code execution as the service account without a second exploit. Report the session hijack as an unauthenticated RCE-equivalent chain, not "session fixation/weakness".
Validation workflow (lab instance)¶
- Baseline: install a lab Wing FTP (pre-8.2.8 if you have the approved media; otherwise reproduce the entropy audit on the current build and compare ID structure). Create two local users and note the admin console URL.
- Entropy audit: log in as user A twenty times across ~5 minutes, capture session IDs; repeat as user B simultaneously. Look for shared components (ServerID-derived segments, process counters) and slow-varying parts. Attempt to predict a held-back session issued between samples.
- Oracle check: with your own live session, request
service_get_license.htmlwith (a) your valid ID, (b) your ID mutated by one character, (c) no ID. A response differential across (a)/(b) is the validity oracle; record the exact fields that differ. - Deferred-injection check (needs the LDAP path configured against your own test LDAP server): register a disposable directory user whose
uid/sAMAccountNameislabuser]] ; os.execute("touch /tmp/wing-marker") ; [[-shaped benign marker (inert command only), log in, then trigger a later session request and check for the marker. Positive: marker appears at session-read time, not login time. Also diff the local-login path rejecting the same username to prove the auth-path validation asymmetry. - Patched-build control: repeat steps 2-4 on 8.2.8; the positive/negative pair is the reportable artifact.
Adjacent records processed without publication¶
Same 15:32Z wave: Interstellar < 6.3.0 wisp WebSocket bypassing Express password middleware for loopback/private SSRF (fwx2/CVE-2026-135161; WebSocket route missing from the middleware mount, known route-family-vs-middleware class), Okou API OAuth flows trusting caller-supplied userId/orgId (253q/CVE-2026-135163; attacker-chosen join key, Nov 20 BuddyBoss class), Formance Ledger expand/base64-cursor SQLi (7pcx/CVE-2026-135164; known SQLi sink shapes), Medplum $presigned-url cross-project Binary overwrite (3q9p/CVE-2026-135160; signed-URL ownership check absent, known authz-drift class), Tolgee TOTP-enable missing email verification (88f3/CVE-2026-135154; factor-enrollment preauth-state class), Devolutions Server seven-item vendor pack (document-editor stored XSS, emergency login, PAM/repository/approval endpoint access control, thin vendor descriptions, Oct 22 Devolutions lineage), Routinator rsync-driver DoS pair (pmv7/p58c, parser-DoS class), Apache Perl memory-safety octet and Apache IoTDB DoS quartet (memory-safety singles), ZoneAlarm/EasyVistas thin priv-esc/authz singles, Softaculous Virtualizor enduser SQLi (single-endpoint product SQLi, known class), Wing FTP pair promoted above.
Reporting heuristics¶
- Frame the session-ID leg as unauthenticated admin takeover with an in-product code-execution console, and attach the entropy evidence: sample sizes, shared components found, oracle differential, and the predicted-used-own-session proof. "Session ID was short" understates a demonstrated predictability + oracle chain.
- Frame the Lua leg by its deferred execution as the service account and the LDAP-path precondition; state which auth path is vulnerable, because the local path may reject the payload and the vendor may test the wrong path.
- Keep the two legs separate in the report even though both land at admin/service level: different preconditions (unauthenticated vs LDAP-credentialed), different sinks.