Insufficient policy enforcement in PermissionsPolicy (CVE-2026-14007)
A logic flaw in Permissions-Policy validation allows nested cross-origin iframes to bypass a top-level page's policy opt-out. An attacker could load fenced frames with restricted features enabled, accessing APIs such as Shared Storage or Private Aggregation despite the publisher's opt-out.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 37 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: A logic flaw in Permissions-Policy validation allows nested cross-origin iframes to bypass a top-level page's policy opt-out. When validating fixed-permission fenced frames, the browser incorrectly allows restricted features because GetAllowlistForFeatureIfExists returns std::nullopt instead of an empty allowlist when disabled via inheritance. This allows third-party ad-tech frames to load fenced frames with unauthorized permissions enabled.
Affected files:
services/network/public/cpp/permissions_policy/permissions_policy.cccontent/browser/renderer_host/navigation_request.cccontent/browser/renderer_host/render_frame_host_impl.cc
Estimated timestamp from git blame: 2023-05-23
Root Cause Analysis
There is a potential logic flaw in how permissions policies are validated during the navigation of fixed-permission fenced frames. Specifically, NavigationRequest::IsFencedFrameRequiredPolicyFeatureAllowed acts as the browser-side gate to prevent fixed-permission fenced frames (such as Protected Audience or Shared Storage selectURL) from navigating if their embedder lacks a required Privacy Sandbox feature.
During validation, the function checks the embedder's allowlist in content/browser/renderer_host/navigation_request.cc:
std::optional<const network::PermissionsPolicy::Allowlist>
embedder_allowlist = GetParentFrameOrOuterDocument()
->GetPermissionsPolicy()
->GetAllowlistForFeatureIfExists(feature);
if (embedder_allowlist && !embedder_allowlist->MatchesAll()) {
return false;
}
However, PermissionsPolicy::GetAllowlistForFeatureIfExists in services/network/public/cpp/permissions_policy/permissions_policy.cc is implemented to return std::nullopt (rather than an empty allowlist) when a feature is disabled via inheritance, despite the explicit developer comment stating the opposite:
std::optional<const PermissionsPolicy::Allowlist>
PermissionsPolicy::GetAllowlistForFeatureIfExists(
network::mojom::PermissionsPolicyFeature feature) const {
// Return an empty allowlist when disabled through inheritance.
if (!IsFeatureEnabledByInheritedPolicy(feature)) {
return std::nullopt; // Note: returns nullopt instead of Allowlist{}
}
...
}
Because embedder_allowlist evaluates to std::nullopt, the check embedder_allowlist && !embedder_allowlist->MatchesAll() evaluates to false. As a result, the embedder-allowlist check passes incorrectly for any feature that has been disabled in the embedder via its inheritance chain.
When the gate returns true, the fenced frame commits. During this process, the frame's permissions policy is initialized via CreateFixedForFencedFrame, which unconditionally enables every effective_enabled_permission in the fenced frame, fully bypassing the top-level page's opt-out.
Potential Attack / Trigger Path
(Note: These are suggested/potential steps, as our tooling agent does not have the ability to execute the code.)
- A top-level publisher page at
https://publisher.testserves a response header opting out of Privacy Sandbox features:Permissions-Policy: shared-storage=(), private-aggregation=(). - The publisher page embeds a cross-origin ad-tech iframe E (
https://adtech.test). - E's permissions policy inheritance correctly sets its inherited policy for these features to
false(e.g.inherited_policies_[kSharedStorage] = false). - E obtains a fixed-permission
FencedFrameConfig(e.g., viarunAdAuction(), assumingrun-ad-auctionis allowed/default). - E creates a
<fencedframe>and navigates it using the config. - During the navigation's permission policy checks (
CheckPermissionsPoliciesForFencedFrames), the validation succeeds becauseGetAllowlistForFeatureIfExistsreturnsstd::nulloptfor the inherited-disabled features, bypassing the check. - The fenced frame navigates and commits. The third-party document inside the fenced frame successfully accesses the restricted APIs (such as writing to cross-site Shared Storage or sending Private Aggregation reports) despite the publisher's top-level opt-out policy.
Suggested Fix
Update PermissionsPolicy::GetAllowlistForFeatureIfExists to return an empty PermissionsPolicy::Allowlist() instead of std::nullopt when a feature is disabled through inheritance. This aligns the return value with the other helper methods (GetAllowlistForDevTools and GetAllowlistForFeature) and satisfies the method's documented behavior:
std::optional<const PermissionsPolicy::Allowlist>
PermissionsPolicy::GetAllowlistForFeatureIfExists(
network::mojom::PermissionsPolicyFeature feature) const {
// Return an empty allowlist when disabled through inheritance.
if (!IsFeatureEnabledByInheritedPolicy(feature)) {
return PermissionsPolicy::Allowlist();
}
...
}
Evaluated with Chrome root at commit: a2bea94528f4bd6cc57739c43fa3bb890b8367d3
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 function GetAllowlistForFeatureIfExists returns std::nullopt instead of an empty allowlist when a feature is disabled through inheritance, causing the navigation gate to treat the feature as allowed.
Impact
A third-party document inside a fenced frame could access restricted APIs such as cross-site Shared Storage or Private Aggregation despite the publisher's top-level opt-out policy.
What the attacker needed
Publisher sets Permissions-Policy opt-out; cross-origin ad-tech iframe embedded; run-ad-auction allowed or default
The fix
The function should be changed to return an empty allowlist instead of std::nullopt when a feature is disabled through inheritance.
How it was found
- A top-level publisher page serves a Permissions-Policy header opting out of Privacy Sandbox features.
- The publisher page embeds a cross-origin ad-tech iframe.
- The iframe's inherited policy for those features is set to false.
- The iframe obtains a fixed-permission FencedFrameConfig.
- The iframe creates a fenced frame and navigates it using the config.
- The fenced frame commits and its document accesses the restricted APIs despite the top-level opt-out.
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.
Websites can use a Permissions-Policy header to turn off certain browser features for themselves and any embedded frames. This report found that a coding mistake in the browser meant a nested frame could still use those features even after the top-level site had turned them off. That could let an advertising frame do things the publisher explicitly tried to block.
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.