Skip to content
Access control Advisory Advanced CVE-2026-13973

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.cc
  • chrome/browser/ui/views/content_setting_bubble_contents.cc
  • components/subresource_filter/content/browser/profile_interaction_manager.cc
  • components/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.

C++
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

  1. 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.
  2. The user clicks the indicator to open the Ads bubble.
  3. The user checks the "Always allow ads on this site" checkbox, which sets the model's internal is_checked_ state to true.
  4. 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/').
  5. The navigation to Origin B commits. This triggers PrimaryPageChanged in the browser UI, which initiates an asynchronous widget close.
  6. The close task executes, calling CommitChanges(). Because Origin B is now the primary page, its URL is retrieved from the WebContents.
  7. Chrome writes a persistent ALLOW setting for ContentSettingsType::ADS for 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.

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

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

  1. Visit an attacker-controlled origin that is on the Safe Browsing abusive-ads list, so the subresource filter activates and the ads indicator appears.
  2. Click the ads indicator to open the Ads bubble.
  3. Check the 'Always allow ads on this site' checkbox.
  4. Before closing the bubble, have JavaScript on the attacker origin trigger a cross-origin navigation to a target origin.
  5. The navigation commits, causing the browser UI to start an asynchronous close of the bubble.
  6. 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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.