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.ccextensions/browser/script_injection_tracker.ccextensions/browser/script_executor.ccextensions/browser/scripting_utils.ccchrome/browser/extensions/api/scripting/scripting_api.ccchrome/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
- Flawed Permission Check: In
extensions/common/permissions/permissions_data.cc,PermissionsData::CanAccessPagechecks the permission state viaGetPageAccess. However, it incorrectly returnstrueif the access is withheld:C++ // extensions/common/permissions/permissions_data.cc:423 return result == PageAccess::kAllowed || result == PageAccess::kWithheld; - Premature Tracker Update: Because
CanAccessPagereturnstrue, programmatic injection requests (e.g.,chrome.scripting.executeScript) proceed to theScriptExecutor. For JavaScript injections,ScriptExecutor::Handler::SendExecuteCodeunconditionally callsScriptInjectionTracker::WillExecuteCodebefore dispatching the IPC to the renderer (extensions/browser/script_executor.cc:269). - Irreversible Poisoning:
WillExecuteCodeadds the extension ID to theRenderProcessHostUserDatafor the target renderer process.ScriptInjectionTrackerdoes 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). - 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 likeutil::CanRendererActOnBehalfOfExtension(extensions/browser/extension_util.cc:469) andMessageServiceBindings::IsValidMessagingSource(extensions/browser/api/messaging/message_service_bindings.cc:120) rely onScriptInjectionTracker::DidProcessRunContentScriptFromExtension. Because the tracker was poisoned in step 3, these checks incorrectly returntrue, 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.
- Install an extension with
host_permissionsforhttps://example.com/*and thescriptingpermission. - Set the extension's "Site access" to "On click".
- Configure the extension to call
chrome.scripting.executeScriptprogrammatically (e.g., via achrome.tabs.onUpdatedlistener) when navigating tohttps://example.com. - Navigate to
https://example.com. The extension triggers the injection, but the script is withheld. - Assume control of the renderer process for
https://example.com(e.g., via a memory corruption vulnerability). - From the compromised renderer, forge an IPC message to the browser process attempting to read
chrome.storage.localor send a message viachrome.runtime.sendMessage, specifying the extension's ID as the source. - 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.
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
- Install an extension with host permissions for a site and the scripting permission.
- Set the extension's site access to 'On click'.
- Configure the extension to call chrome.scripting.executeScript programmatically when navigating to the site.
- Navigate to the site; the extension triggers injection but the script is withheld.
- Assume control of the renderer process for the site (e.g., via a memory corruption vulnerability).
- 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.