Incorrect authorization in Extensions (CVE-2026-113264)
A logic flaw in Chromium's extension permission model allows a same-site cross-origin prerendered page to bypass the click-to-script permission gate. An attacker could trick a user into clicking an extension icon on their page, inadvertently granting script injection into a victim page on a different origin of the same site.
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: A potential logic flaw in ExtensionActionRunner may allow a same-site cross-origin prerendered page to bypass the "click-to-script" permission gate. Because script injection permissions are managed at the WebContents level and checked against the visible URL, a user clicking an extension on an attacker page can inadvertently authorize script injection into a cross-origin prerendered victim page.
Affected files:
chrome/browser/extensions/extension_action_runner.ccextensions/renderer/extension_injection_host.cc
Estimated timestamp from git blame: 2026-02-10
Summary
A logic error exists in Chromium's extension permission model where script injection requests are managed per-WebContents but evaluated against the currently visible URL. Under the Multiple Page Architecture (MPArch), a same-site cross-origin prerendered page shares a WebContents with its initiator. An attacker can use this to queue a script injection request from a prerendered victim page, which is then inadvertently authorized when the user clicks the extension action on the attacker's visible page.
Prerequisites
- An attacker controls a page (e.g.,
https://evil.example.com). - A sensitive victim page exists on the same site but a different origin (e.g.,
https://login.example.com) and opts into credentialed prerendering via theSupports-Loading-Mode: credentialed-prerenderHTTP header. - The user has installed an extension that uses "click-to-script" (withheld) site access.
Potential Attack Steps
Note: These steps are based on static code analysis. Our tooling does not yet execute code to provide a working proof-of-concept.
- Prerender Initiation: The user visits the attacker's page (
evil.example.com). The page uses the Speculation Rules API to initiate a prerender of the victim page (login.example.com). Because the victim returns thecredentialed-prerenderheader, the prerender is allowed. - Shared State: The prerendered victim page is loaded in a separate
RenderFrameHostbut shares the sameWebContentsobject as the visible attacker page. - Renderer Privilege Check: The extension attempts to inject a content script into the prerendered victim page. In
extensions/renderer/extension_injection_host.cc:105-111, the renderer normally blocks hidden subframes from requesting permission. However, because the prerendered page is its own frame tree,IsOutermostMainFrame()returnstrue. The request is allowed to proceed askWithheld. - Browser Receives IPC: The renderer sends a
RequestScriptInjectionPermissionIPC to the browser. - Faulty URL Validation: In
chrome/browser/extensions/extension_action_runner.cc:260,RequiresUserConsentForScriptInjectionevaluates the permission request againstweb_contents()->GetVisibleURL(). This checks the attacker's URL instead of the requesting prerendered frame's URL. The request is appended to thepending_scripts_queue. - User Interaction: The attacker's page convinces the user to click the extension icon in the toolbar.
- Indiscriminate Permission Grant: The click triggers
ExtensionActionRunner::RunBlockedActions, which grantsactiveTabpermission to the visible origin (evil.example.com). It then callsRunPendingScriptsForExtension. - Flushing the Queue:
RunPendingScriptsForExtensionindiscriminately executes all pending Mojo callbacks in theWebContentsqueue withgranted = true(chrome/browser/extensions/extension_action_runner.cc:321). It does not verify which frame or origin requested the scripts. - Payload Execution: The victim's renderer receives the
granted = trueIPC callback (ScriptInjection::HandlePermission).ScriptInjection::Injectruns immediately without re-verifying the local permission state. The script executes within the victim's context, potentially allowing DOM access and data exfiltration. - Activation: The attacker navigates the user to the prerendered page, activating it. The injected script has already compromised the session.
Suggested Fix
- Browser-Side Validation:
PendingScript(inextension_action_runner.h) should store the origin orRenderFrameHostidentifier of the frame that requested the injection. WhenRunPendingScriptsForExtensionis called, it should only execute callbacks for scripts whose requesting frame matches the newly granted permissions (i.e., the visible main frame and its same-origin subframes). - Renderer-Side Hardening:
ScriptInjection::Inject(inextensions/renderer/script_injection.cc) should consider re-evaluatingCanExecuteOnFrameimmediately before injection to ensure permissions are still valid for its specific context, providing defense-in-depth against delayed or improperly routed IPC grants.
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 browser checks the permission request against the visible page's URL instead of the URL of the frame that actually requested the injection, and then grants permission to all pending requests without verifying their origin.
Impact
The injected script could execute in the victim page's context, potentially allowing DOM access and data exfiltration, but the attack requires specific conditions and has not been demonstrated with a working proof-of-concept.
What the attacker needed
Attacker controls a page on the same site; victim page opts into credentialed prerender; user has an extension with click-to-script access; user clicks the extension icon
The fix
The browser should store the requesting frame's origin or identifier and only execute pending scripts for frames that match the newly granted permissions, and the renderer should re-evaluate permissions before injection.
How it was found
- The user visits the attacker's page, which uses the Speculation Rules API to prerender a victim page on a different origin of the same site.
- The prerendered victim page shares the same WebContents as the attacker's page.
- The extension attempts to inject a content script into the prerendered victim page, and the renderer allows the request to proceed as withheld.
- The browser receives the permission request and checks it against the visible attacker URL, queuing it as pending.
- The attacker convinces the user to click the extension icon, which grants activeTab permission to the attacker's origin and flushes all pending scripts with granted=true.
- The victim's renderer receives the granted callback and executes the script without re-verifying permissions, compromising the victim's session.
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 install a browser extension, it often needs permission to run code on web pages. Some extensions only run when you click their icon, which is a safety feature. This report found a way that a malicious website could trick you into clicking the icon and accidentally give the extension permission to run code on a different, sensitive website you are logged into, like a login page.
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.