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

Incorrect authorization in Extensions (CVE-2026-113105)

A permission check incorrectly treats withheld permissions as allowed, causing the browser to mark a renderer as authorised to run an extension's scripts even though the injection was blocked. A compromised renderer can then forge IPC messages to access the extension's storage and messaging APIs.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 6 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 Chrome Security team.

Overview: PermissionsData::CanAccessPage incorrectly treats withheld permissions as allowed during programmatic script injection. This causes the browser to prematurely update the ScriptInjectionTracker, allowing a compromised renderer to bypass IPC security checks and impersonate an extension's content script.

Affected files:

  • extensions/common/permissions/permissions_data.cc
  • extensions/browser/script_injection_tracker.cc
  • extensions/browser/script_executor.cc
  • extensions/browser/scripting_utils.cc
  • chrome/browser/extensions/api/scripting/scripting_api.cc
  • chrome/browser/extensions/api/tabs/tabs_api.cc

Estimated timestamp from git blame: 2024-10-08

Summary

A logical flaw in how the browser handles programmatic script injections for withheld permissions allows an unprivileged, compromised renderer to escalate privileges and impersonate an extension's content script.

When an extension attempts to programmatically inject a script into a page where the user has set access to "On click" (resulting in a withheld permission), the browser-side permission check PermissionsData::CanAccessPage incorrectly evaluates this as permissible. Consequently, the browser proceeds with the injection request and updates the ScriptInjectionTracker to record that the target renderer process is authorized to execute scripts on behalf of the extension.

Although the uncompromised renderer correctly blocks the injection pending user consent, the browser-side tracker is irreversibly poisoned. A compromised renderer can leverage this poisoned state to bypass IPC authorization checks, granting it unauthorized access to the extension's storage APIs and messaging capabilities.

Vulnerability Details

  1. Flawed Permission Check: In extensions/common/permissions/permissions_data.cc, PermissionsData::CanAccessPage checks the permission state via GetPageAccess. However, it incorrectly returns true if the access is withheld:
    C++
    // extensions/common/permissions/permissions_data.cc:423
    return result == PageAccess::kAllowed || result == PageAccess::kWithheld;
    
  2. Premature Tracker Update: Because CanAccessPage returns true, programmatic injection requests (e.g., chrome.scripting.executeScript) proceed to the ScriptExecutor. For JavaScript injections, ScriptExecutor::Handler::SendExecuteCode unconditionally calls ScriptInjectionTracker::WillExecuteCode before dispatching the IPC to the renderer (extensions/browser/script_executor.cc:269).
  3. Irreversible Poisoning: WillExecuteCode adds the extension ID to the RenderProcessHostUserData for the target renderer process. ScriptInjectionTracker does not have a mechanism to revert this state; once a renderer process is marked as having run a script for an extension, it retains that authorization for its lifetime (extensions/browser/script_injection_tracker.cc:278).
  4. Authorization Bypass: A compromised renderer process can now forge Extension API IPCs (e.g., to access chrome.storage) or messaging IPCs (e.g., chrome.runtime.sendMessage). When the browser validates these requests, checks like util::CanRendererActOnBehalfOfExtension (extensions/browser/extension_util.cc:469) and MessageServiceBindings::IsValidMessagingSource (extensions/browser/api/messaging/message_service_bindings.cc:120) rely on ScriptInjectionTracker::DidProcessRunContentScriptFromExtension. Because the tracker was poisoned in step 3, these checks incorrectly return true, allowing the spoofed IPCs.

Impact

This vulnerability breaks the ContentScriptTracker security boundary designed to prevent compromised renderers from spoofing extension identities (as documented in docs/security/compromised-renderers.md). A compromised renderer can escalate its privileges to access extension storage and intercept or send extension messages, potentially leading to cross-origin data exfiltration or further attacks against the extension.

Potential Reproduction Steps

Note: These are suggested steps to trigger the vulnerability; a fully working Proof of Concept exploit has not been executed by our tooling.

  1. Install an extension with host_permissions for https://example.com/* and the scripting permission.
  2. Set the extension's "Site access" to "On click".
  3. Configure the extension to call chrome.scripting.executeScript programmatically (e.g., via a chrome.tabs.onUpdated listener) when navigating to https://example.com.
  4. Navigate to https://example.com. The extension triggers the injection, but the script is withheld.
  5. Assume control of the renderer process for https://example.com (e.g., via a memory corruption vulnerability).
  6. From the compromised renderer, forge an IPC message to the browser process attempting to read chrome.storage.local or send a message via chrome.runtime.sendMessage, specifying the extension's ID as the source.
  7. The browser will incorrectly authorize the IPC, granting access to the extension's privileges.

Suggested Fix

PermissionsData::CanAccessPage should likely only return true for PageAccess::kAllowed. If kWithheld must be handled specially to allow queuing on the renderer side, the ScriptExecutor or ScriptInjectionTracker must be updated to defer recording the injection until the renderer explicitly confirms execution, rather than updating the tracker unconditionally before dispatching the ExecuteCode IPC.

Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b


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 permission check returns true for both allowed and withheld states, and the script injection tracker is updated before the renderer confirms execution.

Impact

A compromised renderer could escalate privileges to access extension storage and intercept or send extension messages, potentially leading to cross-origin data exfiltration or further attacks against the extension.

What the attacker needed

An extension with scripting and host permissions; site access set to 'On click'; compromised renderer process

The fix

The permission check should likely only return true for allowed access, or the tracker should defer recording until the renderer confirms execution.

How it was found

  1. Install an extension with host permissions for a site and the scripting permission.
  2. Set the extension's site access to 'On click'.
  3. Configure the extension to call chrome.scripting.executeScript programmatically when navigating to the site.
  4. Navigate to the site; the extension triggers injection but the script is withheld.
  5. Assume control of the renderer process for the site (e.g., via a memory corruption vulnerability).
  6. From the compromised renderer, forge an IPC message to read chrome.[redacted] or send a message via chrome.runtime.sendMessage, specifying the extension's ID as the source.

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 an extension tries to run a script on a website, the browser checks if it has permission. If the user set access to 'On click', the permission is withheld, but the check wrongly says it's allowed. This tricks the browser into recording that the website's process is allowed to act for the extension, so if that process is later taken over by an attacker, it can pretend to be the extension and read its data.

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.