Skip to content
Race condition Advisory Advanced CVE-2026-13957

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

The Extensions menu reads the current page's origin at the moment the user clicks the site-access toggle, rather than the origin shown when the menu was drawn. An attacker page could race a navigation to a sensitive site so the click grants a malicious extension lasting access to that sensitive site instead.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 47 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: A Time-of-Check Time-of-Use (TOCTOU) vulnerability in the Extensions menu allows an attacker to potentially trick a user into granting persistent site permissions to a malicious extension for a sensitive origin. This occurs because the target origin is resolved from the active WebContents at the time of the click rather than being bound to the origin displayed when the menu was rendered.

Affected files:

  • chrome/browser/ui/extensions/extensions_menu_view_model.cc
  • extensions/browser/permissions/site_permissions_helper.cc
  • chrome/browser/ui/views/extensions/extensions_menu_delegate_desktop.cc
  • chrome/browser/ui/android/extensions/extensions_menu_delegate_android.cc

Estimated timestamp from git blame: 2023-05-14

Summary

A potential Time-of-Check Time-of-Use (TOCTOU) vulnerability exists in the Extensions menu's site-access management logic (puzzle-piece icon). When a user interacts with the site-access toggle for an extension, the origin for which access is granted is determined by querying the active WebContents at the moment of the click. Because the Extensions menu remains open during page navigations and updates in-place, an attacker can potentially race a navigation to a sensitive origin to intercept the permission grant.

Vulnerability Details

In ExtensionsMenuViewModel::GrantSiteAccess (and similarly in RevokeSiteAccess), the target URL is retrieved from the active WebContents using GetLastCommittedURL():

C++
// chrome/browser/ui/extensions/extensions_menu_view_model.cc
void ExtensionsMenuViewModel::GrantSiteAccess(const extensions::ExtensionId& extension_id) {
  ...
  content::WebContents* web_contents = GetActiveWebContents();
  auto url = web_contents->GetLastCommittedURL(); // Determined at click-time
  ...
  SitePermissionsHelper permissions_helper(profile);
  permissions_helper.UpdateSiteAccess(*extension, web_contents, new_site_access);
}

The UpdateSiteAccess method in extensions/browser/permissions/site_permissions_helper.cc also re-queries web_contents->GetLastCommittedURL() to perform the actual permission modification.

The Extensions menu does not close automatically when a navigation occurs. Instead, it observes DidFinishNavigation and triggers a UI update via ExtensionsMenuDelegateDesktop::OnPageNavigation to reflect the state of the new page. However, there is no validation that the origin displayed to the user when they initiated the click matches the origin for which the permission is ultimately granted.

Potential Attack Scenario

  1. A user installs a malicious extension that requests broad host permissions (e.g., <all_urls>) but currently has those permissions withheld (Runtime Host Permissions enabled).
  2. The user visits an attacker-controlled site (e.g., https://attacker.example).
  3. The user opens the Extensions menu. The menu correctly shows the extension's site access as "Off" for the current origin.
  4. The attacker page detects the menu interaction (e.g., via window.blur) and initiates a top-level navigation to a sensitive site (e.g., https://victim.example).
  5. The user clicks the toggle to grant site access.
  6. If the navigation to victim.example commits on the UI thread just before the click event is processed by GrantSiteAccess, the code will read the new sensitive URL and grant the extension persistent host permissions for victim.example instead of attacker.example.

Impact

An attacker can obtain durable host permissions for a sensitive origin without informed user consent. This allows a malicious extension to inject content scripts, read cookies, and access sensitive data on the victim origin indefinitely.

Suggested Fix

The Extensions menu should bind the site-access action to the origin that was active when the UI was rendered or when the user initiated the click. ExtensionsMenuViewModel::GrantSiteAccess should accept an url::Origin parameter representing the intended target, and the implementation should verify that this origin still matches the current state of the WebContents before proceeding with the grant.

Note: These steps are suggested based on source code analysis; our current environment does not support running a functional Proof of Concept.

Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a


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 permission grant re-reads the active tab's last committed URL at click time instead of using the origin that was displayed when the menu was rendered, with no check that the two match.

Impact

A malicious extension could gain lasting host permissions for a sensitive origin without informed consent, letting it inject content scripts and read data there; the report notes no working proof of concept was run.

What the attacker needed

Victim installs a malicious extension; extension host permissions withheld; victim visits attacker page; victim opens Extensions menu and clicks

The fix

The menu should bind the action to the origin shown when the UI was rendered and verify it still matches the tab before granting.

How it was found

  1. Install a malicious extension that requests broad host permissions but has them withheld.
  2. Visit an attacker-controlled site and open the Extensions menu, which shows access as off.
  3. The attacker page detects the menu interaction and starts a top-level navigation to a sensitive site.
  4. Click the toggle to grant site access.
  5. If the navigation commits just before the click is processed, the grant applies to the sensitive site.

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 you open the puzzle-piece Extensions menu, it shows which sites an extension may access. The code decides which site you meant by looking at the page open at the instant you click, not the page shown when the menu appeared. If a page can swap itself for another site just before your click, the permission may land on the wrong site.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.