Inappropriate implementation in UI (CVE-2026-13973)
A logic bug in the SubresourceFilter bubble model causes the user's choice to allowlist ads to be applied to a different origin if a navigation commits while the bubble is closing. An attacker could make a user unintentionally grant a persistent ad-allowlist exception to an arbitrary target site.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 46 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 logic bug in the SubresourceFilter bubble model allows an attacker-controlled site to redirect a user's intent to allowlist ads onto a different origin. This occurs because the bubble model live-reads the current primary page from the WebContents during its asynchronous closing process, potentially after a navigation has committed. This leads to a persistent cross-origin bypass of the subresource filter for an arbitrary target site.
Affected files:
chrome/browser/ui/content_settings/content_setting_bubble_model.ccchrome/browser/ui/views/content_setting_bubble_contents.cccomponents/subresource_filter/content/browser/profile_interaction_manager.cccomponents/subresource_filter/content/browser/subresource_filter_content_settings_manager.cc
Estimated timestamp from git blame: 2018-07-13
Root Cause Analysis
The ContentSettingSubresourceFilterBubbleModel::CommitChanges() function, located in chrome/browser/ui/content_settings/content_setting_bubble_model.cc, resolves the target Page at commit time from the live WebContents, rather than using a snapshot of the page URL taken when the bubble was first opened.
void ContentSettingSubresourceFilterBubbleModel::CommitChanges() {
if (is_checked_) {
subresource_filter::ContentSubresourceFilterThrottleManager::FromPage(
web_contents()->GetPrimaryPage())
->OnReloadRequested();
}
}
The UI host, ContentSettingBubbleContents, calls CommitChanges() from its WindowClosing() method. When a navigation occurs while the bubble is open, ContentSettingBubbleContents::PrimaryPageChanged calls GetWidget()->Close(). In the Chromium Views framework, Widget::Close() is asynchronous and posts a task to the message loop to perform the actual destruction.
By the time the window actually closes and WindowClosing() invokes CommitChanges(), a pending navigation may have already committed. Consequently, web_contents()->GetPrimaryPage() returns the new page. When OnReloadRequested() is subsequently called on the new page's throttle manager, it incorrectly applies a persistent ALLOW setting for ContentSettingsType::ADS to the destination origin's URL.
This behavior contrasts with other bubble models (e.g., ContentSettingStorageAccessBubbleModel), which correctly snapshot the relevant URL at construction time to prevent origin confusion.
Potential Attack Scenario
- A user visits an attacker-controlled origin (Origin A) that is on the Safe Browsing abusive-ads list. The subresource filter activates, and the "Ads blocked" indicator appears in the omnibox.
- The user clicks the indicator to open the Ads bubble.
- The user checks the "Always allow ads on this site" checkbox, which sets the model's internal
is_checked_state to true. - Before the user closes the bubble, JavaScript on Origin A triggers a cross-origin navigation to a target origin (Origin B) (e.g.,
location.href = 'https://target.example/'). - The navigation to Origin B commits. This triggers
PrimaryPageChangedin the browser UI, which initiates an asynchronous widget close. - The close task executes, calling
CommitChanges(). Because Origin B is now the primary page, its URL is retrieved from theWebContents. - Chrome writes a persistent
ALLOWsetting forContentSettingsType::ADSfor Origin B and reloads it, effectively allowlisting the site for ads bypass indefinitely.
Impact
An attacker can cause a user to unintentionally grant a persistent allowlist exception for the subresource filter to an arbitrary origin. While the subresource filter is a UX/anti-abuse feature, this represents a cross-origin authorization bypass caused by origin confusion in a privileged browser process.
Suggested Fix
The ContentSettingSubresourceFilterBubbleModel should snapshot the URL or Origin of the page at construction time and use that cached value in CommitChanges(), rather than querying the WebContents for the live primary page. This pattern is already used in other content setting bubbles to ensure user intent is applied to the correct origin.
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.
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 bubble model reads the current page from the live WebContents at commit time instead of using a snapshot of the page URL taken when the bubble was opened.
Impact
An attacker could cause a user to unintentionally grant a persistent allowlist exception for the subresource filter to an arbitrary origin, bypassing ad blocking for that site.
What the attacker needed
Victim visits attacker-controlled site; site is on Safe Browsing abusive-ads list; victim opens ads bubble and checks allow; JavaScript triggers navigation before close
The fix
The bubble model should snapshot the page URL or origin at construction time and use that cached value in CommitChanges() instead of querying the live WebContents.
How it was found
- Visit an attacker-controlled origin that is on the Safe Browsing abusive-ads list, so the subresource filter activates and the ads indicator appears.
- Click the ads indicator to open the Ads bubble.
- Check the 'Always allow ads on this site' checkbox.
- Before closing the bubble, have JavaScript on the attacker origin trigger a cross-origin navigation to a target origin.
- The navigation commits, causing the browser UI to start an asynchronous close of the bubble.
- The close task runs CommitChanges(), which reads the new primary page and writes a persistent ALLOW setting for ads on the target origin.
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 a browser pop-up to allow ads on a site, the browser is supposed to remember that choice for that site only. Here, if the page navigates to another site while the pop-up is closing, the browser can accidentally apply the choice to the new site instead. That means a malicious page could trick you into permanently allowing ads on a site you never chose.
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.