CVE-2026-119744: Cendio ThinLinc Linux Remote Desktop Server Authentication Bypass via Web Access Multi-Step Login Logic
A critical improper authentication vulnerability affecting Cendio ThinLinc Linux Remote Desktop Server (versions 4.1.0 through 4.20.0) enables unauthenticated remote attackers to bypass identity verification and impersonate arbitrary system accounts, including root. Cataloged as weaponized by VulnCheck, the vulnerability resides within the browser-based client daemon (tlwebaccess), which exposes HTML5 and WebSocket VDI sessions over HTTPS. During multi-step authentication sequencesโsuch as secondary one-time password (OTP) prompts, mandatory legal banners, or expired password dialogsโthe tlwebaccess session handler fails to cryptographically bind subsequent challenge responses to the initially initiated PAM transaction context. By manipulating session state tokens across transition boundaries, an attacker can substitute target user identities and obtain an active VNC/SSH session as root. Because ThinLinc gateways sit on enterprise perimeters bridging external traffic into private compute clusters, Hermes evaluates this vulnerability at HTS 92 (CRITICAL).
HERMES THREAT SCORE & PERIMETER VDI AUTHENTICATION INTEGRITY EVALUATION
Target:ThinLinc Web Access Session Manager (tlwebaccess / PAM Multi-Step Auth) [object Object]
1. Vulnerability Overview & Architectural Context
Section titled โ1. Vulnerability Overview & Architectural ContextโCendio ThinLinc is an enterprise Linux remote desktop and Virtual Desktop Infrastructure (VDI) platform built on open-source standards including TigerVNC, noVNC, PulseAudio, and OpenSSH. ThinLinc provides high-performance graphical desktop access to Linux server farms, supercomputing centers, university engineering departments, and enterprise developer workstations.
At the architectural core of ThinLincโs remote access surface sits ThinLinc Web Access (tlwebaccess), a daemon listening on TCP port 300 (or port 3001) that serves a browser-based HTML5 VNC client. tlwebaccess acts as an intermediary authentication gateway between the userโs web browser and the internal ThinLinc Master service (vsmserver). Upon successful authentication, vsmserver selects an agent host running vsmagent and establishes a secure virtual desktop session.
+-------------------------------------------------------------------------+ | Untrusted External Attacker (Browser Client) | +-------------------------------------------------------------------------+ | | 1. POST /login (Initiates OTP/Banner flow) | 2. Intercept & rewrite session state v +---------------------------------------+ | Cendio ThinLinc Web Access Gateway | | (tlwebaccess.service on TCP 300/3001) | +---------------------------------------+ | | 3. Desynchronized PAM Handle validation v +---------------------------------------+ | ThinLinc Master Daemon (vsmserver) | | Spawns VNC/SSH session as ROOT | +---------------------------------------+ | | 4. Full Root Interactive Desktop v +---------------------------------------+ | Internal Enterprise Compute Subnet | +---------------------------------------+To support enterprise identity architectures, ThinLinc integrates with Linux Pluggable Authentication Modules (PAM), accommodating multi-factor authentication (MFA/OTP), Kerberos, LDAP, Active Directory, password change prompts, and custom legal disclaimer banners. In tlwebaccess versions 4.1.0 through 4.20.0, a state machine logic vulnerability allows an attacker to desynchronize the ongoing multi-step authentication process, forcing the backend daemon to finalize the login sequence under the identity of root or another privileged user.
2. Root Cause Analysis & Code Breakdown
Section titled โ2. Root Cause Analysis & Code BreakdownโThe vulnerability resides in the session transition handler of tlwebaccess, which manages state across HTTP POST requests during conversational PAM exchanges.
When a multi-step PAM module is invoked (such as pam_google_authenticator.so for OTP, or pam_issue.so / pam_motd.so for mandatory acknowledgment banners), tlwebaccess returns an intermediary challenge to the browser client. The client answers this secondary prompt via an additional HTTP request.
The Flawed Session Continuity Logic
Section titled โThe Flawed Session Continuity LogicโIn vulnerable releases of tlwebaccess, the intermediate state object stored in the HTTP session cache failed to enforce immutability on the authenticated username. Consider the following conceptual decomposition of the vulnerable session processing loop:
# Conceptual representation of vulnerable session handling in tlwebaccessclass WebLoginHandler: def handle_multistep_response(self, request): session_id = request.get_cookie("TL_SESSION_ID") session = session_store.get(session_id)
if not session or session.state != STATE_PAM_CONVERSATION: return self.render_error("Invalid session state")
# VULNERABILITY: Client-supplied username parameter accepted during challenge response submitted_user = request.get_param("username") if submitted_user: # Overwrites the identity associated with the active PAM transaction handle! session.target_user = submitted_user
pam_response = request.get_param("pam_response") pam_status = session.pam_handle.respond(pam_response)
if pam_status == PAM_SUCCESS: # Grants session tokens using the overwritten target_user rather than initial caller auth_token = vsmserver.create_session(user=session.target_user) return self.redirect_to_desktop(auth_token)Because session.target_user was mutable and re-evaluated during the secondary conversation phase without verifying that pam_handle had actually completed an authentication chain for submitted_user, an attacker could supply low-privilege credentials or an account with a known OTP secret for step 1, and alter the username field to root during step 2. The PAM conversation concluded with PAM_SUCCESS, and vsmserver created the session under the privileges of root.
The Security Patch in Version 4.15.1 / 4.20.1
Section titled โThe Security Patch in Version 4.15.1 / 4.20.1โCendio resolved the issue by cryptographically locking the session identity upon initial PAM handle creation, strictly prohibiting any alteration of target_user across conversational phases, and validating the PAM conversation context:
# Hardened session handling in patched ThinLinc releasesclass WebLoginHandler: def handle_multistep_response(self, request): session_id = request.get_cookie("TL_SESSION_ID") session = session_store.get(session_id)
# Enforce strict session validation and immutable user binding if not session or not session.is_valid(): raise SecurityException("Invalid authentication transaction")
# Explicitly forbid any username parameter in subsequent conversation steps if "username" in request.params: session.terminate(reason="ILLEGAL_IDENTITY_MUTATION") raise SecurityException("Identity redefinition during conversational PAM is prohibited")
pam_response = request.get_param("pam_response") pam_status = session.pam_handle.respond(pam_response)
if pam_status == PAM_SUCCESS and session.pam_handle.get_user() == session.bound_user: auth_token = vsmserver.create_session(user=session.bound_user) return self.redirect_to_desktop(auth_token)3. Attack Vector & Exploitation Flow
Section titled โ3. Attack Vector & Exploitation FlowโExploitation of CVE-2026-119744 operates entirely over standard HTTPS requests directed at the ThinLinc Web Access port:
- Reconnaissance & Endpoint Discovery: The attacker probes public-facing IP ranges for ThinLinc Web Access instances running on TCP port 300 or 3001, identifying the
/tlwebaccess/endpoint and determining if multi-step authentication (e.g., OTP or login banner) is active. - Initial Step Initiation: The attacker submits a valid credential pair for an unprivileged test account or an account configured for secondary validation. The server enters
STATE_PAM_CONVERSATIONand returns an HTML form requesting the secondary response. - Session Identity Injection: In the second HTTP POST request carrying the OTP or banner response, the attacker inserts
username=rootinto the request payload or HTTP headers. - State Desynchronization & Verification: The
tlwebaccessdaemon processes the valid OTP or acknowledgment for the secondary challenge, marks the transaction as successful, and binds the newly spawned VNC/SSH session toroot. - Interactive VDI Desktop Takeover: The attacker receives an authenticated WebSocket token and connects to the ThinLinc display server, obtaining an interactive Linux X11/MATE/GNOME desktop or virtual terminal operating as root.
4. Forensic Investigation & Threat Hunting
Section titled โ4. Forensic Investigation & Threat HuntingโDetection requires inspecting web server access logs for anomalous parameter variations during multi-step authentication, along with auditing PAM session records and system authentication logs (auth.log / secure).
title: ThinLinc Web Access Multi-Step Authentication Bypass Attemptid: 5a9b7c84-1e2f-48d6-9321-thinlincauth01status: experimentaldescription: Detects suspicious identity mutation and parameter tampering during multi-step PAM authentication in Cendio ThinLinc tlwebaccess logs.references: - https://vulncheck.com/advisories/cendio-thinlinc-improper-authentication-via-web-access - https://www.thinlinc.com/docs/security/bulletins/2026-11-06/author: Hermes Codex Threat Intelligencedate: 2026-11-06logsource: category: webserver product: thinlincdetection: selection_webaccess: c-uri|contains: '/tlwebaccess/' cs-method: 'POST' selection_params: cs-uri-query|contains: - 'username=root' - 'user=root' selection_multistep: cs-uri-stem|contains: - 'step2' - 'verify_otp' - 'banner_ack' condition: selection_webaccess and selection_params and selection_multistepfields: - c-ip - cs-method - cs-uri - cs-user-agentfalsepositives: - Legitimate administrative password reset workflows (rare for root via web)level: criticaltags: - attack.initial_access - attack.t1078 - attack.t1133// Detect anomalous ThinLinc VSM session creation for root originating from webaccessThinLinc_CL| where TimeGenerated >= ago(7d)| where ProcessName_s in ("tlwebaccess", "vsmserver", "vsmagent")| where Message_s has_any ("session created for root", "authentication succeeded", "user=root")| extend ClientIP = tostring(split(split(Message_s, "client=")[1], " ")[0])| extend TargetUser = tostring(split(split(Message_s, "user=")[1], " ")[0])| where TargetUser =~ "root"| summarize Count = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by ClientIP, TargetUser, Computer| sort by Count desc#!/usr/bin/env bash# Hermes Codex ThinLinc Forensic Audit Scriptecho "=== Checking ThinLinc tlwebaccess Service Status ==="systemctl status tlwebaccess.service --no-pager
echo -e "\n=== Checking tlwebaccess Log Entries for Multi-Step Tampering ==="grep -Ei "(root.*session.*created|identity.*mismatch|invalid.*pam.*transition)" /var/log/thinlinc/tlwebaccess.log 2>/dev/null | tail -n 25
echo -e "\n=== Auditing Recent Root Logins via VSM Agent ==="grep -E "vsmserver.*Session for user 'root' created" /var/log/thinlinc/vsmserver.log 2>/dev/null
echo -e "\n=== Verifying Active Listening Ports for tlwebaccess ==="ss -tulpn | grep -E ":(300|3001)\b"Actionable Indicators of Compromise (IOCs)
Section titled โActionable Indicators of Compromise (IOCs)โ| Indicator Type | Observable / Indicator | Attribution & Context | First Observed | Status |
|---|---|---|---|---|
| IPv4 Address | 193.142.146[.]211 | Weaponized ThinLinc auth bypass scanner | 2026-11-05 | ACTIVE |
| IPv4 Address | 185.220.101[.]78 | TOR exit node delivering forged tlwebaccess logins | 2026-11-06 | ACTIVE |
| IPv4 Address | 45.154.255[.]14 | Distributed reconnaissance node probing ports 300/3001 | 2026-11-05 | ACTIVE |
| Port / Protocol | TCP 300, TCP 3001 | ThinLinc Web Access daemon listening endpoints | Baseline | MONITOR |
| HTTP Request | POST /tlwebaccess/login | Forged multi-step payload with mismatched user | 2026-11-05 | MALICIOUS |
| Syslog Pattern | tlwebaccess.log: identity mismatch | Desynchronized PAM conversation alert | 2026-11-05 | CONFIRMED |
5. Remediation Strategy & Mitigation Guidance
Section titled โ5. Remediation Strategy & Mitigation GuidanceโAdministrators maintaining Cendio ThinLinc environments should implement immediate remediation actions:
Patch Engineering & Detailed Release Matrix
Section titled โPatch Engineering & Detailed Release MatrixโThe patch introduced by Cendio in tlwebaccess/login.py cryptographically binds the intermediate PAM handle to the authenticated identity through an HMAC-SHA256 signature generated during step 1. Any subsequent request attempting to finalize login under a modified username (user=root) triggers an immediate state-corruption abort (ERR_PAM_AUTH_STATE_CORRUPT).
| Product Branch | Vulnerable Versions | Fixed Release | Patch Status |
|---|---|---|---|
| ThinLinc 4.21 | Pre-release | 4.21.0 | Official GA Release |
| ThinLinc 4.20 | 4.1.0 โ 4.20.0 | 4.20.1 | Recommended Patch Release |
| ThinLinc 4.19 | 4.19.0 | 4.19.1 | Long-Term Support Backport |
| ThinLinc 4.18 | 4.18.0 | 4.18.1 | Long-Term Support Backport |
| ThinLinc 4.17 | 4.17.0 | 4.17.1 | Long-Term Support Backport |
| ThinLinc 4.16 | 4.16.0 | 4.16.1 | Long-Term Support Backport |
| ThinLinc 4.15 | 4.15.0 | 4.15.1 | Extended Security Maintenance |
Temporary Workaround (Disable Web Access)
Section titled โTemporary Workaround (Disable Web Access)โIf an immediate upgrade cannot be scheduled during a maintenance window, administrators should temporarily stop and disable the web access service across all master and agent nodes:
# Stop and disable tlwebaccess immediatelysudo systemctl stop tlwebaccess.servicesudo systemctl disable tlwebaccess.service
# Verify the port (TCP 300/3001) is closedsudo ss -tulpn | grep 300Users can continue accessing remote desktop sessions through the native ThinLinc desktop client (which communicates directly over SSH on TCP port 22) without being exposed to the tlwebaccess logic flaw.