Insufficient policy enforcement in Chrome for iOS (CVE-2026-11298)
The iOS WebUI scheme handler drops security headers (CSP, X-Frame-Options) and adds a wildcard CORS header, so if an attacker gets script execution in any chrome:// page they can read data from other chrome:// origins and frame them.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 50 days
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.
Overview: On iOS, CRWWebUISchemeHandler drops HTTP response headers generated by the WebUI backend, completely removing Content-Security-Policy and X-Frame-Options. It instead constructs a response with a hardcoded wildcard CORS header, compromising isolation between different chrome:// origins if an attacker achieves script execution within a WebUI context.
Affected files:
ios/web/webui/crw_web_ui_scheme_handler.mmios/web/webui/url_data_manager_ios_backend.mm
Estimated timestamp from git blame: 2021-03-25
Summary
On iOS, the CRWWebUISchemeHandler class serves chrome:// scheme requests to WKWebView. The current implementation inadvertently strips critical security headers generated by the WebUI backend (such as Content-Security-Policy and X-Frame-Options: DENY) and replaces them with a hardcoded NSHTTPURLResponse. Notably, this hardcoded response includes an overly permissive Access-Control-Allow-Origin: * header, completely breaking the Same-Origin Policy between distinct WebUI origins.
Technical Details
When a chrome:// resource is requested, CRWWebUISchemeHandler delegates the fetch to URLFetcherBlockAdapter, which uses a network::SimpleURLLoader.
The iOS WebUI backend (URLRequestChromeJob in ios/web/webui/url_data_manager_ios_backend.mm) correctly generates necessary security headers for the response.
However, two steps cause these headers to be dropped and replaced with insecure defaults:
- Header Dropping: In
URLFetcherBlockAdapter::OnURLLoadComplete(ios/web/webui/url_fetcher_block_adapter.mm), the code extracts only the response body string and immediately destroys the underlying loader (url_loader_.reset()). The response headers (url_loader_->ResponseInfo()) are never read or passed to the completion handler. - Insecure Response Construction: Inside
CRWWebUISchemeHandler::webView:startURLSchemeTask:(ios/web/webui/crw_web_ui_scheme_handler.mm), the completion block manually constructs anNSHTTPURLResponsefrom scratch:
NSHTTPURLResponse* response =
[[NSHTTPURLResponse alloc] initWithURL:urlSchemeTask.request.URL
statusCode:200
HTTPVersion:@"HTTP/1.1"
headerFields:@{
@"Content-Type" : mimeType,
@"Access-Control-Allow-Origin" : @"*"
}];
Impact
This is a significant defense-in-depth regression that weakens the isolation between chrome:// hosts on iOS.
Standard websites are blocked from navigating to or framing chrome:// URLs by CRWWKNavigationHandler. However, if an attacker manages to achieve script execution in any WebUI context (e.g., through a separate HTML injection vulnerability in chrome://version), they can trivially escalate their privileges:
- Universal CORS: The
Access-Control-Allow-Origin: *header allows the compromised WebUI to usefetch()to read sensitive data from any otherchrome://origin (e.g.,chrome://prefs-internals). - Cross-Origin Framing: The lack of
X-Frame-Options: DENYallows the attacker to embed any other WebUI page within an<iframe>. - Missing CSP: The lack of
Content-Security-Policymakes the initial exploitation of any WebUI XSS trivial, as inline scripts,eval(), and outbound connections to attacker servers are not blocked.
Potential Reproduction Steps
(Note: These are suggested steps based on static analysis, as our tooling agent cannot execute code).
- Navigate to a WebUI page in iOS Chrome (e.g.,
chrome://version). - Assume an attacker has achieved script execution on this page (e.g., via the console for testing purposes).
- Execute a fetch request to another WebUI origin:
fetch('chrome://prefs-internals').then(r => r.text()).then(console.log). - Observe that the request succeeds and the cross-origin data is returned due to the wildcard CORS header.
- Execute
document.body.innerHTML='<iframe src="chrome://prefs-internals">'. Observe that the page is framed successfully due to the missingX-Frame-Optionsheader.
Suggested Fix
- Modify
URLFetcherBlockAdapterand its completion handler signature to capture and pass thenetwork::mojom::URLResponseHead(or simply anNSDictionaryof the headers) obtained fromnetwork::SimpleURLLoader::ResponseInfo(). - Update
CRWWebUISchemeHandler::webView:startURLSchemeTask:to construct theNSHTTPURLResponseusing the headers provided by the backend via the adapter, rather than hardcoding its own dictionary. Remove the hardcodedAccess-Control-Allow-Origin: *header.
Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b
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 response adapter discards the original headers and the scheme handler builds a new response with a hardcoded wildcard CORS header instead of passing through the backend's security headers.
Impact
If an attacker already has script execution in any WebUI context, they could read sensitive data from other chrome:// origins and frame them, but this requires a separate initial vulnerability.
What the attacker needed
Script execution in a chrome:// page; iOS Chrome
The fix
The adapter should capture and pass the backend's response headers, and the scheme handler should use those headers instead of hardcoding a wildcard CORS header.
How it was found
- Open a chrome:// page in iOS Chrome.
- Assume script execution on that page.
- Use fetch to request another chrome:// origin.
- Observe the cross-origin data is returned.
- Insert an iframe pointing to another chrome:// page and observe it loads.
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.
When a web page loads, the server can send extra rules called headers that tell the browser what the page is allowed to do. This report says that on Chrome for iOS, the part that loads internal chrome:// pages throws away those rules and adds a very loose rule that lets any page read data from any other page. If an attacker can run their own code on one internal page, they could then read private information from other internal pages.
What is CORS?
A permissive cross-origin policy lets another site read responses with the user's credentials.