Protection mechanism failure in Mobile (CVE-2026-106408)
A logic flaw in the iOS HTTPS-First Mode tab helper means a POST request that redirects to an insecure HTTP URL is not upgraded or blocked, because the helper keeps a stale flag saying the navigation is still a POST. An attacker could therefore get a victim's browser to load a plain HTTP page without the expected security interstitial.
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 error in HttpsOnlyModeUpgradeTabHelper on iOS allows a navigation to bypass the HTTPS-First Mode interstitial when a POST request redirects to an HTTP URL. This occurs because the tab helper captures the initial HTTP method but fails to update its state to reflect that the navigation method changed to GET during the redirect.
Affected files:
ios/chrome/browser/https_upgrades/model/https_only_mode_upgrade_tab_helper.mmios/web/navigation/crw_wk_navigation_handler.mm
Estimated timestamp from git blame: 2025-07-04
Description
The HttpsOnlyModeUpgradeTabHelper on iOS contains a logic flaw that leads to a potential bypass of the "Always Use Secure Connections" (HTTPS-First Mode) setting. The bypass occurs when a navigation involves a server-side redirect from an HTTPS POST request to an insecure HTTP URL.
HTTPS-First Mode intentionally exempts POST requests from being upgraded to HTTPS to avoid the technical complexities and risks of silently re-transmitting POST data over a new connection. This exemption is tracked by the navigation_is_post_ boolean flag within the tab helper.
However, this flag is captured once during DidStartNavigation and is never refreshed:
// ios/chrome/browser/https_upgrades/model/https_only_mode_upgrade_tab_helper.mm
void HttpsOnlyModeUpgradeTabHelper::DidStartNavigation(
web::WebState* web_state,
web::NavigationContext* navigation_context) {
// ...
if (state_ == State::kNone) {
// Store navigation parameters on initial navigation.
// ...
navigation_is_post_ = navigation_context->IsPost();
}
}
In a standard POST-redirect-GET scenario, the server responds to the POST request with an HTTP 302 or 303 redirect. The underlying WKWebView handles this by changing the request method to GET and navigating to the redirect target. CRWWKNavigationHandler catches this in webView:didReceiveServerRedirectForProvisionalNavigation: and notifies observers via DidRedirectNavigation.
Because HttpsOnlyModeUpgradeTabHelper does not implement DidRedirectNavigation, it misses this notification. Its internal navigation_is_post_ flag remains true.
When the insecure target HTTP server responds, ShouldAllowResponse is invoked. The logic to trigger an HTTPS upgrade or show the security interstitial relies on the stale navigation_is_post_ flag:
// ios/chrome/browser/https_upgrades/model/https_only_mode_upgrade_tab_helper.mm:211
if (item_pending->GetHttpsUpgradeType() == web::HttpsUpgradeType::kNone &&
!navigation_is_post_) {
// ... logic to trigger StopToUpgrade() ...
}
Because navigation_is_post_ evaluates to true, the upgrade logic is skipped. Execution falls through to line 252, explicitly allowing the insecure HTTP response without any interstitial.
Potential Reproduction Steps
- On an iOS device, enable Settings > Privacy > Always Use Secure Connections.
- Set up an attacker-controlled HTTPS server (
https://attacker.example) that auto-submits an HTTP POST form to an endpoint on the same server (https://attacker.example/redirect). - Configure the
/redirectendpoint to respond with an HTTP 302 Found redirect to an insecure HTTP URL (e.g.,http://victim.example/). - Visit
https://attacker.example. - Observe that
http://victim.example/loads successfully over an insecure HTTP connection, bypassing the expected HTTPS-First Mode interstitial.
Suggested Fix
Implement web::WebStateObserver::DidRedirectNavigation in HttpsOnlyModeUpgradeTabHelper to update the navigation_is_post_ flag when the HTTP method changes during a redirect:
void HttpsOnlyModeUpgradeTabHelper::DidRedirectNavigation(
web::WebState* web_state,
web::NavigationContext* navigation_context) {
navigation_is_post_ = navigation_context->IsPost();
}
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
Likely the tab helper records whether the navigation is a POST only at the start and never refreshes that flag when a redirect changes the method to GET, because it does not implement the redirect observer callback.
Impact
A user who has enabled HTTPS-First Mode could be sent to an insecure HTTP page without the warning interstitial, so the protection they opted into is silently skipped.
What the attacker needed
IOS device; HTTPS-First Mode enabled; attacker-controlled HTTPS server; victim visits attacker page
The fix
The helper should implement the redirect observer callback so the POST flag is updated whenever the navigation method changes during a redirect.
How it was found
- Enable Always Use Secure Connections in the iOS settings.
- Host an HTTPS page that automatically submits a POST form to a redirect endpoint on the same server.
- Make that endpoint answer with a redirect to a plain HTTP URL.
- Visit the attacker's HTTPS page.
- See the HTTP page load without the HTTPS-First Mode 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.
HTTPS-First Mode is a browser setting that warns you or quietly switches to a secure connection when a site tries to load over plain, unencrypted HTTP. The browser deliberately lets form submissions (POST requests) skip this check, and it remembers that decision in a flag. Here the flag was never updated after a redirect turned the request into a normal page load, so the browser wrongly treated the insecure page as an exempt form submission and showed no warning.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.