Information leak in ControlledFrame (CVE-2026-87435)
Custom content scripts registered by an Isolated Web App are bundled into a single shared memory region and sent to every guest process owned by that app, regardless of which frame the scripts were intended for. A compromised guest renderer process could read this shared memory to obtain sensitive script bytes meant for other frames.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 2 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: An information disclosure vulnerability potentially exists in the Isolated Web App (IWA) <controlledframe> implementation where custom content script source code can leak to sibling guest processes. Because content script serialization and updates are origin-scoped rather than guest-instance-scoped, all scripts registered by an IWA are bundled into a single shared memory region and sent to every guest process owned by that IWA. A compromised guest process can map and read this shared memory region to retrieve sensitive script bytes intended for other frames.
Affected files:
extensions/browser/user_script_loader.cccomponents/guest_view/browser/guest_view_base.ccextensions/browser/api/guest_view/web_view/web_view_internal_api.ccextensions/browser/user_script_manager.ccextensions/browser/guest_view/web_view/web_view_content_script_manager.cc
Estimated timestamp from git blame: 2024-01-22
Summary of the Potential Issue
An architectural information disclosure vulnerability potentially exists in the Isolated Web App (IWA) <controlledframe> implementation. The issue allows custom content script source code (including inline script bytes) to leak across sibling guest processes.
Because content script serialization and distribution are scoped to the IWA's origin (HostID of type kControlledFrameEmbedder) rather than to specific guest instances, all scripts registered by an IWA across different <controlledframe> elements are bundled into a single shared memory region. This region is then sent to every guest process owned by that IWA. A compromised guest process can read this shared memory mapping and retrieve sensitive script bytes intended only for other frames.
Root Cause Analysis
-
Origin-Scoped User Script Loader: In
extensions/browser/user_script_manager.cc:74-89, there is exactly oneEmbedderUserScriptLoaderperHostID:C++ EmbedderUserScriptLoader* UserScriptManager::GetUserScriptLoaderForEmbedder( const mojom::HostID& host_id) { auto it = embedder_script_loaders_.find(host_id); if (it != embedder_script_loaders_.end()) return it->second.get(); ... return CreateEmbedderUserScriptLoader(host_id); }For any
<controlledframe>element embedded inside an IWA, the generatedHostIDis of typekControlledFrameEmbedderand its ID is the serialized IWA origin (e.g.,"isolated-app://iwa-A"):C++ // extensions/browser/api/guest_view/web_view/web_view_internal_api.cc:119-125 if (embedder_rfh->GetWebExposedIsolationLevel() >= content::WebExposedIsolationLevel::kIsolatedApplication) { const std::string origin = embedder_rfh->GetMainFrame()->GetLastCommittedOrigin().Serialize(); return extensions::mojom::HostID( extensions::mojom::HostID::HostType::kControlledFrameEmbedder, origin); }As a result, all
<controlledframe>elements within the same IWA share a single, unifiedEmbedderUserScriptLoader. -
Broadcasting to All Owned Guests: In
UserScriptLoader::SendUpdate()(extensions/browser/user_script_loader.cc:580-603), the recipient filter only checks if the guest'sowner_hostmatches the loader'sHostIDID:C++ if (owner_host != host_id().id) { return SendUpdateResult::kNoActionTaken; }Because all guest views embedded in the same IWA share the same
owner_host(the IWA's serialized origin), this check passes for all guest processes owned by the IWA. Consequently, the entire serialized shared memory region—containing all scripts registered by any guest frame—is transmitted to every guest process. -
Renderer Memory Mapping: Upon receiving the update, the guest renderer process maps the shared memory region via
UserScriptSet::UpdateUserScripts():C++ shared_memory_mapping_ = shared_memory.Map();While the in-process execution gate (
UserScriptInjector::CanExecuteOnFrame) correctly prevents the execution of unauthorized scripts, the script contents remain resident in the guest process's address space.
Suggested Potential Exploitation Steps
(Note: These are potential steps, as our analysis is static and our tooling agent does not have the ability to execute code or run a live proof of concept.)
- Setup: An IWA page embeds two
<controlledframe>guest views with distinct storage partitions:cf1(trusted partition) loadshttps://trusted.exampleand has a custom script added viaaddContentScriptscontaining a secret API key or token in its inline code payload.cf2(untrusted partition) loads an attacker-controlled origin.
- Process Separation: The two guest views are placed into separate guest renderer processes due to their distinct partitions.
- Data Broadcast: The browser serializes all scripts for the IWA origin into a single
ReadOnlySharedMemoryRegionand transmits it to bothcf1's andcf2's renderer processes. - Exfiltration: An attacker who compromises the guest renderer process of
cf2(renderer RCE) can read the memory space of their own process, locating the mappedReadOnlySharedMemoryRegionand extracting the raw script bytes containing the sensitive API key/token intended only forcf1.
Impact
Cross-instance information disclosure from a compromised guest renderer. This breaks the isolation boundary between <controlledframe> storage partitions when custom content scripts are used, potentially leaking sensitive credentials or developer-authored logic across frames.
Suggested Fix
To resolve this issue, the browser should ensure that the shared memory region delivered to a guest process only contains scripts that the specific guest process is authorized to execute.
This could be achieved by:
- Keying
EmbedderUserScriptLoaderinstances more granularly, such as combining theHostIDwith the guest's instance/view ID or storage partition. - Or filtering the scripts during the serialization or delivery phase so that a distinct shared memory region is built and sent for each unique set of authorized scripts per guest process.
Evaluated with Chrome root at commit: 84065d9121f6e48f67755f0ae963cc09617e5c85
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 user script loader is keyed only by the IWA's origin rather than by individual guest instance, so all scripts for that origin are broadcast to every guest process.
Impact
A compromised guest renderer could read script bytes intended for other frames, breaking isolation between storage partitions and potentially leaking credentials or logic; the text notes this is a potential issue from static analysis without a live proof of concept.
What the attacker needed
IWA embeds multiple controlledframe views; Attacker can compromise a guest renderer process; Custom content scripts contain secrets
The fix
The browser should key user script loaders more granularly (e.g., by guest instance or storage partition) or filter scripts during serialization so each guest process receives only the scripts it is authorised to execute.
How it was found
- An IWA page embeds two controlledframe guest views with distinct storage partitions.
- One view loads a trusted origin and has a custom script containing a secret added via addContentScripts.
- The other view loads an attacker-controlled origin.
- The two views are placed into separate guest renderer processes due to their distinct partitions.
- The browser serializes all scripts for the IWA origin into a single shared memory region and sends it to both renderer processes.
- An attacker who compromises the untrusted view's renderer process can read the shared memory region and extract the secret script bytes.
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.
An Isolated Web App can embed multiple web views, each potentially showing different content. The app can add small scripts to these views, and some scripts might contain secrets like API keys. The bug is that the browser sends all these scripts to every view's process, not just the one that should run them. If an attacker can take over one view's process, they can read the scripts meant for other views.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.