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.mmios/web/navigation/navigation_manager_impl.mmios/web/navigation/crw_js_navigation_handler.mmios/web/navigation/crw_web_view_navigation_observer.mmios/chrome/browser/safe_browsing/model/safe_browsing_client_impl.mmios/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
- Async Check Window: In
ios/components/security_interstitials/safe_browsing/safe_browsing_tab_helper.mm,ShouldAllowResponsechecks if navigation can proceed by filtering forRedirectChainFilter::kSyncQueries. If the local database check is clean, the page commits while the asynchronous network lookup is still in progress. - 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 theNavigationManagerImpl'slast_committed_itemto/innocentviaUpdateCurrentItemForReplaceState. - Threat Detected: The asynchronous check for the original
/phishingURL returns a threat verdict.SafeBrowsingTabHelper::PolicyDecider::OnMainFrameUrlAsyncQueryDecidedis triggered. AnUnsafeResourcefor/phishingis stored in theSafeBrowsingUnsafeResourceContainer. - Flawed Reload Logic:
OnMainFrameUrlAsyncQueryDecidedcallsReloadPage()to show the interstitial.ReloadPage()retrieves the URL for the new navigation vianavigation_manager->GetLastCommittedItem()->GetURL(). Due to thereplaceStatecall, this returns/innocentinstead of the original flagged URL. - Interstitial Bypass: A new navigation to
/innocentis initiated. WhenShouldAllowRequestprocesses this new navigation, it checks if the request URL matches the storedUnsafeResource's URL. Since/innocentdoes not match the stored/phishingURL, 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.
- Host a page at
https://attacker.example/phishingthat is not in the local Safe Browsing database but is flagged by real-time checks. - Configure the response for
/phishingto include:<script>history.replaceState({}, '', '/innocent');</script>. - Host a benign page at
https://attacker.example/innocent. - On a Chrome iOS client with default Safe Browsing, navigate to
https://attacker.example/phishing. - The phishing page will load and execute. When the async check returns, the page will reload to
/innocentwithout 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.
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
- Host a page that is not in the local Safe Browsing database but is flagged by real-time checks.
- Make that page run inline JavaScript that calls history.replaceState to change the URL to a benign path.
- Host a benign page at the new path.
- On a Chrome iOS client with default Safe Browsing, navigate to the malicious page.
- 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.