Incorrect authorization in Extensions (CVE-2026-113129)
A logic flaw in how hardware media keys are handled allows extensions to obtain the activeTab permission without a directed user gesture. A malicious extension can register a media key, and when the user presses it, the extension gains host access to the active tab and can exfiltrate data.
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: Hardware media key presses automatically grant the activeTab permission to all extensions registered for that key. Because media keys are auto-assigned and non-exclusive, malicious extensions can obtain host access to sensitive foreground tabs without any directed user interaction.
Affected files:
chrome/browser/extensions/extension_keybinding_registry.ccchrome/browser/ui/views/extensions/extension_keybinding_registry_views.ccchrome/browser/ui/browser_window/internal/browser_window_features.ccchrome/browser/extensions/commands/command_service.ccextensions/browser/permissions/active_tab_permission_granter.ccextensions/common/command.cc
Estimated timestamp from git blame: 2026-03-05
The activeTab permission is designed to provide temporary host access to an extension only when the user explicitly invokes it (e.g., by clicking its toolbar icon or using a specific, user-configured keyboard shortcut). This ensures that host access is granted only through a deliberate user gesture directed at the extension.
However, a logic flaw in how hardware media keys (e.g., Play/Pause, Next Track) are handled allows extensions to bypass this requirement and obtain ambient host access to the active tab.
Technical Details
- Auto-assignment and Non-exclusivity: Unlike regular keyboard shortcuts, media keys are automatically assigned to extensions upon installation without user confirmation (
CommandService::CanAutoAssignreturnstruefor media keys). Furthermore, media keys are non-exclusive; multiple extensions can register a listener for the exact same media key simultaneously. - Registry and Delegate: In desktop browser windows, extensions are bound via
ExtensionKeybindingRegistryViews. This registry is constructed with anExtensionKeybindingRegistryDelegateTabStrip, whoseGetWebContentsForExtension()method returns theWebContentsof the currently active tab. - Event Interception: When the user has Chrome focused and presses a media key, the event is caught (via
CGEventTapon Mac orviews::FocusManageron Windows) and routed toExtensionKeybindingRegistry::NotifyEventTargets. - Improper Escalation:
ExecuteCommandsiterates through all extensions listening to that specific media key and callsCommandExecutedfor each one. InsideExtensionKeybindingRegistry::CommandExecuted, the code retrieves the active tab'sWebContentsfrom the delegate and callsActiveTabPermissionGranter::GrantIfRequested(extension). - Fake User Gesture: Finally, the
commands.onCommandevent is dispatched to the extension withevent->user_gesture = EventRouter::UserGestureState::kEnabled.
Because ActiveTabPermissionGranter does not independently verify if the action was a directed user gesture, it grants full host permissions to every extension listening to the media key. The extension can then immediately call chrome.scripting.executeScript (authorized by the fake user gesture state) to silently exfiltrate data from the active tab.
Since activeTab and scripting permissions do not trigger installation warnings, this provides a reliable, zero-warning path for malicious extensions to steal data when a user presses a media key.
Potential Reproduction Steps
Note: These are suggested steps based on static analysis.
- Create an MV3 extension requesting
activeTabandscriptingpermissions. - In
manifest.json, register a command with"suggested_key": { "default": "MediaPlayPause" }. - Add a background service worker that listens to
chrome.commands.onCommandand callschrome.scripting.executeScriptto readdocument.body.innerTextfrom the active tab. - Install the extension.
- Navigate to a sensitive site in the active tab (e.g.,
https://mail.google.com). - Press the hardware Play/Pause key on the keyboard.
- Observe that the extension silently executes the script and accesses the page content, despite no directed user gesture toward the extension.
Suggested Fix
ExtensionKeybindingRegistry::CommandExecuted should not automatically grant activeTab permissions for commands triggered by non-exclusive, ambient keys like hardware media keys. The logic at line 199 (granter->GrantIfRequested(extension)) should be conditionally bypassed if command.accelerator().IsMediaKey() is true. Alternatively, activeTab should strictly require a verifiable, directed user gesture, and media keys should perhaps dispatch events without UserGestureState::kEnabled.
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 activeTab permission granter does not check whether the triggering command came from a directed user gesture, so it grants access for ambient media key presses.
Impact
A malicious extension could silently read and exfiltrate data from the active tab when the user presses a media key, with no installation warnings.
What the attacker needed
Victim installs a malicious extension; victim presses a media key; Chrome window is focused
The fix
The activeTab permission should not be granted for commands triggered by non-exclusive ambient keys like media keys, or media keys should dispatch events without the user gesture state.
How it was found
- Create an extension that requests activeTab and scripting permissions.
- Register a command for a media key in the manifest.
- Add a background script that listens for the command and runs a script in the active tab.
- Install the extension.
- Open a sensitive site in the active tab.
- Press the media key and observe the script running without a directed 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 ask for a permission called activeTab, which gives temporary access to the current tab only when the user deliberately clicks the extension or uses a shortcut they set up. This report found that pressing a hardware media key like Play/Pause also gives that access to any extension listening for that key, even though the user did not mean to grant anything to the extension. A malicious extension could then read the page you are looking at.
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.