Insufficient validation of untrusted input in Chromoting (CVE-2026-13849)
The Chromoting host services client on Windows connects to a named pipe without verifying the server's privilege level, allowing a lower-integrity process in session 0 to impersonate the trusted broker. An attacker could then send arbitrary handle values that the client closes, potentially leading to handle-reuse type confusion, sandbox escape, and local privilege escalation.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 34 days
Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: ChromotingHostServicesClient on Windows connects to its IPC server without enabling verify_server_privilege. This potentially allows a lower-integrity process running in session 0 to act as a trusted broker and send arbitrary handles to the client. An attacker could exploit this to perform arbitrary CloseHandle operations on the medium-integrity client process.
Affected files:
remoting/host/chromoting_host_services_client.cc
Estimated timestamp from git blame: 2021-11-02
Potential Issue Description
On Windows, ChromotingHostServicesClient connects to the Chrome Remote Desktop (CRD) host services named pipe (\\.\pipe\mojo.chromoting.host_services_mojo_ipc). However, it connects using default NamedPlatformChannel::Options where verify_server_privilege is set to false.
Because of this omission, the client does not verify that the server's process integrity level is equal to or greater than its own during the named pipe connection handshake. An attacker with a compromised low-privilege or sandboxed process running in session 0 could squat or serve this named pipe. When a medium-integrity helper process (e.g., remote_webauthn.exe, remote_security_key.exe, or remote_open_url.exe) starts and connects to the pipe, the client will accept the connection.
Since Mojo invitations accepted via IncomingInvitation::Accept unconditionally treat the incoming transport peer as a trusted broker, the client process will trust handles sent from the squatter. The attacker can then send handles with HandleOwner::kRecipient to the client, forcing the medium-integrity client to wrap and close arbitrary handle values in its own process. This arbitrary CloseHandle primitive can lead to handle-reuse type confusion, potential sandbox escape, and local privilege escalation.
Root Cause Analysis
In remoting/host/chromoting_host_services_client.cc (line 39), ConnectToServer is called:
auto endpoint = named_mojo_ipc_server::ConnectToServer(server_name);
Here, named_mojo_ipc_server::ConnectToServer(server_name) constructs a default NamedPlatformChannel::Options object where verify_server_privilege defaults to false.
In mojo/public/cpp/platform/named_platform_channel_win.cc, verify_server_privilege determines whether to verify the integrity level of the pipe server:
if (handle.is_valid() && options.verify_server_privilege) {
if (!VerifyServerPrivilege(handle.GetHandle().Get())) {
DLOG(ERROR) << "Server privilege check failed.";
return PlatformChannelEndpoint();
}
}
Because the client does not enable this option, it connects to any server offering the pipe, bypassing integrity verification. The client only checks that the server's session ID is 0, which is easily satisfied by any session-0 process.
Once the connection is accepted via mojo::IncomingInvitation::Accept in chromoting_host_services_client.cc (line 60), the transport is configured with is_peer_trusted = true (mojo/core/ipcz_driver/invitation.cc, line 417).
In mojo/core/ipcz_driver/transport.cc (lines 203-210), when a message is received with HandleOwner::kRecipient, the check for transport trustworthiness passes because is_peer_trusted is true. The client process wraps the received handle value in a ScopedHandle (line 217), which calls CloseHandle on destruction.
Potential Attack Steps
An attacker might perform the following steps to potentially exploit the issue (note that these are suggested/potential steps, and our tooling does not yet have the ability to run code or verify live execution):
- A compromised low-privilege process running in session 0 creates the named pipe
\\.\pipe\mojo.chromoting.host_services_mojo_ipcbefore the legitimate service starts (pre-squatting) or registers a pipe instance of the same name. - The user initiates an action triggering a medium-integrity helper process (e.g.,
remote_webauthn.exe). - The helper process connects to the attacker-controlled named pipe and passes the
peer_session_id == 0check. - The helper process treats the attacker's pipe as a trusted broker.
- The attacker transmits a driver-object frame with
handle_owner = HandleOwner::kRecipientcontaining target handle values of active resources (e.g., process or thread handles). - The helper process decodes the frame and closes its own active handles, leading to handle recycling and potentially arbitrary code execution at medium integrity.
Suggested Fix
To fix this issue, update remoting/host/chromoting_host_services_client.cc to explicitly configure verify_server_privilege = true in the connection options before calling ConnectToServer. For example:
mojo::NamedPlatformChannel::Options options;
options.server_name = server_name;
options.verify_server_privilege = true;
auto endpoint = named_mojo_ipc_server::ConnectToServer(options);
Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8
Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:
- If you are familiar with the severity guidelines, you may adjust the severity.
- If this is a false positive, and there's no work to be done, please close as WAI.
- If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.
Data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the client used default connection options that leave server privilege verification disabled, so it accepted a pipe server of any integrity level as a trusted broker.
Impact
An attacker could potentially achieve handle-reuse type confusion, sandbox escape, and local privilege escalation, though the report notes these steps are suggested and not yet verified by live execution.
What the attacker needed
Compromised low-privilege process in session 0; user triggers a medium-integrity helper process
The fix
The client should explicitly enable server privilege verification in the connection options before connecting.
How it was found
- A compromised low-privilege process in session 0 creates the named pipe before the legitimate service starts or registers a pipe instance of the same name.
- The user initiates an action that triggers a medium-integrity helper process.
- The helper process connects to the attacker-controlled named pipe and passes the session ID check.
- The helper process treats the attacker's pipe as a trusted broker.
- The attacker sends a driver-object frame with handle_owner set to kRecipient containing target handle values.
- The helper process decodes the frame and closes its own active handles, leading to handle recycling and potentially arbitrary code execution at medium integrity.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When two programs on Windows need to talk, they often use a named pipe, which is like a private phone line. This report says one program (the client) did not check who was on the other end before trusting it. A malicious program could pretend to be the trusted partner and send harmful instructions, which might let an attacker take over the computer.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.