Privilege elevation in Mobile (CVE-2026-121196)
The Lens Overlay on iOS incorrectly marks navigations from its result page as browser-initiated when opening them in a new tab. This allows a malicious website to redirect to privileged chrome:// URLs, bypassing sandbox restrictions.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 6 months
Flapjack, 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: The Lens Overlay on iOS incorrectly flags external navigations from the Lens result page as browser-initiated when opening them in a new tab. This allows web content within the Lens results to navigate the browser to privileged chrome:// URLs, bypassing sandbox restrictions.
Affected files:
ios/chrome/browser/lens_overlay/coordinator/lens_overlay_coordinator.mmios/chrome/browser/lens_overlay/coordinator/lens_result_page_mediator.mmios/chrome/browser/lens_overlay/coordinator/lens_overlay_mediator.mm
Estimated timestamp from git blame: 2026-01-05
Description
A navigation restriction bypass vulnerability exists in the Lens Overlay on iOS. Navigations to non-Google hosts originating from the Lens result page are intercepted and opened in a new tab. However, the mechanism used to open the new tab incorrectly flags the navigation as being initiated by the browser itself, which bypasses security checks designed to prevent web content from navigating to privileged chrome:// URLs.
Technical Details
- Navigations within the Lens Overlay results are monitored by
LensResultPageMediator. InshouldAllowRequest:decisionHandler:, any main-frame navigation to a non-Google host is cancelled to prevent it from loading within the bottom sheet UI:
// ios/chrome/browser/lens_overlay/coordinator/lens_result_page_mediator.mm
if (requestInfo.target_frame_is_main && !allowURL.first) {
// ...
decisionHandler(web::WebStatePolicyDecider::PolicyDecision::Cancel());
// ...
[self.delegate lensResultPageOpenURLInNewTabRequested:URL];
// ...
}
- The request is delegated up to
LensOverlayCoordinator(viaLensOverlayMediator), which handles it by creating anOpenNewTabCommandusing thecommandWithURLFromChrome:constructor:
// ios/chrome/browser/lens_overlay/coordinator/lens_overlay_coordinator.mm
- (void)openURLInNewTab:(GURL)URL {
OpenNewTabCommand* command =
[OpenNewTabCommand commandWithURLFromChrome:URL
inIncognito:self.isOffTheRecord];
// ...
}
-
The
commandWithURLFromChrome:method sets thefromChromeproperty of the command toYES. -
When
SceneCoordinatorhandles this command, it copies thefromChromeflag to theUrlLoadParams. BecausefromChromeis true,SceneUrlLoadingServicetreats the navigation as an internal app action and upgrades the transition type toui::PAGE_TRANSITION_TYPED. The navigation is then executed withis_renderer_initiateddefaulting tofalse. -
When a server redirect to a
chrome://URL is encountered, iOS Chrome checks the transition type to determine if the navigation is permitted (shouldAllowAppSpecificURLNavigationAction:transition:incrw_wk_navigation_handler.mm). Because the transition was upgraded toui::PAGE_TRANSITION_TYPED, the check passes, and the web sandbox restriction is bypassed.
Potential Exploitation Scenario
- An attacker hosts a malicious website (e.g.,
https://attacker.com/redirect) that returns an HTTP 302 redirect to a privileged internal scheme, such aschrome://policy. - The attacker manages to get a link to this site indexed by Google Lens or embedded in an image processed by Lens.
- A user performs a Lens search and interacts with the attacker's link in the Lens result bottom sheet.
LensResultPageMediatorintercepts the navigation to the non-Google URL, cancels the request in the current web state, and delegates it to open in a new tab.LensOverlayCoordinatoropens the URL in a new tab using a command constructed withcommandWithURLFromChrome:, marking it as a browser-initiated (ui::PAGE_TRANSITION_TYPED) navigation.- The browser initiates the load to
https://attacker.com/redirect. - The server responds with a redirect to
chrome://policy. Because the navigation context has aTYPEDtransition, theWKWebViewpolicy decider allows the redirect, granting the attacker access to privileged WebUI pages.
Suggested Fix
In LensOverlayCoordinator::openURLInNewTab:, instead of using [OpenNewTabCommand commandWithURLFromChrome:], instantiate the OpenNewTabCommand directly (or use a different constructor) to ensure that the fromChrome flag is not set and the navigation retains its renderer-initiated status (e.g., transition type ui::PAGE_TRANSITION_LINK).
Evaluated with Chrome root at commit: 4a3e9db74111a3c6c4b3acfd70050a05077cf27a
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 code uses a constructor that sets a flag indicating the navigation was initiated by the browser, which causes the transition type to be treated as user-typed and bypasses checks for privileged URLs.
Impact
An attacker could navigate the browser to privileged chrome:// pages, potentially accessing sensitive browser functionality.
What the attacker needed
User interacts with a link in Lens results; attacker controls a website with a redirect
The fix
The fix is to avoid using the constructor that sets the fromChrome flag, so the navigation remains renderer-initiated.
How it was found
- Attacker hosts a site that redirects to a chrome:// URL.
- User opens the attacker's link from Lens results.
- The app cancels the in-page navigation and opens it in a new tab using a browser-initiated command.
- The browser loads the attacker's site, which redirects to chrome://policy.
- The redirect is allowed because the navigation is marked as typed.
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 you tap a link in a special Google Lens view on an iPhone, the app opens it in a new tab. The app mistakenly tells the browser that it started the navigation itself, not the website. This lets a bad website redirect to internal browser pages that are normally off-limits to web content.
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.