Incorrect authorization in API (CVE-2026-121062)
The browser forwarded a user_gesture flag from renderer-supplied extension IPC messages without checking whether the sender really had a user gesture, and the receiving extension context then treated it as a genuine activation. A compromised renderer could therefore trigger gesture-gated extension APIs such as permission requests, side panel opening or tab capture without any real user interaction.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 7 months
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: A compromised renderer can forge the user_gesture bit in extension IPC messages, which the browser forwards unvalidated. This grants the target extension an unearned user activation, allowing it to bypass gesture gates for sensitive APIs like chrome.permissions.request() or chrome.sidePanel.open().
Affected files:
extensions/browser/api/messaging/message_service.ccextensions/browser/api/messaging/message_port.ccextensions/renderer/extension_interaction_provider.ccextensions/renderer/api/messaging/native_renderer_messaging_service.ccextensions/browser/extension_function_dispatcher.cc
Estimated timestamp from git blame: 2026-02-09
A vulnerability exists in the Chrome extension messaging system where the browser fails to validate the user_gesture boolean field in extensions::mojom::Message IPCs sent by a renderer. This allows a compromised renderer to forge a user gesture bit and have it forwarded to other extension contexts, effectively laundering the bit into a valid transient user activation in a more privileged process.
Vulnerability Details
- Unvalidated Forwarding: The browser's
MessagePortHost::PostMessageMojo handler (inextensions/browser/api/messaging/message_port.cc:66) receives anextensions::mojom::Messagefrom a renderer. Theuser_gesturefield is typemapped and forwarded without any validation throughMessageService::PostMessageto the destination port. The browser does not verify if the sendingRenderFrameHostactually possessed a user gesture. - Activation Granted in Target: When the message arrives at the destination extension renderer, the behavior depends on the context:
- Background Pages:
NativeRendererMessagingService::DeliverMessageToBackgroundPage(extensions/renderer/api/messaging/native_renderer_messaging_service.cc:547) seesuser_gesture=trueand callsNotifyUserActivation(kExtensionMessaging*). This grants the frame a transient user activation (which is internally marked as restricted). - Service Workers:
DeliverMessageToWorker(native_renderer_messaging_service.cc:526) creates anExtensionInteractionProvider::Scope::ForWorker, which increments an internal interaction count for the worker's V8 context.
- Background Pages:
- Flawed Interaction Check: When the extension's
onMessagelistener calls an extension API,APIRequestHandler::StartRequestverifies the gesture state viaExtensionInteractionProvider::HasActiveExtensionInteraction(extensions/renderer/extension_interaction_provider.cc:105).- For Service Workers, it checks the artificially inflated interaction count and returns
true. - For background pages, it checks
script_context->web_frame()->HasTransientUserActivation(). Crucially, it fails to checkLastActivationWasRestricted(). It ignores the fact that this activation was a restricted messaging activation, treating it as a full user gesture.
- For Service Workers, it checks the artificially inflated interaction count and returns
- Implicit Browser Trust: Because the renderer believes it has a user gesture, it sets
user_gesture=truein themojom::RequestParamssent to the browser. The browser'sExtensionFunctionDispatcher(extensions/browser/extension_function_dispatcher.cc:103) receives the request and blindly trusts this bit, as noted by an existingTODO(crbug.com/40055124): Validate params.user_gesture.
Impact
This flaw allows a compromised renderer (e.g., a web page where an extension has a content script) to trigger gesture-gated extension APIs. This includes:
chrome.permissions.request(): Allows timing permission dialogs for UI-confusion or clickjacking attacks.chrome.sidePanel.open(): Can be triggered silently without any user-visible prompt.chrome.tabs.captureVisibleTab(): Can be used to bypass intended interaction requirements for cross-origin data exfiltration.
Potential Reproduction Steps
Note: These are suggested steps, as our setup cannot execute code to provide a working PoC.
- From a compromised renderer hosting a page where a target extension has a content script, craft an
extensions::mojom::Messagewithuser_gesture=true. - Send this message via the
MessagePortHost::PostMessageMojo interface. - The browser forwards the message to the target extension's background context or service worker.
- The extension process receives the bit and gains a transient user activation or an active interaction scope.
- When the extension's
onMessagehandler executes and calls a gesture-gated API (e.g.,chrome.sidePanel.open()), the call succeeds despite the absence of an actual user gesture on the device.
Suggested Fix
- Browser-side Validation: The browser must validate the
user_gesturebit when receivingextensions::mojom::MessageinMessagePortHost::PostMessage. It should verify that the sendingRenderFrameHostcurrently possesses a valid, unrestricted transient user activation before forwarding the bit astrue. - Renderer-side Hardening:
ExtensionInteractionProvider::HasActiveExtensionInteractionshould be updated to enforce restrictions. For frame-based contexts, it must check!script_context->web_frame()->LastActivationWasRestricted()alongsideHasTransientUserActivation()to ensure restricted messaging activations cannot be laundered into full API gestures. - Address TODO: Ultimately, the browser should validate the
user_gesturebit inExtensionFunctionDispatcheragainst authoritative browser-side state, addressing the long-standingTODO(crbug.com/40055124).
Evaluated with Chrome root at commit: 0eb4855bda702feaaa8b899336664f97e3df88b8
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. Please feel free to reach out to me if you have concerns or feedback.
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 trusted a renderer-supplied user_gesture boolean in extension messaging IPC without validating it against real browser-side activation state, and the renderer-side interaction check ignored that the activation was restricted.
Impact
A compromised renderer could trigger gesture-gated extension APIs, enabling timing of permission dialogs for UI confusion, silent side panel opening, and capture of visible tab content; the text notes the reproduction steps were not actually executed.
What the attacker needed
Compromised renderer process; target extension has a content script on that page; extension listens for messages
The fix
The browser should validate the gesture bit against authoritative browser-side activation state, and the renderer-side interaction check should also reject restricted activations.
How it was found
- From a compromised renderer on a page where the target extension has a content script, craft a message with the gesture flag set to true.
- Send it through the message port posting interface.
- The browser forwards it to the extension's background page or service worker.
- The extension process gains a transient user activation or an active interaction scope.
- The extension's message handler calls a gesture-gated API and the call succeeds without a real gesture.
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 only call some sensitive features after the user has actually clicked or typed something; the browser tracks this as a 'user gesture'. Here the browser passed along a claim of a gesture that came from a web page's process without checking it, and the extension side believed it. So a malicious page could make an extension do things that should need a real click.
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.