Incorrect authorization in Navigation (CVE-2026-113209)
A logic error in Chrome for iOS lets a web-controlled iframe trigger a top-level navigation to a privileged chrome:// URL, bypassing checks meant to stop untrusted content from reaching App-specific pages. The text says this is a defence-in-depth bypass that could be chained with other bugs, not a direct compromise.
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 shouldAllowAppSpecificURLNavigationAction on iOS allows a web-controlled iframe to initiate a top-level navigation to a chrome:// URL. This bypasses security checks intended to prevent untrusted web content from triggering navigations to privileged App-specific pages.
Affected files:
ios/web/navigation/crw_wk_navigation_handler.mmios/web/web_state/ui/crw_web_controller_unittest.mm
Estimated timestamp from git blame: 2025-09-11
Description
A logic error exists in the iOS implementation of WebUI navigation restrictions within ios/web/navigation/crw_wk_navigation_handler.mm. The function shouldAllowAppSpecificURLNavigationAction:transition: contains a clause intended to allow chrome:// (App-specific) URLs to load within an iframe, provided the parent page is already an App-specific page.
However, the implementation incorrectly checks !action.sourceFrame.mainFrame (verifying if the initiator is an iframe) and then relies on action.request.mainDocumentURL. WebKit populates mainDocumentURL with the destination URL for top-level navigations.
When a subframe executes top.location = 'chrome://version', the following occurs:
action.sourceFrame.mainFrameisNObecause the navigation was initiated by a subframe.- Since this is a top-level navigation, WebKit sets
action.request.mainDocumentURLto the destination (chrome://version). shouldAllowAppSpecificURLNavigationActionsees that the initiator is not the main frame and that themainDocumentURLis an App-specific URL, so it erroneously returnsYES.
This allows an untrusted website to force a top-level navigation to a highly privileged chrome:// URL, violating the invariant that Chromium does not allow running App-specific pages in the same process or context as an untrusted website. While the Same-Origin Policy (SOP) prevents the attacker from directly scripting the resulting WebUI document, this vulnerability serves as a defense-in-depth bypass and could be chained with other vulnerabilities.
Flawed Unit Test
The existing unit test AllowAppSpecificIFrameFromAppSpecificPage in ios/web/web_state/ui/crw_web_controller_unittest.mm fails to catch this. It advertently mocks a top-level navigation (targetFrame.mainFrame = YES with sourceFrame = nil) while intending to test subframe behavior. Because the test sets a chrome:// URL as the mainDocumentURL, it triggers the buggy logic path and passes, validating the insecure behavior.
Potential Reproduction Steps
Note: These are suggested steps based on code analysis; a functional exploit has not been executed.
- Host a page at
http://attacker.test/index.htmlcontaining an iframe. - From within the iframe, execute:
top.location = 'chrome://version';. (IfkPreventNavigationWithoutUserInteractionis enabled, anonclickhandler inside the iframe can be used to trigger the navigation with a valid user gesture). - Observe that Chrome for iOS allows the navigation and loads the
chrome://versionpage in the top-level frame.
Suggested Fix
In shouldAllowAppSpecificURLNavigationAction:transition:, the logic intended to allow App-specific iframes within App-specific pages should verify that the target frame is not the main frame (!action.targetFrame.mainFrame). Furthermore, it should validate the actual URL or origin of the main frame containing the iframe, rather than relying on action.request.mainDocumentURL, which is unreliable for top-level navigations.
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 check tested whether the navigation was started by a subframe and then trusted the main document URL, which WebKit fills with the destination for top-level navigations, instead of checking the target frame and the real parent page.
Impact
An untrusted site could force a top-level navigation to a privileged chrome:// page, breaking a defence-in-depth rule; the Same-Origin Policy still stops the attacker from scripting that page, so the text says it could be chained with other bugs rather than being a direct takeover.
What the attacker needed
Chrome for iOS; victim visits attacker page; user gesture if required
The fix
The check should verify that the target frame is not the main frame and validate the actual URL or origin of the parent page instead of relying on mainDocumentURL; the text does not say it was fixed.
How it was found
- Host a page containing an iframe.
- From inside the iframe, set the top window location to a chrome:// URL.
- If user interaction is required, trigger the navigation from a click handler inside the iframe.
- Observe that Chrome for iOS loads the chrome:// page in the top-level frame.
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.
Chrome has special internal pages, like chrome://version, that normal websites should not be able to open on top of the browser. A check in the iOS version of Chrome was meant to stop this, but it looked at the wrong piece of information and let a page inside a frame force the browser to open one of those internal pages. The report says this alone does not let the attacker read or change that page, but it breaks a safety rule and could help in a larger attack.
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.