Cleartext transmission of sensitive data in HttpsUpgrades (CVE-2026-87482)
On iOS, Chrome's HTTPS-Only Mode only checks the final URL of a navigation chain, so intermediate HTTP redirects are fetched in cleartext. An on-path attacker can intercept those requests, steal cookies and headers, and inject a redirect to an HTTPS site without any warning being shown.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 5 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: On iOS, Chrome's HTTPS-Only Mode (HttpsOnlyModeUpgradeTabHelper) only inspects the final URL of a navigation chain when deciding whether to block insecure requests or show an interstitial. Because WKWebView issues cleartext requests for intermediate HTTP redirects before the final response is received, an on-path attacker can intercept these requests, steal cookies, and inject a redirect to an HTTPS site. This completely bypasses the HTTPS-Only Mode protection without the user ever seeing a warning.
Affected files:
ios/chrome/browser/https_upgrades/model/https_only_mode_upgrade_tab_helper.mm
Estimated timestamp from git blame: 2022-05-04
Description
On iOS Chrome, HttpsOnlyModeUpgradeTabHelper enforces the "Always Use Secure Connections" (HTTPS-Only/HTTPS-First Mode) setting by overriding WebStatePolicyDecider::ShouldAllowResponse.
However, ShouldAllowResponse is driven by WKWebView's webView:decidePolicyForNavigationResponse:decisionHandler:, which Apple's WebKit only invokes for the final, non-redirect response of a navigation chain. WKWebView processes intermediate 3xx redirects internally and issues the new network requests before the final response policy is checked.
As a result, if a user with HTTPS-Only Mode enabled follows an HTTPS link that redirects to an HTTP URL, WKWebView will issue the HTTP request in cleartext over the network. HttpsOnlyModeUpgradeTabHelper does not override ShouldAllowRequest to block this (noted explicitly in developer comments at ios/chrome/browser/https_upgrades/model/https_only_mode_upgrade_tab_helper.mm:269-272). Because iOS Chrome sets NSAllowsArbitraryLoads to true to disable App Transport Security (ATS) globally, the system allows the cleartext request to proceed.
An on-path network attacker can observe this cleartext request, steal sensitive headers (like cookies or Referer), and respond with a spoofed 302 redirect to an arbitrary HTTPS destination. When WKWebView follows this final redirect and receives the HTTPS response, HttpsOnlyModeUpgradeTabHelper::ShouldAllowResponse observes an https:// scheme and unconditionally allows the navigation. The user never sees the HTTPS-Only Mode warning interstitial, despite their traffic being intercepted.
Potential Attack Scenario
Note: These are suggested steps based on source code analysis; a working proof-of-concept has not been executed.
- The victim enables "Always Use Secure Connections" in iOS Chrome settings.
- The attacker establishes an on-path network position (e.g., controlling a rogue Wi-Fi hotspot).
- The victim navigates to an initial HTTPS URL that redirects (e.g.,
https://attacker.com/start). - The server at
attacker.comreturns a 302 redirect tohttp://insecure.com/cleartext. WKWebViewinvokesdecidePolicyForNavigationActionfor the HTTP URL. BecauseHttpsOnlyModeUpgradeTabHelperdoes not implementShouldAllowRequest, the request is allowed.WKWebViewissues the cleartext HTTP request over the wire, leaking the victim's cookies/headers forinsecure.comto the attacker.- The attacker intercepts the HTTP request and injects a response:
302 Location: https://example.com/final. WKWebViewrequestshttps://example.com/finaland receives a200 OK.WKWebViewinvokesdecidePolicyForNavigationResponsefor the final HTTPS response.HttpsOnlyModeUpgradeTabHelper::ShouldAllowResponsesees the finalhttps://scheme, considers the navigation secure, and allows it without showing the security interstitial.
Suggested Fix
HttpsOnlyModeUpgradeTabHelper must override ShouldAllowRequest (which corresponds to decidePolicyForNavigationAction) to intercept and block or upgrade http:// URLs before the request is issued by WKWebView. While the current comments note that ShouldAllowRequest lacks context about whether an HTTP URL is part of a redirect chain, failing to block it here allows the cleartext request to escape onto the network, defeating the purpose of HTTPS-Only Mode.
Evaluated with Chrome root at commit: 661452647ddb2827305122ff3273bd5dea403f09
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 HTTPS-Only check is only applied to the final response of a navigation chain, and the request-level hook that could block intermediate cleartext redirects is not implemented.
Impact
An on-path attacker could steal cookies and headers for the HTTP host and redirect the victim to an attacker-chosen HTTPS site without any HTTPS-Only warning; the report notes no working proof-of-concept was executed.
What the attacker needed
IOS Chrome with HTTPS-Only Mode enabled; attacker on the same network path; victim follows a redirect to plain HTTP
The fix
The helper should override the request-level policy hook to block or upgrade plain HTTP URLs before the web view sends them.
How it was found
- The victim enables Always Use Secure Connections in iOS Chrome.
- The attacker takes an on-path network position, such as a rogue Wi-Fi hotspot.
- The victim opens an HTTPS URL that redirects to a plain HTTP URL.
- The web view issues the cleartext HTTP request, leaking cookies and headers to the attacker.
- The attacker injects a redirect to an HTTPS site, which the browser then allows without a warning.
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-Only Mode is meant to stop a browser from loading pages over plain HTTP, which anyone on the same network can read. On iOS, Chrome only checked the last page in a chain of redirects, so the earlier plain HTTP requests still went out unprotected. Someone sitting on the network, such as on a rogue Wi-Fi hotspot, could read those requests and their cookies.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.