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

Insufficient policy enforcement in Extensions (CVE-2026-13945)

Chrome's Linux global shortcuts portal integration forwards all manifest-defined extension commands, including reserved browser shortcuts like Ctrl+T that were rejected during installation, to the system portal as suggested triggers. A malicious extension could therefore hijack reserved shortcuts system-wide if the user approves the portal dialog.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 48 days

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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: On Linux environments using the XDG Global Shortcuts portal (such as KDE Plasma on Wayland), a malicious extension can potentially hijack reserved browser shortcuts like Ctrl+T. This occurs because Chrome incorrectly forwards all manifest-defined commands to the portal as suggested triggers, even if they were internally rejected during installation.

Affected files:

  • chrome/browser/extensions/extension_commands_global_registry.cc
  • ui/base/accelerators/global_accelerator_listener/global_accelerator_listener_linux.cc
  • chrome/browser/extensions/commands/command_service.cc

Estimated timestamp from git blame: 2024-11-19

Summary

A potential vulnerability exists in the Linux implementation of the Global Shortcuts portal integration where Chrome's internal restrictions on global accelerators can be bypassed. When the kGlobalShortcutsPortal feature is active, Chrome may suggest reserved or restricted shortcuts (e.g., Ctrl+T, Ctrl+W) to the system's shortcut portal, allowing a malicious extension to hijack them system-wide upon user approval.

Root Cause Analysis

The issue appears to reside in how ExtensionCommandsGlobalRegistry::PopulateCommands handles external registration. When the platform uses an external portal for shortcuts, Chrome calls CommandService::GetNamedCommands with the ALL query type and ANY_SCOPE filter:

C++
// chrome/browser/extensions/extension_commands_global_registry.cc
if (instance->IsRegistrationHandledExternally()) {
  if (!command_service->GetNamedCommands(
          extension->id(), extensions::CommandService::ALL,
          extensions::CommandService::ANY_SCOPE, commands)) {
    return false;
  }
  // ...
}

In CommandService::GetNamedCommands, if a command's suggested key was rejected during installation (for example, because it is a reserved browser shortcut like Ctrl+T), it will not have an active preference entry. However, because the ALL query type is used, the command is still returned with its raw manifest-defined accelerator intact.

These commands are then passed to GlobalAcceleratorListenerLinux, which iterates through them and sends them to the XDG desktop portal as preferred_trigger values. If the extension includes at least one valid global shortcut, the portal request is triggered for the entire set, including the reserved ones.

Potential Impact

An attacker could potentially craft an extension that requests a legitimate global shortcut (like a Media key) alongside payload commands using reserved keys. The user is presented with a system portal dialog (branded by Chrome) where the reserved keys are pre-filled as suggestions. If approved, the extension hijacks these keys system-wide. Subsequent presses of these keys by the user would be intercepted by the extension, providing it with a valid user gesture and suppressing the browser's default behavior.

Suggested Reproduction Steps (Potential)

  1. Use a Linux environment with the XDG Global Shortcuts portal active (e.g., KDE Plasma on Wayland).

  2. Install an extension with the following commands in its manifest.json:

    JSON
    "commands": {
      "legit_shortcut": {
        "suggested_key": { "default": "MediaPlayPause" },
        "description": "Legitimate shortcut",
        "global": true
      },
      "hijack_ctrl_t": {
        "suggested_key": { "default": "Ctrl+T" },
        "description": "Helper shortcut"
      }
    }
    
  3. Observe if the system portal dialog appears and pre-fills Ctrl+T as a suggested trigger for the second command.

  4. If approved, verify if Ctrl+T is intercepted by the extension system-wide and if Chrome's default "New Tab" behavior is suppressed.

Recommended Fix

Modify ExtensionCommandsGlobalRegistry::PopulateCommands to only fetch commands that are actually active and globally scoped when populating for external registration. Specifically, consider using CommandService::ACTIVE and CommandService::GLOBAL filters to ensure only policy-cleared shortcuts are forwarded to the OS portal.

Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

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.

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 code fetches all commands with the ALL query type and ANY_SCOPE filter instead of only active, globally scoped commands, so commands whose suggested keys were rejected during installation are still returned with their raw manifest accelerators and forwarded to the portal.

Impact

If the user approves the portal dialog, the extension could hijack reserved shortcuts system-wide, intercepting key presses and suppressing Chrome's default behaviour; the report notes this is a potential issue and the reproduction steps are marked as potential.

What the attacker needed

Linux with XDG Global Shortcuts portal; KDE Plasma on Wayland (example); User installs a malicious extension; User approves the portal dialog

The fix

The code should be changed to fetch only active, globally scoped commands when populating for external registration, so only policy-cleared shortcuts reach the OS portal.

How it was found

  1. Use a Linux environment with the XDG Global Shortcuts portal active, such as KDE Plasma on Wayland.
  2. Install an extension whose manifest defines one legitimate global shortcut and one command suggesting a reserved browser shortcut.
  3. Observe whether the system portal dialog appears and pre-fills the reserved shortcut as a suggested trigger.
  4. If approved, check whether the reserved shortcut is intercepted by the extension system-wide and Chrome's default behaviour is suppressed.

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.

On Linux, Chrome can hand extension keyboard shortcuts to the operating system so they work even when the browser is not focused. The bug is that Chrome also hands over shortcuts it had already decided were off-limits, such as Ctrl+T for a new tab. If a user clicks approve in the system dialog, the extension can take over those keys everywhere.

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.