Insufficient validation of untrusted input in Chromoting (CVE-2026-11146)
The Chrome Remote Desktop host on Linux and macOS does not filter sensitive configuration keys when receiving updates via Native Messaging, unlike the Windows implementation. A compromised extension renderer could overwrite keys such as host_id and host_secret_hash to silently hijack the host on Linux, granting persistent remote access and arbitrary input injection.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 53 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 without the Chrome Security team.
Overview: The Chrome Remote Desktop host on Linux and macOS does not filter sensitive configuration keys when receiving updates via Native Messaging. A compromised extension renderer can potentially overwrite keys such as host_id and host_secret_hash to silently hijack the host on Linux. This would grant an attacker persistent remote access and arbitrary input injection capabilities.
Affected files:
remoting/host/setup/daemon_controller_delegate_linux.ccremoting/host/setup/daemon_controller_delegate_mac.mmremoting/host/setup/me2me_native_messaging_host.cc
Estimated timestamp from git blame: 2022-09-16
Description
When updating the Chrome Remote Desktop configuration via the native messaging host, the Windows implementation (DaemonControllerDelegateWin::UpdateConfig) explicitly checks for and rejects modifications to a set of kReadonlyKeys (which includes host_id, host_owner, service_account, xmpp_login, and host_owner_email).
However, the implementations for Linux (DaemonControllerDelegateLinux::UpdateConfig) and macOS (DaemonControllerDelegateMac::UpdateConfig) lack this validation. When an updateDaemonConfig message is processed by Me2MeNativeMessagingHost, the provided JSON dictionary is passed directly to the delegate. On Linux and macOS, the code blindly merges this untrusted dictionary into the existing configuration file using base::DictValue::Merge.
Because needs_elevation_ defaults to false on POSIX platforms within Me2MeNativeMessagingHost, this configuration merge and subsequent host reload on Linux occur entirely silently without prompting the user for elevation.
Potential Attack Scenario (Linux)
(Note: These are suggested/potential steps, as our tooling agent does not have the ability to run code or functional exploits to verify them interactively.)
- An attacker compromises the CRD companion extension renderer (e.g., via a UXSS or exploiting an externally connectable web interface).
- The compromised renderer connects to the native messaging host (
com.google.chrome.remote_desktop) and sends anupdateDaemonConfigmessage. - The message contains a malicious
configpayload with an attacker-controlledhost_idandhost_secret_hash. Me2MeNativeMessagingHost::ProcessUpdateDaemonConfigprocesses the message. Becauseneeds_elevation_isfalse, it skips theDelegateToElevatedHostpath.DaemonControllerDelegateLinux::UpdateConfigmerges the unvalidated dictionary into the user's existing configuration file (e.g.,~/.config/chrome-remote-desktop/host#<hash>.json) and saves it to disk.- The delegate triggers a reload by running
/opt/google/chrome-remote-desktop/chrome-remote-desktop --reloadas the current user. - The Python script finds the running CRD daemon process and sends it a
SIGHUPsignal. - The daemon cleanly catches the
SIGHUP, reloads the poisoned configuration from disk, and restarts the active host process. - The host authenticates to the CRD backend using the attacker's credentials, establishing persistent remote access and allowing arbitrary input injection at the user's privilege level.
Secondary Vector (SetConfigAndStart)
A secondary issue exists in DaemonControllerDelegateLinux::SetConfigAndStart. This function writes the configuration to disk before executing the script with --enable-and-start (which prompts for elevation via pkexec).
An attacker could send a startDaemon message with a malicious configuration. The configuration is written to disk immediately. If the user cancels the resulting pkexec prompt (or if the attacker programmatically suppresses it), the malicious configuration remains on disk. The attacker can then send an updateDaemonConfig message to trigger the SIGHUP reload, achieving the same silent hijack.
macOS Impact
On macOS, the UpdateConfig implementation similarly lacks key filtering. However, the configuration is passed to a root helper via ElevateAndSetConfig, which triggers a macOS authorization prompt. While this user prompt prevents a purely silent exploit, the lack of filtering remains a significant defense-in-depth failure.
Suggested Fix
- Implement Key Filtering: Apply the
kReadonlyKeysfiltering logic currently present inDaemonControllerDelegateWin::UpdateConfigto the Linux and macOS implementations. Any update request attempting to modify these keys should be rejected. - Defer Disk Writes on Linux: In
DaemonControllerDelegateLinux::SetConfigAndStart, do not write the configuration directly to disk. Instead, pass the configuration securely to the elevated execution context so it is only written if elevation succeeds, preventing poisoned states on disk when elevation fails or is cancelled.
Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b
Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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 Linux and macOS implementations of UpdateConfig lack the key filtering (kReadonlyKeys) present in the Windows implementation, allowing untrusted configuration keys to be merged into the host configuration.
Impact
On Linux, an attacker could silently hijack the host, gaining persistent remote access and arbitrary input injection; on macOS, a user prompt prevents a silent exploit but the lack of filtering remains a defense-in-depth failure.
What the attacker needed
Compromised extension renderer; Linux or macOS host; native messaging host accessible
The fix
The fix should apply the kReadonlyKeys filtering logic from the Windows implementation to Linux and macOS, and defer disk writes in SetConfigAndStart until elevation succeeds.
How it was found
- Compromise the CRD companion extension renderer.
- Connect to the native messaging host and send an updateDaemonConfig message.
- Include a malicious config payload with attacker-controlled host_id and host_secret_hash.
- The message is processed without elevation and the unvalidated dictionary is merged into the configuration file.
- The delegate triggers a reload, causing the daemon to reload the poisoned configuration.
- The host authenticates to the CRD backend using the attacker's credentials, establishing persistent access.
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.
Chrome Remote Desktop lets you control your computer from another device. A part of it called the native messaging host accepts configuration updates from a browser extension. On Linux and macOS, it did not check which settings could be changed, so a malicious extension could change the identity of the remote desktop host and take it over.
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.