Insufficient policy enforcement in GuestView (CVE-2026-17815)
Controlled Frame permission isolation only forced the geolocation permission to 'ask', so camera and microphone permission queries fell through to the profile-wide settings and enterprise allowlists. An attacker-controlled Isolated Web App embedding a controlled frame could therefore learn whether the user had granted or denied camera and microphone access to a given origin in their normal profile.
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: A potential vulnerability in Chromium's Controlled Frame permission isolation allows an embedded guest to leak profile-scoped camera and microphone permission states. This is caused by WebViewGuest::OverridePermissionResult failing to override AUDIO_CAPTURE and VIDEO_CAPTURE permissions to ASK for Controlled Frames. Consequently, permission status queries fallback to the profile-wide content settings map, leaking isolated user permissions to an embedded guest.
Affected files:
extensions/browser/guest_view/web_view/web_view_guest.cc
Estimated timestamp from git blame: 2024-08-27
Summary
A potential vulnerability in Chromium's Controlled Frame permission isolation allows an embedded guest inside a <controlledframe> to leak profile-scoped camera and microphone permission states and enterprise permission allowlists. This bypasses the StoragePartition/embedder boundaries intended for Controlled Frames, allowing a malicious Isolated Web App (IWA) to learn about the user's regular profile permission history and enterprise policy configuration.
Root Cause Analysis
WebViewGuest::OverridePermissionResult (defined in extensions/browser/guest_view/web_view/web_view_guest.cc, lines 1644-1665) implements Controlled Frame's permission isolation, but it currently only handles the GEOLOCATION permission type:
std::optional<content::PermissionResult> WebViewGuest::OverridePermissionResult(
ContentSettingsType type) const {
auto result = web_view_permission_helper_->OverridePermissionResult(type);
if (result) { return result; }
if (IsOwnedByControlledFrameEmbedder()) {
// Permission of content within a Controlled Frame is isolated.
// Therefore, Controlled Frame decides what the immediate permission result is.
const blink::PermissionType permission_type =
permissions::PermissionUtil::ContentSettingsTypeToPermissionType(type);
if (permission_type == blink::PermissionType::GEOLOCATION) {
return content::PermissionResult(
content::PermissionStatus::ASK,
content::PermissionStatusSource::UNSPECIFIED);
}
// Returns nullopt for unhandled cases.
}
return std::nullopt;
}
For AUDIO_CAPTURE (microphone) and VIDEO_CAPTURE (camera), this returns std::nullopt. Because the browser-layer delegate does not override these types, the permission query is allowed to proceed since IsPermissionRequestable returns true for these types. This causes the lookup to fall back to the profile-wide HostContentSettingsMap and enterprise policy lists (e.g. VideoCaptureAllowedUrls and AudioCaptureAllowedUrls), breaking the isolation boundary between the regular profile and the Controlled Frame's StoragePartition.
Potential Exploit Path
Note: The following are potential steps, as our testing tools do not run active code.
-
In a regular Chrome tab, the user navigates to a target origin (e.g.,
https://target.example) and grants camera/microphone permission. -
The user installs and runs an Isolated Web App (IWA) controlled by an attacker that has the
controlled-framepermission in its manifest. -
The malicious IWA programmatically creates a
<controlledframe>element pointing tohttps://target.example. -
Once loaded, the malicious IWA injects a script into the guest using
controlledFrame.executeScriptto query the permission status:JavaScript navigator.permissions.query({name: 'camera'}).then(r => { return r.state; }); -
Due to the missing override, the query receives
'granted'or'denied'matching the user's regular profile state, leaking this private cross-partition configuration back to the guest and the host IWA.
Suggested Fix
To correct the permission isolation, add AUDIO_CAPTURE and VIDEO_CAPTURE to the list of overridden permission types in WebViewGuest::OverridePermissionResult inside extensions/browser/guest_view/web_view/web_view_guest.cc:
const blink::PermissionType permission_type =
permissions::PermissionUtil::ContentSettingsTypeToPermissionType(type);
if (permission_type == blink::PermissionType::GEOLOCATION ||
permission_type == blink::PermissionType::AUDIO_CAPTURE ||
permission_type == blink::PermissionType::VIDEO_CAPTURE) {
return content::PermissionResult(
content::PermissionStatus::ASK,
content::PermissionStatusSource::UNSPECIFIED);
}
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 permission override for Controlled Frames only handled the geolocation type, so camera and microphone queries returned no override and fell back to the profile-wide content settings and enterprise policy lists.
Impact
A malicious Isolated Web App could learn the user's camera and microphone permission history for other origins and infer enterprise permission allowlists, though the report notes the steps are potential and were not run as active code.
What the attacker needed
User granted camera/mic to an origin; attacker-controlled IWA installed; IWA has controlled-frame permission
The fix
The override should also return 'ask' for the audio and video capture permission types so the guest never sees the profile-wide state.
How it was found
- In a normal tab, the user visits a target origin and grants camera or microphone permission.
- The user installs and runs an attacker-controlled Isolated Web App that holds the controlled-frame permission.
- The app creates a controlled frame element pointing at that same origin.
- The app injects a script into the guest that queries the camera permission state.
- The query returns the user's real profile state instead of an isolated answer.
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.
Browsers keep a per-site record of whether you allowed or blocked things like the camera and microphone. A special kind of app is supposed to be walled off from that record, but here the wall only covered location, so the app could quietly ask the browser about camera and microphone choices made elsewhere. That reveals private information about what sites the user has trusted, without any prompt being shown.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.