Race condition in Toolbar (CVE-2026-113076)
The Android extensions site-permissions sub-page rebinds its selection listener to the newly committed origin whenever the active tab navigates. An attacker page could navigate to a victim site while the menu is open, so a later click by the user may grant persistent host permissions to the victim origin instead of the attacker's.
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: The Desktop Android extensions site-permissions sub-page dynamically updates and rebinds its radio-group selection listener on tab navigation events. An attacker-controlled webpage can programmatically navigate to a victim origin while this sub-page is open, causing the menu selection callback to silently update its target origin. If the user subsequently interacts with the menu, they may unwittingly grant persistent host permissions to the victim site, bypassing intended TOCTOU checks.
Affected files:
chrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/extensions/ExtensionsMenuMediator.javachrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/extensions/SitePermissionsPageViewBinder.javachrome/browser/ui/extensions/extensions_menu_view_model.ccchrome/browser/ui/android/extensions/extensions_menu_delegate_android.ccextensions/browser/permissions/site_permissions_helper.cc
Estimated timestamp from git blame: 2026-04-15
Potential Security Bypass in Android Extensions Site-Permissions Menu via Silent Listener Rebinding
Description
In the experimental Desktop Android extensions menu, the per-extension site-permissions sub-page (SITE_PERMISSIONS) incorrectly updates and rebinds its selection listener with a newly resolved origin on model change events, such as those triggered by tab navigations (DidFinishNavigation).
Because of this, an attacker-controlled page can programmatically navigate to a victim site while the user is viewing the site-permissions sub-page. This silent rebinding updates the target origin of the radio buttons to the newly navigated (victim) origin. Since the Android sub-page UI elements utilize hardcoded labels (e.g., "Always on") without displaying the active domain name, the user sees no visual indication of the origin transition. A subsequent selection by the user results in granting persistent host permissions to the victim origin, defeating the Time-of-Check to Time-of-Use (TOCTOU) security guard in SitePermissionsHelper::UpdateSiteAccess.
Technical Analysis & Root Cause
In chrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/extensions/ExtensionsMenuMediator.java, the active page model registers the site-access listener as follows:
private void updateSitePermissionsPage(String extensionId) {
ExtensionsMenuTypes.ExtensionSitePermissionsState sitePermissionsState =
mMenuBridge.getExtensionSitePermissionsState(extensionId);
if (sitePermissionsState == null) {
mMainPageModel.set(CURRENT_PAGE, Page.MAIN);
return;
}
...
mSitePermissionsPageModel.set(
SitePermissionsPageProperties.ON_SITE_ACCESS_SELECTED_LISTENER,
(siteAccess) ->
mMenuBridge.onExtensionSiteAccessSelected(
extensionId, sitePermissionsState.origin, siteAccess));
...
}
Whenever a navigation finishes, onModelChanged() is triggered:
@Override
public void onModelChanged() {
...
} else if (getCurrentPage() == ExtensionsMenuProperties.Page.SITE_PERMISSIONS) {
String extensionId =
mSitePermissionsPageModel.get(SitePermissionsPageProperties.EXTENSION_ID);
updateSitePermissionsPage(extensionId);
}
}
The underlying native state fetches the active tab's committed GURL:
ExtensionsMenuViewModel::GetExtensionSitePermissionsState(...) {
...
content::WebContents* web_contents = GetActiveWebContents();
const GURL& url = web_contents->GetLastCommittedURL();
...
extension_site_permissions.origin = url::Origin::Create(url);
return extension_site_permissions;
}
If the tab navigates, a new lambda is created and propagated to ON_SITE_ACCESS_SELECTED_LISTENER. Since ON_SITE_ACCESS_SELECTED_LISTENER is a WritableObjectPropertyKey, SitePermissionsPageViewBinder.bind() rebinds the listener on the view.
When the user interacts with the UI (e.g., clicks "Always on"), the selection is passed through JNI to:
void ExtensionsMenuDelegateAndroid::OnSiteAccessSelected(
const extensions::ExtensionId& extension_id,
const url::Origin& origin,
extensions::PermissionsManager::UserSiteAccess site_access) {
menu_model_->UpdateSiteAccess(extension_id, origin, site_access);
}
This ultimately executes SitePermissionsHelper::UpdateSiteAccess() [cite: extensions/browser/permissions/site_permissions_helper.cc lines 121-123], which compares expected_origin (the post-navigation victim origin passed from the rebound listener) with actual_origin (the currently active committed origin, which is also the victim origin). Both match, passing the same-origin validation check and persistently granting host permissions to the victim origin.
Potential Attack Path (Suggested Scenario)
Please note: These are potential, suggested steps derived from code tracing as we do not run execution proofs.
- The user visits an attacker-controlled origin
https://attacker.examplewith an extension installed whose host permissions are withheld. - The user is prompted to open the extensions menu and navigates to the "Site Permissions" sub-page for that extension (the listener captures
https://attacker.example). - While the menu is open, the attacker page triggers a programmatic navigation to a victim site
https://victim.example(e.g., viawindow.location = 'https://victim.example'). - The navigation commits, triggering
DidFinishNavigation. The JavaonModelChanged()handler updates the model and silently binds a new listener capturinghttps://victim.exampleas the target origin. - The user clicks "Always on" (which displays static text without the domain name).
- The rebound listener calls native code with
"https://victim.example", and the TOCTOU guard passes since the current page committed origin ishttps://victim.example. Persistent access is granted to the victim origin.
Suggested Remediation
To resolve this issue, do not dynamically update the target origin of the callback when navigations occur while the sub-page is actively open. Alternatively, align the behavior with other UI menus:
- Cache and lock the initial origin when the site-permissions page is first opened. Reject updates to the underlying target origin during active menu display.
- If a navigation event occurs, either dismiss the site permissions sub-page/popup or explicitly compare user selection against the locked origin. If they do not match, abort the operation.
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
Likely the site-permissions page recomputes and rebinds its selection listener from the active tab's committed URL on every model change, so the origin captured at click time is not the origin shown when the page was opened.
Impact
A user could unwittingly grant an extension persistent host permissions to a victim site, though the report is based on code tracing only and no execution proof was run.
What the attacker needed
An installed extension with withheld host permissions; user opens the site-permissions sub-page; attacker page navigates the tab; user clicks a permission option
The fix
The target origin should be cached and locked when the sub-page opens, or the sub-page should be dismissed on navigation, with the selection compared against the locked origin.
How it was found
- The user opens the extensions menu on an attacker page and goes to the Site Permissions sub-page for an extension with withheld host permissions.
- While the menu is open, the attacker page navigates the tab to a victim site.
- The navigation commits and the listener is silently rebound to the victim origin.
- The user clicks 'Always on', which shows no domain name.
- The rebound listener passes the victim origin to native code and the same-origin check passes, granting persistent access.
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.
Browser extensions ask the user for permission to access certain websites. This menu page was meant to remember which site the user was granting access to, but it quietly switched to whatever site the tab moved to next. Because the menu shows no domain name, a user could click 'Always on' and give the extension access to a different site than they intended.
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.