Skip to content
Access control Advisory Intermediate CVE-2026-11254

Inappropriate implementation in Permissions (CVE-2026-11254)

A logic error in Chrome's OneTimePermissionProvider causes it to skip clearing one-time permission grants (such as camera and microphone) when the user clears browsing data or resets their profile. An attacker who keeps a tab open could retain access to sensitive sensors even after the user explicitly revokes permissions.

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 error exists in OneTimePermissionProvider::ClearAllContentSettingsRules due to an inverted conditional guard. This flaw causes the provider to return early when attempting to clear the exact content types it manages, such as camera and microphone one-time grants. As a result, ephemeral permissions survive "Clear Browsing Data (All Time)" and "Profile Reset" operations if the originating tab remains open.

Affected files:

  • chrome/browser/content_settings/one_time_permission_provider.cc

Estimated timestamp from git blame: 2024-06-18

Summary

Chrome's OneTimePermissionProvider manages ephemeral "Allow this time" grants for sensitive permissions like Geolocation, Camera, and Microphone. When a user performs a global privacy reset (such as clearing browsing data for "All Time" or resetting their profile), these grants are supposed to be wiped from memory.

However, a potential logic error in the code prevents this from happening. A missing negation (!) in a guard condition causes the provider to abort the clearing process for the exact permission types it is responsible for managing. Consequently, an attacker who keeps their tab active can retain access to sensitive sensors even after the user explicitly clears their site data.

Root Cause

The issue is located in chrome/browser/content_settings/one_time_permission_provider.cc within the ClearAllContentSettingsRules function:

C++
void OneTimePermissionProvider::ClearAllContentSettingsRules(
    ContentSettingsType content_type) {
  if (permissions::PermissionUtil::DoesStoreTemporaryGrantsInHcsm(
          content_type)) {
    return; // INVERTED GUARD: Returns early for types it manages!
  }
  base::AutoLock lock(value_map_.GetLock());
  value_map_.DeleteValues(content_type);
}

For one-time permissions like MEDIASTREAM_CAMERA, DoesStoreTemporaryGrantsInHcsm(content_type) correctly evaluates to true. Because the if statement lacks a logical NOT (!), the condition evaluates to true, causing the function to immediately return.

This skips the value_map_.DeleteValues(content_type) call entirely. In all other methods within this class (e.g., GetRule, SetWebsiteSetting), the guard is correctly written as if (!permissions::PermissionUtil::DoesStoreTemporaryGrantsInHcsm(content_type)).

Potential Reproduction Steps

Note: These are suggested steps to trigger the vulnerability based on static analysis; our tooling agent does not yet have the ability to run code or execute a live proof-of-concept.

  1. The user navigates to a malicious site (e.g., https://attacker.example) that requests camera access.
  2. The user selects "Allow this time" on the permission prompt.
  3. The attacker's site gains camera access and intentionally keeps the tab active (e.g., in the background).
  4. The user, wishing to revoke all access, navigates to chrome://settings/clearBrowserData and clears "Site settings" for the "All time" time range (or performs a "Restore settings to their original defaults").
  5. This triggers HostContentSettingsMap::ClearSettingsForOneType, which calls the flawed ClearAllContentSettingsRules method on all providers.
  6. Due to the bug, the OneTimePermissionProvider fails to clear the grant.
  7. The user switches back to the attacker's tab.
  8. The attacker's page executes navigator.mediaDevices.getUserMedia({video: true}) again (or simply performs a same-origin reload).
  9. Chrome silently grants the permission using the stale in-memory rule, completely bypassing the user's explicit privacy reset.

Suggested Fix

Correct the guard condition in OneTimePermissionProvider::ClearAllContentSettingsRules by adding the missing negation (!), matching the pattern used in the rest of the class:

C++
void OneTimePermissionProvider::ClearAllContentSettingsRules(
    ContentSettingsType content_type) {
  if (!permissions::PermissionUtil::DoesStoreTemporaryGrantsInHcsm(
          content_type)) {
    return;
  }
  base::AutoLock lock(value_map_.GetLock());
  value_map_.DeleteValues(content_type);
}

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 an inverted conditional guard in ClearAllContentSettingsRules: the function returns early for permission types it should clear, because the condition lacks a logical NOT.

Impact

An attacker could retain access to camera and microphone after the user clears browsing data, but only if the tab remains open.

What the attacker needed

Victim visits malicious site; victim grants one-time permission; tab remains open

The fix

The guard condition should be corrected by adding the missing negation, so that the function clears the permission types it manages.

How it was found

  1. The user visits a malicious site that requests camera access.
  2. The user selects 'Allow this time' on the permission prompt.
  3. The attacker's site keeps the tab active in the background.
  4. The user clears 'Site settings' for 'All time' in Chrome settings.
  5. The user returns to the attacker's tab.
  6. The attacker's page requests camera access again and Chrome silently grants it.

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 allow a website to use your camera 'just this once', Chrome stores that permission temporarily. If you later clear your browsing data, Chrome is supposed to forget that permission. But a coding mistake means Chrome forgets to forget it, so the website can keep using your camera until you close the tab.

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.