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

Incorrect authorization in Extensions (CVE-2026-113272)

A permission check in the declarativeContent RequestContentScript action treated withheld host permissions as allowed, so the browser-side ScriptInjectionTracker marked a renderer as an authorised content script before any code ran. A compromised renderer could then use that state to impersonate the extension's content script and reach privileged extension APIs.

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: The RequestContentScript action in the declarativeContent API incorrectly uses a permission check that returns true for withheld host permissions. This causes the ScriptInjectionTracker to prematurely authorize a renderer process to act as an extension's content script, potentially allowing a compromised renderer to bypass identity validation.

Affected files:

  • chrome/browser/extensions/api/declarative_content/content_action.cc
  • extensions/common/permissions/permissions_data.cc
  • extensions/browser/script_injection_tracker.cc

Estimated timestamp from git blame: 2026-04-14

Summary

A logic error in the browser-side implementation of declarativeContent.RequestContentScript allows for the potential poisoning of the ScriptInjectionTracker. When an extension uses a declarative rule to inject a content script, the browser process verifies permissions but incorrectly accepts cases where host permissions are withheld (e.g., the 'On click' setting). This leads to the ScriptInjectionTracker recording that the extension has run code in the renderer process before any script has actually executed or user consent has been granted. A compromised renderer can leverage this state to spoof a content script's identity and access privileged extension APIs.

Root Cause Analysis

In chrome/browser/extensions/api/declarative_content/content_action.cc, the function RequestContentScript::InstructRenderProcessToInject performs a permission check before notifying the ScriptInjectionTracker:

C++
// chrome/browser/extensions/api/declarative_content/content_action.cc:384
if (!extension->permissions_data()->CanAccessPage(
        contents->GetLastCommittedURL(), ExtensionTabUtil::GetTabId(contents),
        &error)) {
  return;
}

ScriptInjectionTracker::WillExecuteCode(base::PassKey<RequestContentScript>(),
                                        contents->GetPrimaryMainFrame(),
                                        *extension);

The CanAccessPage method (defined in extensions/common/permissions/permissions_data.cc) is designed to be over-permissive for legacy reasons. It returns true even if the access level is PageAccess::kWithheld:

C++
// extensions/common/permissions/permissions_data.cc:423
return result == PageAccess::kAllowed || result == PageAccess::kWithheld;

Consequently, if a declarative rule matches on a site where the user has withheld permissions, ScriptInjectionTracker::WillExecuteCode is called immediately. This function updates the ScriptInjectionTracker state, marking the renderer process as authorized for that extension's content scripts. While the renderer process will later block the actual injection until consent is granted, the browser-side tracker is already poisoned.

Potential Impact

The ScriptInjectionTracker is a defense-in-depth mechanism used to validate IPCs. A compromised renderer can exploit a poisoned tracker to:

  1. Bypass checks in ExtensionFunctionDispatcher::ValidateRequest, allowing it to call extension APIs (e.g., chrome.storage) available to content scripts.
  2. Bypass identity checks in IsValidMessagingSource, allowing it to send/receive messages as the extension's content script.
  3. Receive extension events via EventRouter::IsProcessAuthorizedForMainThreadExtensionListener.

Suggested Attack Steps (Potential)

  1. An attacker provides an extension with declarativeContent and broad host permissions (e.g., <all_urls>).
  2. The user installs the extension and sets its Site Access to On click.
  3. The extension registers a declarativeContent rule with a RequestContentScript action for a specific target site.
  4. The user navigates to the target site. The ScriptInjectionTracker is poisoned despite the injection being blocked in the renderer.
  5. The attacker exploits an unrelated renderer vulnerability (e.g., a Blink memory corruption) to gain control of the process.
  6. The compromised renderer sends an IPC to the browser process (e.g., mojom::LocalFrameHost::Request) claiming the extension's identity and requesting access to privileged APIs. The browser trusts the identity because of the poisoned tracker state.

Recommended Fix

In RequestContentScript::InstructRenderProcessToInject, the permission check should specifically require PageAccess::kAllowed rather than using the over-permissive CanAccessPage. Alternatively, check the returned PageAccess and only proceed to WillExecuteCode if access is explicitly granted.

Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e


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.

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 permission helper CanAccessPage was written to be over-permissive for legacy reasons and returns true for withheld access, so the caller never distinguishes 'allowed' from 'withheld' before recording authorisation.

Impact

A compromised renderer could bypass identity checks to call content-script extension APIs, send and receive messages as the extension, and receive extension events, but only after the attacker has separately exploited a renderer vulnerability.

What the attacker needed

Malicious or compromised extension installed; user sets site access to on click; separate renderer exploit needed

The fix

The permission check should require PageAccess::kAllowed explicitly, or inspect the returned PageAccess and only call WillExecuteCode when access is actually granted.

How it was found

  1. An extension with declarativeContent and broad host permissions is installed.
  2. The user sets the extension's site access to on click.
  3. The extension registers a declarativeContent rule with a RequestContentScript action for a target site.
  4. The user visits the target site, which poisons the tracker even though injection is blocked in the renderer.
  5. The attacker uses a separate renderer vulnerability to take control of the process.
  6. The compromised renderer sends an IPC claiming the extension's identity to reach privileged APIs.

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.

Extensions can ask the browser to run their code inside a web page. Normally the browser only trusts a page's process to act as that extension after the user has actually allowed it. Here the browser recorded that trust too early, so a page process that an attacker had already broken into could pretend to be the extension and use its powers.

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.