Incorrect authorization in Permissions (CVE-2026-113084)
A logic mismatch between how one-time permission grants are stored and how they are revoked lets an 'Allow this time' grant on a top-level CSP-sandboxed page survive tab closure. The grant stays active for up to 16 hours or until a non-sandboxed tab for the same origin is opened and closed, so a later visit can use the permission without a prompt.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 5 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 logic discrepancy between the permission-granting code and the one-time permission tracker allows 'Allow this time' grants on top-level CSP-sandboxed pages to persist indefinitely. While the write path falls back to the visible URL (e.g., the root origin) to store the grant, the tracking/revocation path ignores the page due to its opaque origin. Consequently, the temporary permission remains active for up to 16 hours or until a non-sandboxed tab for the same origin is closed.
Affected files:
chrome/browser/permissions/one_time_permissions_tracker.ccchrome/browser/permissions/one_time_permissions_tracker_helper.cccomponents/permissions/permission_context_base.cccomponents/permissions/permission_util.ccchrome/browser/content_settings/one_time_permission_provider.cc
Estimated timestamp from git blame: 2024-08-13
Summary
A logic discrepancy between how permissions are granted (the "write path") and how they are monitored and revoked (the "revocation path") allows "Allow this time" (one-time) permission grants on top-level CSP-sandboxed pages to bypass cleanup. Consequently, rather than being revoked when the tab is closed, the grant persists for up to 16 hours or until a non-sandboxed tab of the same origin is opened and closed.
Potential Root Cause Analysis
1. The Write Path (Grant Storage)
When a permission is requested, PermissionContextBase derives the requesting and embedding origins. For embedding origins, it uses PermissionUtil::GetLastCommittedOriginAsURL on the RenderFrameHost:
GURL PermissionUtil::GetLastCommittedOriginAsURL(
content::RenderFrameHost* render_frame_host) {
...
GURL origin = render_frame_host->GetLastCommittedOrigin().GetURL();
if (origin.is_empty() && render_frame_host->IsInPrimaryMainFrame()) {
if (!web_contents->GetVisibleURL().is_empty()) {
origin = web_contents->GetVisibleURL();
}
}
return origin;
}
If a top-level page is loaded with a CSP sandbox header (e.g. Content-Security-Policy: sandbox allow-scripts), its last committed origin is opaque. Since url::Origin::GetURL() returns an empty GURL for opaque origins, the function falls back to web_contents->GetVisibleURL().
As a result, both requesting_origin and embedding_origin resolve to the visible URL (e.g., https://victim.com/). When the user chooses Allow this time, PermissionContextBase::UpdateSetting saves a SessionModel::ONE_TIME grant to the content settings database under this visible URL's origin.
2. The Revocation Path (Tracker Logic)
OneTimePermissionsTrackerHelper and OneTimePermissionsTracker track tab loads, unloads, and backgrounding to perform cleanup. However, the helper tracks the real committed origin, which is opaque:
void OneTimePermissionsTrackerHelper::PrimaryPageChanged(content::Page& page) {
url::Origin new_origin = page.GetMainDocument().GetLastCommittedOrigin();
...
tracker->WebContentsLoadedOrigin(new_origin);
}
When this opaque origin is passed to the tracker, it checks ShouldIgnoreOrigin:
bool OneTimePermissionsTracker::ShouldIgnoreOrigin(const url::Origin& origin) {
return origin.opaque() || ...;
}
Because the origin is opaque, ShouldIgnoreOrigin returns true, and the tracker ignores the page. It does not track its active tab count or initialize background-expiry timers.
When the tab is closed, NotifyLastPageFromOriginClosed is never called for https://victim.com/, meaning the one-time permission grant remains active inside OneTimePermissionProvider.
3. Constraints & Edge Cases
The vulnerability is constrained by security CHECKs in PermissionContextBase::UpdateSetting:
CHECK_EQ(request_data.embedding_origin,
request_data.embedding_origin.DeprecatedGetOriginAsURL());
Because DeprecatedGetOriginAsURL() strips the path, query, and fragment, any visible URL with a non-empty path (e.g., https://victim.com/sandbox.html) will trigger a browser process crash. Consequently, the persistence attack only succeeds if the sandboxed page is served directly from the origin-form root URL (e.g., https://victim.com/ with a trailing slash and no other path).
Potential Attack Scenario / Trigger Path
Note: These are suggested/potential steps, as our tooling cannot run arbitrary code to produce a live PoC.
- An attacker serves the root path of
https://victim.com/with the headerContent-Security-Policy: sandbox allow-scriptsand HTML that requests a delegated permission (e.g., Geolocation or Media). - The user navigates to
https://victim.com/(a fresh tab/profile). - The page requests the permission. The prompt is displayed to the user attributed to
victim.comdue to the visible URL fallback. - The user selects Allow this time.
- The user closes the tab. Because the tracker ignored the opaque origin, the grant is not revoked.
- A subsequent navigation to
https://victim.com/(sandboxed or non-sandboxed) can silently consume the permission without any prompt.
Suggested Fix
Ensure that OneTimePermissionsTracker and OneTimePermissionsTrackerHelper are aligned with the origin resolution logic used when granting permissions, or ensure that opaque origins cannot obtain/retain permissions associated with their visible origin in a way that bypasses cleanup. One possible fix is to map opaque origins to their corresponding visible origin (if we are in the primary main frame) when performing tracker bookkeeping, or to reject permission requests from opaque origins entirely.
Evaluated with Chrome root at commit: fb72408a8493c46bc75fae1c70d03daec96b3040
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 grant path falls back to the visible URL when the committed origin is opaque, while the tracker deliberately ignores opaque origins, so the two never agree on which origin to clean up.
Impact
A one-time permission could persist for up to 16 hours and be reused without a prompt, but only if the sandboxed page is served from the origin-form root URL, since any other path triggers a browser crash.
What the attacker needed
Victim visits attacker-controlled root URL; victim clicks 'Allow this time'; page served at origin root path only
The fix
The tracker's origin bookkeeping should be aligned with the grant path, for example by mapping opaque origins to their visible origin in the primary main frame, or by rejecting permission requests from opaque origins.
How it was found
- Serve the root URL of a site with a CSP sandbox header and HTML that requests a delegated permission.
- Visit that root URL in a fresh tab or profile.
- The page requests the permission and the prompt is shown attributed to the site.
- The user selects 'Allow this time'.
- The user closes the tab; the grant is not revoked because the tracker ignored the opaque origin.
- A later visit to the same site can use the permission silently without a prompt.
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 you click 'Allow this time' on a permission prompt, the browser is meant to remember it only for that tab and forget it when the tab closes. Here the page is loaded in a special locked-down mode (a sandbox) that gives it no normal identity, so the part of the browser that saves the permission used the visible web address while the part that cleans it up ignored the page. The result is that the temporary permission lingers far longer than it should.
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.