Skip to content
Access control Advisory Advanced CVE-2026-11260

Policy bypass in Permissions (CVE-2026-11260)

A logic flaw in permission handling causes sandboxed documents with opaque origins to fall back to the visible URL, allowing them to request delegated permissions like Geolocation as if they were the hosting origin. An attacker could exploit this to silently reuse existing permissions or spoof permission prompts.

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 without the security team.

Overview: A potential logic flaw in PermissionUtil::GetLastCommittedOriginAsURL causes it to incorrectly fall back to the visible URL when a top-level document has an opaque origin. This allows sandboxed documents to request delegated permissions (like Geolocation) using the hosting origin's identity. An attacker could exploit this to bypass CSP sandbox isolation, leading to silent grant reuse or permission prompt spoofing.

Affected files:

  • components/permissions/permission_util.cc
  • content/browser/permissions/permission_util.cc
  • components/permissions/permission_manager.cc
  • components/permissions/permission_context_base.cc
  • content/browser/permissions/permission_controller_impl.cc
  • components/permissions/permission_request_manager.cc

Estimated timestamp from git blame: 2024-08-13

Background

The Content-Security-Policy (CSP) sandbox directive is designed to isolate untrusted content by assigning it an opaque origin, which prevents it from inheriting the authority of its hosting origin. However, a potential logic flaw allows a sandboxed top-level document to bypass this restriction for certain delegated permissions.

Vulnerability Details

Initial logic and parameters are validated: When a top-level document is served with Content-Security-Policy: sandbox allow-scripts (without allow-same-origin), it commits with an opaque origin. If the document requests a delegated permission such as Geolocation via navigator.geolocation.getCurrentPosition(), standard Permissions Policy and secure context checks in Blink succeed, as the opaque origin is same-origin with itself and inherits the precursor's trustworthy status. The request is subsequently routed to the browser process's PermissionManager::RequestPermissionsInternal.

At this point, the requesting_origin is correctly identified as an empty URL due to the opaque origin.

However, the logic leaps directly to a fallback mechanism in PermissionUtil::GetLastCommittedOriginAsURL. Because the origin's URL is empty, the function falls back to web_contents->GetVisibleURL():

C++
if (render_frame_host->GetLastCommittedOrigin().GetURL().is_empty()) {
  if (!web_contents->GetVisibleURL().is_empty()) {
    return web_contents->GetVisibleURL();
  }
}

Because Geolocation uses PermissionDelegationMode::kDelegated, PermissionUtil::GetCanonicalOrigin ignores the empty requesting origin and adopts this visible URL as the embedding origin. Consequently, the request is validated against the hosting origin's visible URL rather than being rejected for having an invalid/opaque origin, completely bypassing the sandbox isolation.

Potential Attack Steps

Note: These are suggested steps based on static analysis; our tooling does not currently run active proof-of-concept exploits.

  1. An attacker places user-generated content on a victim site (e.g., https://victim.com/ugc-viewer).
  2. The endpoint serves the content with the response header Content-Security-Policy: sandbox allow-scripts.
  3. The attacker's HTML executes a permission request, such as navigator.geolocation.getCurrentPosition(...).
  4. Impact 1 (Silent Grant Reuse): If the victim previously granted location access to victim.com, the sandboxed document silently inherits the permission and receives location data without prompting the user.
  5. Impact 2 (Prompt Spoofing): If no grant exists, the browser prompts the user, identifying the requester as victim.com instead of an untrusted or null origin, deceiving them into granting access.

Suggested Fix

Modify PermissionUtil::GetLastCommittedOriginAsURL so that it does not fall back to GetVisibleURL for properly committed opaque origins. The fallback should be restricted to specific edge cases (e.g., pending navigations or specific Android file:/// schemes). Ensure that permission canonicalization correctly rejects or maintains the empty URL state for opaque origins to prevent unauthorized delegation.

Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33


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.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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 `PermissionUtil::GetLastCommittedOriginAsURL` falls back to the visible URL when the committed origin's URL is empty, instead of preserving the opaque origin state.

Impact

An attacker could bypass CSP sandbox isolation to silently reuse existing permissions or spoof permission prompts, potentially leading to unauthorized access to location data or other delegated permissions.

What the attacker needed

Attacker can place user-generated content; victim site uses CSP sandbox; victim visits the sandboxed content

The fix

The function should be modified to not fall back to the visible URL for properly committed opaque origins, restricting the fallback to specific edge cases.

How it was found

  1. An attacker places user-generated content on a victim site.
  2. The endpoint serves the content with a CSP sandbox header.
  3. The attacker's HTML executes a permission request, such as for geolocation.
  4. If the victim previously granted permission to the site, the sandboxed document silently inherits it.
  5. If no grant exists, the browser prompts the user, identifying the requester as the victim site.

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.

When a website uses a security feature called CSP sandbox, it makes the page run as if it has no real origin, so it cannot access things tied to the site's identity. This report found that for some permissions like location, the browser mistakenly uses the visible web address instead of the empty origin, so the sandboxed page can ask for and get permissions as if it were the main site.

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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.