Skip to content
UI spoofing Advisory Advanced CVE-2026-17998

Incorrect security UI in Extensions (CVE-2026-17998)

The 'Allow' button in the Extensions menu main page lacked an input event activation protector, so a layout reflow triggered by an extension's gesture-free host access request could shift the button under the user's cursor. An attacker-controlled extension could thereby obtain an unintended host permission grant from a user's click.

Google Chrome

Originally disclosed on Chrome VRP

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

Overview: The 'Allow' button in the Extensions Menu main page view lacks an input event activation protector. An extension can call the gesture-free host access request API, triggering a layout reflow that shifts the menu elements. This can potentially place the newly appeared 'Allow' button directly under the user's cursor during an active click, resulting in an unintended permission grant.

Affected files:

  • chrome/browser/ui/views/extensions/extensions_menu_main_page_view.cc

Estimated timestamp from git blame: 2023-05-18

Potential Security Issue: Lack of InputEventActivationProtector on Extensions Menu 'Allow' Button

Root Cause Analysis

In chrome/browser/ui/views/extensions/extensions_menu_main_page_view.cc, the method AddExtensionRequestingAccess constructs the per-extension Allow button as a standard views::MdTextButton without any unintended-interaction guard:

C++
views::Builder<views::MdTextButton>()
    .SetCallback(base::BindRepeating(
        &ExtensionsMenuHandler::OnAllowExtensionClicked,
        base::Unretained(menu_handler_), request.extension_id))
    .SetStyle(ui::ButtonStyle::kText)
    ...
    .Build();

When a host access request is dynamically added or removed, the parent view synchronously changes the visibility of requests_section_ and triggers a layout reflow via SizeToPreferredSize():

C++
void ExtensionsMenuMainPageView::SetOptionalSectionVisibility(
    ExtensionsMenuViewModel::OptionalSection optional_section) {
  ...
  case ExtensionsMenuViewModel::OptionalSection::kHostAccessRequests:
    reload_section_->SetVisible(false);
    requests_section_->SetVisible(
        !requests_entries_view_->children().empty());
    break;
  ...
  SizeToPreferredSize();
}

Because the requests_section_ is inserted vertically above menu_entries_, making it visible pushes all standard menu entries downward.

While sibling surfaces (like ExtensionsRequestAccessButton in extensions_request_access_button.cc) protect against accidental clicks using a views::InputEventActivationProtector, the Allow button in the main page of the extensions menu has no such protection. As a result, click events are processed immediately upon layout shifts.

Potential Trigger Steps

Please note: The following are suggested potential steps as our tooling agent has not executed this code to verify a functional proof of concept.

  1. Install an extension that requests host permissions for a specific site (e.g., https://example.com/*), but configure the permissions to be "withheld" by default (or set to "on click").
  2. Open https://example.com/ in the active browser tab.
  3. Open the Extensions Toolbar Menu (the puzzle icon).
  4. The extension calls chrome.permissions.addHostAccessRequest({ tabId: activeTabId }) from its service worker or content script (which does not require a user gesture).
  5. This call dynamically inserts a new request row into the extensions menu. Because this section is located above the extension list, the list shifts down synchronously.
  6. If the user was moving their mouse cursor to click an element in the extension list, the newly inserted "Allow" button can shift directly under the cursor, intercepting the click.
  7. The click lands on the "Allow" button, immediately executing the permission grant callback and persistently writing the kOnSite host permission to ExtensionPrefs on disk without user intent.

Suggested Fix

Integrate views::InputEventActivationProtector into ExtensionsMenuMainPageView (or wrap the button callback handler to validate click events), similar to how input protection is implemented in ExtensionsRequestAccessButton. Before executing OnAllowExtensionClicked, verify that the click event is not a potentially unintended interaction by checking that a sufficient delay has elapsed since the layout reflow occurred.

Evaluated with Chrome root at commit: 3947e01999a53d4e2382e39736cb79d79c7dffcf


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 Allow button was built as a plain text button without the input event activation protector used on sibling surfaces, so clicks were processed immediately after a synchronous layout reflow.

Impact

An extension could obtain a persistent on-site host permission without user intent, though the text notes the trigger steps were not executed and the issue is only potential.

What the attacker needed

An installed extension with withheld host permissions; victim has the site open in the active tab; victim clicks in the extensions menu

The fix

The Allow button should be wrapped with the same input event activation protector used on the request access button, or the click handler should verify enough time has passed since the layout reflow.

How it was found

  1. Install an extension that requests host permissions for a site but has them withheld or set to on click.
  2. Open that site in the active tab.
  3. Open the Extensions toolbar menu.
  4. The extension calls the host access request API without a user gesture.
  5. A new request row is inserted above the extension list, shifting the list down.
  6. A click intended for the list lands on the newly positioned Allow button and grants the permission.

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 a menu changes shape while you are clicking, the button you meant to press can move and a different button can end up under your mouse. Chrome normally guards against this by ignoring clicks that arrive too soon after a layout change, but this particular 'Allow' button had no such guard. An extension could therefore cause a permission prompt to appear just as you click, and your click could grant it access to a site without you meaning to.

What is UI spoofing?

The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Clickjacking and UI spoofing

The lesson behind this report.

The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.