Insufficient validation of untrusted input in Chrome for iOS (CVE-2026-17684)
A same-origin check in Chrome for iOS compared subresource requests against the web view's current URL, which is updated early during a back-forward navigation while the old untrusted page is still running. A compromised renderer could therefore fetch privileged WebUI resources through the UI process.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 2 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A potential same-origin bypass in iOS Web allows a compromised WebContent process to bypass security gates in CRWWebUISchemeHandler. By programmatically initiating a back-forward navigation to a privileged WebUI page, an attacker can exploit a race window where webView.URL updates to the destination URL while the untrusted document is still actively executing. This allows the untrusted document to successfully load and exfiltrate highly privileged WebUI resources.
Affected files:
ios/web/webui/crw_web_ui_scheme_handler.mmios/web/navigation/crw_wk_navigation_handler.mmios/web/navigation/crw_web_view_navigation_observer.mm
Estimated timestamp from git blame: 2026-04-27
Root Cause Analysis
In -[CRWWebUISchemeHandler webView:startURLSchemeTask:] (ios/web/webui/crw_web_ui_scheme_handler.mm, lines 67-70), same-origin validation for WKURLSchemeTask subresource requests is performed against webView.URL:
if (!webView.URL ||
(!URL.DomainIs(web::kWebUIResourcesHost) &&
url::SchemeHostPort(URL) !=
url::SchemeHostPort(net::GURLWithNSURL(webView.URL)))) {
// deny and fail scheme task
...
}
However, under iOS WKWebView navigation flows, webView.URL is updated to the destination target URL during the provisional phase of a navigation, before the old document is swapped out. This platform behavior is documented inside Chromium's navigation observer (ios/web/navigation/crw_web_view_navigation_observer.mm, lines 275-278):
// URL changes happen at four points:
// 1) When a load starts; at this point, the load is provisional, and
// it should be ignored until it's committed, since the document/window
// objects haven't changed yet.
Because the previous document has not been swapped out and remains fully active during this provisional phase, a compromised renderer can issue a WKURLSchemeTask whose origin will be incorrectly validated against the target provisional URL instead of the active document's true committed origin.
Furthermore, back-forward navigations to app-specific (WebUI) URLs are unconditionally permitted inside shouldAllowAppSpecificURLNavigationAction:transition: (ios/web/navigation/crw_wk_navigation_handler.mm, lines 1436-1439):
if (pageTransition & ui::PAGE_TRANSITION_FORWARD_BACK) {
// Allow back-forward navigations.
return YES;
}
Potential Attack Scenario / Steps to Trigger
An attacker who has achieved remote code execution (RCE) inside the sandboxed WebContent process could potentially perform the following steps to trigger this vulnerability:
- Precondition: The active tab has previously visited a WebUI page (such as
chrome://versionorchrome://newtab), leaving it in the back-forward history stack. - Initiating Navigation: The compromised WebContent process programmatically triggers a back-forward navigation via
window.history.back()or similar. - Provisional State Update: The navigation begins, and Apple's
WKWebViewimmediately updates itsURLproperty to the target destination (e.g.,chrome://version). The untrusted document (e.g.,https://evil.com) remains actively executing. - Race Request: Within this race window, the compromised WebContent process issues subresource fetch requests targeting the same WebUI host (
chrome://version/...). - Validation Bypass: The security gate in
CRWWebUISchemeHandlercompares the subresource origin againstwebView.URL. SincewebView.URLhas already transitioned tochrome://version, the validation check passes. - Exfiltration: The unsandboxed UI process fetches the privileged resource and returns it directly to the compromised WebContent process.
Note: These are potential steps based on source code analysis; our tooling agent does not currently have the ability to run functional exploit code on this target platform.
Impact
This issue constitutes a potential sandbox escape / cross-origin data leak. A compromised sandboxed WebContent process can bypass the origin gate and use the UI process as a confused deputy to fetch and exfiltrate highly privileged WebUI resource files (such as version details, diagnostic configurations, or internal assets) without authorization.
Suggested Fix
CRWWebUISchemeHandler must perform origin validation against a trusted anchor representing the last committed document URL rather than the provisional webView.URL. This can be achieved by retrieving the committed URL from the corresponding WebState navigation history, or validating against webView.backForwardList.currentItem.URL.
Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8
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.
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 origin check used the web view's URL property, which changes at the start of a navigation before the old document is replaced, instead of the last committed document URL.
Impact
A compromised sandboxed renderer could use the UI process as a confused deputy to read privileged WebUI resources, though the report notes the steps are potential and were not run as a functional exploit.
What the attacker needed
Compromised WebContent process; tab has a WebUI page in back-forward history
The fix
The handler should validate against the last committed document URL, for example from the WebState navigation history or the back-forward list's current item, rather than the provisional web view URL.
How it was found
- Have the active tab previously visit a WebUI page so it sits in the back-forward history.
- From the compromised renderer, trigger a back-forward navigation programmatically.
- While the old document is still executing, issue subresource requests to the WebUI host.
- The origin check passes because the web view URL already points at the WebUI page.
- The UI process fetches the privileged resource and returns it to the compromised renderer.
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.
A web page runs in a locked-down part of the browser, and it is not supposed to read the browser's own internal pages. The check that stops this looked at the address bar too early, while the old page was still running, so a page that had already been taken over could ask for internal files and get them back.
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.