Improper privilege management in Mojo (CVE-2026-102317)
The Windows elevated tracing service, running as LocalSystem, accepts Mojo invitations from unprivileged local clients while marking the connecting peer as trusted and as a broker. This lets a medium-integrity attacker bypass handle validation and force the service to close arbitrary handles, potentially leading to handle confusion and local privilege escalation.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 4 months
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: The elevated_tracing_service incorrectly configures its Mojo transport to trust unprivileged clients during invitation acceptance. This potentially allows a local, medium-integrity attacker to bypass handle validation checks and force the SYSTEM-privilege service to close arbitrary handles. An attacker could exploit this primitive to cause handle confusion or reuse, potentially achieving Local Privilege Escalation (LPE).
Affected files:
mojo/core/ipcz_driver/invitation.ccchrome/windows_services/elevated_tracing_service/system_tracing_session.ccmojo/core/ipcz_driver/transport.cc
Estimated timestamp from git blame: 2024-10-09
Summary
A potential Local Privilege Escalation (LPE) vulnerability exists in the Windows elevated_tracing_service (which runs as a service under the LocalSystem account). When accepting a Mojo invitation via its COM interface (ISystemTraceSession::AcceptInvitation), the service configures its Mojo/IPCZ transport in a way that unconditionally treats the connecting client as a trusted peer and a broker. A local, medium-integrity attacker could potentially exploit this inverted trust model to connect the service to an attacker-controlled named pipe and send crafted IPCZ messages. This allows the attacker to bypass verification checks in Transport::DecodeHandle and force the service to close arbitrary handles in its own process, potentially leading to handle confusion and local privilege escalation.
Note: These are potential steps and vulnerabilities identified through static code analysis. Our tooling does not currently have the capability to run code or execute a live proof of concept.
Root Cause Analysis
1. Accessible COM Endpoint & Named Pipe Connection
In chrome/windows_services/service_program/service.cc (lines 384–392), COM security is initialized with a DACL that allows all interactive users (Sids::Interactive()) to activate and execute COM objects in the service program.
When a medium-integrity local client invokes SystemTracingSession::AcceptInvitation (chrome/windows_services/elevated_tracing_service/system_tracing_session.cc, line 58), the service impersonates the client and connects to the user-supplied named pipe server name using mojo::NamedPlatformChannel::ConnectToServer (line 112). No verification or validation is performed on the ownership, ACLs, or path of the named pipe.
2. Inverted Trust in Invitation::Accept
The connected pipe endpoint is then passed to mojo::IncomingInvitation::Accept with the MOJO_ACCEPT_INVITATION_FLAG_ELEVATED option (line 117), which maps to Invitation::Accept in mojo/core/ipcz_driver/invitation.cc (line 340).
Because the service is accepting an invitation from an untrusted client (acting as the connection initiator/creator of the pipe), the transport configuration in Invitation::Accept (lines 412–420) is incorrectly configured:
IpczDriverHandle transport = CreateTransportForMojoEndpoint(
{.source = is_isolated ? Transport::kBroker : Transport::kNonBroker,
.destination = Transport::kBroker},
*transport_endpoint,
{
.is_peer_trusted = true,
.is_trusted_by_peer = is_elevated,
.leak_channel_on_shutdown = leak_transport,
});
This configures .destination = Transport::kBroker and .is_peer_trusted = true. This is an inverted trust model for a SYSTEM-level service, as it marks the untrusted client's endpoint as both a broker and peer-trusted.
3. Bypassing Verification in Transport::DecodeHandle
During IPCZ message deserialization, Transport::DeserializeObject in mojo/core/ipcz_driver/transport.cc handles incoming handles. If a message contains handles of type HandleOwner::kRecipient (referencing handle integers already owned by the recipient SYSTEM process), DecodeHandle performs a safety check (lines 203–210):
if (handle_owner == HandleOwner::kRecipient) {
if (from_transport.destination_type() != Transport::kBroker &&
!from_transport.is_peer_trusted() && !remote_process.is_current()) {
return std::nullopt;
}
// ...
if (!::GetHandleInformation(handle, &dummy)) {
return std::nullopt;
}
return PlatformHandle(base::win::ScopedHandle(handle));
}
Because destination_type() is Transport::kBroker and is_peer_trusted() is true, this safety check short-circuits. The service only checks if the handle is valid in its own process, wraps it in a base::win::ScopedHandle (which owns the handle's lifetime), and stores it in a temporary platform_handles vector.
4. Arbitrary Handle Close via Deserialization Failure
If any subsequent part of the message deserialization fails (for example, by appending malformed data after the handle headers in the IPCZ message payload), Transport::DeserializeObject returns IPCZ_RESULT_INVALID_ARGUMENT (line 615).
Upon failure, the stack-allocated platform_handles vector goes out of scope and is destructed. The destructor of the wrapped base::win::ScopedHandle objects executes, which unconditionally calls ::CloseHandle on the targeted handle values. Since an attacker can bundle multiple handle values in a single message and send them continuously, this grants a highly reliable arbitrary handle close primitive in the SYSTEM process.
Potential Exploitation Scenario
- A local, medium-integrity attacker creates a named pipe server at
\\.\pipe\mojo.attacker_pipe. - The attacker calls
SystemTracingSession::AcceptInvitationvia COM, passing the named pipe server name. - When the service connects to the named pipe, the attacker completes the standard Mojo handshakes.
- The attacker sends a malicious IPCZ message containing a
HandleOwner::kRecipientheader pointing to a target handle value (e.g., a critical file, thread, or section handle owned by the service), followed by malformed payload bytes. - Upon processing the message, the service bypasses the validation checks, wraps the handle, fails deserialization, and calls
::CloseHandleon the target handle. - The attacker uses this primitive to close a victim handle and immediately triggers operations in the service to allocate a new resource. The new resource reuses the closed handle value, resulting in handle confusion/reuse and allowing the attacker to hijack operations of the SYSTEM-level process.
Suggested Fix
Modify Invitation::Accept or the elevated_tracing_service to ensure that invitation connections accepted from untrusted clients are not treated as trusted peers or brokers. Specifically:
- Ensure that
.is_peer_trustedis not set totruewhen accepting invitations from an untrusted client process. - Verify the identity, signature, and integrity level of the client calling
AcceptInvitationusingGetCallingProcessbefore establishing the named pipe connection.
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 invitation acceptance path sets the connecting client as both a broker and a trusted peer, so the handle ownership check in Transport::DecodeHandle is short-circuited for untrusted input.
Impact
A local medium-integrity attacker could close arbitrary handles in the SYSTEM service and potentially achieve local privilege escalation through handle confusion; the report notes this is from static analysis with no live proof of concept.
What the attacker needed
Local access at medium integrity; ability to activate the service COM object
The fix
The invitation acceptance should not mark untrusted clients as trusted peers or brokers, and the service should verify the calling process's identity and integrity level before connecting.
How it was found
- Create a named pipe server controlled by the attacker.
- Call the service's AcceptInvitation COM method, passing the pipe name.
- Complete the Mojo handshakes when the service connects.
- Send a message with a recipient-owned handle header for a target handle, followed by malformed data.
- The service wraps the handle, fails deserialisation and closes the handle.
- Trigger new allocations in the service to reuse the freed handle value.
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.
A privileged Windows service lets ordinary local users ask it to connect to a named pipe they control. When it does, the service wrongly treats that untrusted user as a fully trusted partner, so safety checks on messages are skipped. The user can then make the service close handles (references to files, threads and similar resources) it should not touch, which could let the attacker take over the service's higher privileges.
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.