Race condition in Extensions (CVE-2026-113335)
A time-of-check to time-of-use flaw in the extensions request-access toolbar chip meant the origin check compared the live click-time origin with itself, so it always passed. A malicious extension working with an attacker page could race a navigation during the user's click to gain persistent site access to an arbitrary victim origin.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 5 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A potential Time-of-Check to Time-of-Use (TOCTOU) vulnerability exists in the extensions request-access toolbar chip UI on Desktop and Android. Because the toolbar model queries and passes the live, click-time committed origin of the web contents as the expected origin to the permissions helper, the security check is rendered a tautology. A malicious extension could coordinate with an attacker-controlled site to leverage a timed navigation race during a user's click to obtain persistent site permissions for an arbitrary victim origin.
Affected files:
chrome/browser/ui/extensions/extensions_toolbar_view_model.ccchrome/browser/ui/views/extensions/extensions_request_access_button.ccchrome/browser/ui/android/extensions/extensions_toolbar_android.ccchrome/browser/ui/extensions/extensions_toolbar_view_model.h
Estimated timestamp from git blame: 2026-05-28
Summary
A potential Time-of-Check to Time-of-Use (TOCTOU) vulnerability exists in the extensions request-access toolbar button on both Desktop and Android. This could potentially allow a restricted extension to bypass origin-verification checks and gain persistent site permissions to a victim origin.
Technical Details
The SitePermissionsHelper::UpdateSiteAccess method is responsible for updating site access permissions. To prevent TOCTOU navigation races, it accepts an expected_origin parameter and verifies that the current main frame's origin has not changed since the action was initiated:
// extensions/browser/permissions/site_permissions_helper.cc
void SitePermissionsHelper::UpdateSiteAccess(
const std::vector<const Extension*>& extensions,
content::WebContents* web_contents,
PermissionsManager::UserSiteAccess new_access,
const url::Origin& expected_origin) {
url::Origin actual_origin =
web_contents->GetPrimaryMainFrame()->GetLastCommittedOrigin();
...
if (!expected_origin.IsSameOriginWith(actual_origin)) {
return; // Safety guard: abort if navigation occurred
}
...
}
However, when granting site access via the toolbar's request-access button on Desktop or Android, ExtensionsToolbarViewModel::GrantSiteAccess retrieves the live committed origin from the web contents at the exact moment the click is processed, and uses that as the expected_origin:
// chrome/browser/ui/extensions/extensions_toolbar_view_model.cc
void ExtensionsToolbarViewModel::GrantSiteAccess(
content::WebContents* web_contents,
const std::vector<extensions::ExtensionId>& extension_ids) {
...
extensions::SitePermissionsHelper(profile).UpdateSiteAccess(
extensions_to_run, web_contents,
extensions::PermissionsManager::UserSiteAccess::kOnSite,
web_contents->GetPrimaryMainFrame()->GetLastCommittedOrigin()); // <-- Live click-time origin!
}
Because expected_origin is fetched live inside the click handler on the UI thread, the comparison expected_origin.IsSameOriginWith(actual_origin) becomes a tautology (actual_origin == actual_origin). Consequently, if a page navigation commits right before the click event is processed, the safety guard evaluates to true on the newly navigated (victim) origin.
This contrasts with other surfaces like ExtensionContextMenuModel (in chrome/browser/extensions/extension_context_menu_model.cc), which correctly capture the origin when the menu/UI is rendered (origin_) and supply that stored origin when executing the action.
Potential Attack Scenario
Please note that these are suggested/potential steps as our tooling agent does not currently have the capability to run code to produce a working proof of concept.
- A user-installed extension with withheld host permissions (configured for "On click" access) requests host access on an attacker-controlled page
https://attacker.exampleviachrome.permissions.addHostAccessRequest. - The browser displays the request-access chip labeled "Allow 1", attributing the request to
https://attacker.example. - As the user hovers over the chip and initiates a click, the attacker-controlled page programmatically navigates the tab to
https://victim.example. - On navigation commit, the previous host access request is cleared. However, the extension's navigation event listener (e.g.,
onCommitted) immediately callsaddHostAccessRequestagain, registering the request on the newly loadedhttps://victim.exampleorigin before the click registers on the UI thread. - When the user's click completes,
ExtensionsRequestAccessButton::OnButtonPressedorExtensionsToolbarAndroid::OnRequestAccessButtonClickedis triggered, callingGrantSiteAccess. - Since
GrantSiteAccessretrieves the live committed origin (victim.example) and passes it asexpected_origin, the guard inSitePermissionsHelper::UpdateSiteAccessevaluates totruebecause they are both the victim origin. - The extension is granted persistent, unrestricted site permission (
UserSiteAccess::kOnSite) tohttps://victim.example, bypassing the security check.
Suggested Fix
To remediate this potential issue, modify ExtensionsToolbarViewModel::RequestAccessButtonParams or the button UI classes to capture and store the origin at the time the request is rendered, and pass this stored origin as the expected_origin to GrantSiteAccess and UpdateSiteAccess instead of retrieving the live committed origin at click time.
Evaluated with Chrome root at commit: fb72408a8493c46bc75fae1c70d03daec96b3040
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.
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
The click handler passed the live committed origin as the expected origin, making the safety comparison a tautology instead of using the origin captured when the request chip was rendered.
Impact
A malicious extension could gain persistent site permissions for an arbitrary victim origin, though the report presents this as a potential scenario without a working proof of concept.
What the attacker needed
User-installed extension with withheld host permissions; extension configured for 'On click' access; attacker-controlled page; victim origin
The fix
The button UI should capture and store the origin when the request is rendered and pass that stored origin as the expected origin instead of fetching the live committed origin at click time.
How it was found
- An extension with withheld host permissions requests host access on an attacker-controlled page.
- The browser shows the request-access chip attributed to the attacker page.
- As the user hovers and starts to click, the attacker page navigates the tab to the victim origin.
- The extension's navigation listener immediately re-registers the host access request on the victim origin.
- The user's click completes and triggers the grant-site-access path.
- The live victim origin is used as the expected origin, so the guard passes and persistent site access is granted.
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 click an 'Allow' button for an extension, the browser is supposed to check that the page you are on is still the same page the request was shown for. Here it fetched the current page address at the moment of the click and compared it with itself, so the check could never fail. A malicious extension could switch the page to a victim site just before the click lands and end up with lasting permission for that 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.