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

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.cc
  • extensions/browser/api/messaging/message_port.cc
  • extensions/renderer/extension_interaction_provider.cc
  • extensions/renderer/api/messaging/native_renderer_messaging_service.cc
  • extensions/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

  1. Unvalidated Forwarding: The browser's MessagePortHost::PostMessage Mojo handler (in extensions/browser/api/messaging/message_port.cc:66) receives an extensions::mojom::Message from a renderer. The user_gesture field is typemapped and forwarded without any validation through MessageService::PostMessage to the destination port. The browser does not verify if the sending RenderFrameHost actually possessed a user gesture.
  2. 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) sees user_gesture=true and calls NotifyUserActivation(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 an ExtensionInteractionProvider::Scope::ForWorker, which increments an internal interaction count for the worker's V8 context.
  3. Flawed Interaction Check: When the extension's onMessage listener calls an extension API, APIRequestHandler::StartRequest verifies the gesture state via ExtensionInteractionProvider::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 check LastActivationWasRestricted(). It ignores the fact that this activation was a restricted messaging activation, treating it as a full user gesture.
  4. Implicit Browser Trust: Because the renderer believes it has a user gesture, it sets user_gesture=true in the mojom::RequestParams sent to the browser. The browser's ExtensionFunctionDispatcher (extensions/browser/extension_function_dispatcher.cc:103) receives the request and blindly trusts this bit, as noted by an existing TODO(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.

  1. From a compromised renderer hosting a page where a target extension has a content script, craft an extensions::mojom::Message with user_gesture=true.
  2. Send this message via the MessagePortHost::PostMessage Mojo interface.
  3. The browser forwards the message to the target extension's background context or service worker.
  4. The extension process receives the bit and gains a transient user activation or an active interaction scope.
  5. When the extension's onMessage handler 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

  1. Browser-side Validation: The browser must validate the user_gesture bit when receiving extensions::mojom::Message in MessagePortHost::PostMessage. It should verify that the sending RenderFrameHost currently possesses a valid, unrestricted transient user activation before forwarding the bit as true.
  2. Renderer-side Hardening: ExtensionInteractionProvider::HasActiveExtensionInteraction should be updated to enforce restrictions. For frame-based contexts, it must check !script_context->web_frame()->LastActivationWasRestricted() alongside HasTransientUserActivation() to ensure restricted messaging activations cannot be laundered into full API gestures.
  3. Address TODO: Ultimately, the browser should validate the user_gesture bit in ExtensionFunctionDispatcher against authoritative browser-side state, addressing the long-standing TODO(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.

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 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

  1. 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.
  2. Send it through the message port posting interface.
  3. The browser forwards it to the extension's background page or service worker.
  4. The extension process gains a transient user activation or an active interaction scope.
  5. 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.

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.