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

Race condition in Mobile (CVE-2026-113196)

A race condition in iOS Safe Browsing allows a malicious page to change its URL with history.replaceState before an asynchronous real-time check completes. When the check later flags the original URL, the browser reloads the attacker-controlled safe URL instead of showing the security interstitial, so the warning is suppressed.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 6 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 without the Chrome Security team. Please see go/chrome-ai-generated-security-bugs-faq for more information.

Overview: A logic flaw in iOS Safe Browsing potentially allows malicious sites to bypass the full-page security interstitial. By using history.replaceState before asynchronous real-time checks complete, an attacker can change the committed URL, causing the browser to reload a safe URL instead of showing the warning.

Affected files:

  • ios/components/security_interstitials/safe_browsing/safe_browsing_tab_helper.mm
  • ios/web/navigation/navigation_manager_impl.mm
  • ios/web/navigation/crw_js_navigation_handler.mm
  • ios/web/navigation/crw_web_view_navigation_observer.mm
  • ios/chrome/browser/safe_browsing/model/safe_browsing_client_impl.mm
  • ios/components/security_interstitials/safe_browsing/safe_browsing_service_impl.mm

Estimated timestamp from git blame: 2026-03-24

Description

On iOS, Safe Browsing performs both synchronous (local database) and asynchronous (network-based real-time) checks for each navigation. The implementation in SafeBrowsingTabHelper allows a page to commit and begin executing JavaScript once the synchronous check passes, even if the asynchronous check is still in flight.

If the asynchronous check later returns an 'unsafe' verdict, the browser attempts to reload the page to display a full-page Safe Browsing interstitial. However, a malicious site can bypass this protection by using history.replaceState to change its URL immediately after the initial commit. When the asynchronous verdict arrives, the browser's reload logic incorrectly uses the newly set, attacker-controlled URL, effectively suppressing the warning.

Technical Details

  1. Async Check Window: In ios/components/security_interstitials/safe_browsing/safe_browsing_tab_helper.mm, ShouldAllowResponse checks if navigation can proceed by filtering for RedirectChainFilter::kSyncQueries. If the local database check is clean, the page commits while the asynchronous network lookup is still in progress.
  2. URL Mutation: Once committed, an attacker-controlled page (e.g., /phishing) can execute inline JavaScript: history.replaceState({}, '', '/innocent');. On iOS, this updates the URL of the NavigationManagerImpl's last_committed_item to /innocent via UpdateCurrentItemForReplaceState.
  3. Threat Detected: The asynchronous check for the original /phishing URL returns a threat verdict. SafeBrowsingTabHelper::PolicyDecider::OnMainFrameUrlAsyncQueryDecided is triggered. An UnsafeResource for /phishing is stored in the SafeBrowsingUnsafeResourceContainer.
  4. Flawed Reload Logic: OnMainFrameUrlAsyncQueryDecided calls ReloadPage() to show the interstitial. ReloadPage() retrieves the URL for the new navigation via navigation_manager->GetLastCommittedItem()->GetURL(). Due to the replaceState call, this returns /innocent instead of the original flagged URL.
  5. Interstitial Bypass: A new navigation to /innocent is initiated. When ShouldAllowRequest processes this new navigation, it checks if the request URL matches the stored UnsafeResource's URL. Since /innocent does not match the stored /phishing URL, the strict equality check fails. The navigation is allowed, and the interstitial is completely suppressed, leaving the user on the malicious page.

Potential Reproduction Steps

Note: These steps are suggested based on code analysis.

  1. Host a page at https://attacker.example/phishing that is not in the local Safe Browsing database but is flagged by real-time checks.
  2. Configure the response for /phishing to include: <script>history.replaceState({}, '', '/innocent');</script>.
  3. Host a benign page at https://attacker.example/innocent.
  4. On a Chrome iOS client with default Safe Browsing, navigate to https://attacker.example/phishing.
  5. The phishing page will load and execute. When the async check returns, the page will reload to /innocent without showing the Safe Browsing interstitial.

Suggested Fix

In SafeBrowsingTabHelper::PolicyDecider::ReloadPage(), instead of relying on navigation_manager->GetLastCommittedItem()->GetURL(), the reload should be explicitly targeted at the URL of the MainFrameUrlQuery that triggered the threat detection, or the URL stored in the SafeBrowsingUnsafeResourceContainer. This ensures the error page always corresponds to the URL that was actually flagged by Safe Browsing, regardless of any subsequent DOM/History API manipulations.

Evaluated with Chrome root at commit: 7353d249d9cacf9c7218e1d7b8a39cf39c72d646


Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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 reload logic uses the navigation manager's last committed URL, which the page can change via history.replaceState, instead of the URL that was actually flagged by the asynchronous check.

Impact

A malicious site could suppress the full-page Safe Browsing warning on iOS, leaving the user on the phishing page without the intended interstitial.

What the attacker needed

Chrome on iOS with default Safe Browsing; Attacker hosts a page flagged only by real-time checks; Victim navigates to the malicious page

The fix

The reload should target the URL from the query that triggered the threat detection or the stored unsafe resource, not the last committed URL.

How it was found

  1. Host a page that is not in the local Safe Browsing database but is flagged by real-time checks.
  2. Make that page run inline JavaScript that calls history.replaceState to change the URL to a benign path.
  3. Host a benign page at the new path.
  4. On a Chrome iOS client with default Safe Browsing, navigate to the malicious page.
  5. The page loads and executes; when the asynchronous check returns, the browser reloads the benign path without showing the interstitial.

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.

Safe Browsing checks a page against a local list first, then asks a remote service in the background. If the remote service says the page is dangerous, the browser is supposed to reload and show a warning. The bug is that the page can quietly change its own address before that answer arrives, so the browser reloads the new safe-looking address and never shows the warning.

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.