Missing authorization in Contextual Tasks (CVE-2026-95297)
The browser's Contextual Tasks proxy unconditionally attaches the user's primary OAuth token to any request targeting *.google.com from any frame in the guest view, without checking the request initiator. A compromised renderer could abuse this to make authenticated API requests and exfiltrate sensitive user data.
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.
Overview: The browser-side ContextualTasksProxyingURLLoaderFactory unconditionally attaches the user's primary OAuth token to requests targeting *.google.com from any frame within the contextual tasks guest view. A compromised renderer can abuse this to make authenticated API requests via same-origin fetches or same-site subframe navigations. This acts as a confused deputy, potentially allowing the attacker to exfiltrate sensitive user data from Google APIs.
Affected files:
chrome/browser/contextual_tasks/contextual_tasks_url_loader_factory_interceptor.ccchrome/browser/contextual_tasks/contextual_tasks_ui_service.ccchrome/browser/contextual_tasks/contextual_tasks_navigation_throttle.cccomponents/signin/public/base/oauth_consumer_registry.cc
Estimated timestamp from git blame: 2026-04-02
Summary
A potential confused deputy vulnerability exists in the ContextualTasksProxyingURLLoaderFactory where it unconditionally attaches the user's primary-account OAuth Bearer token to any outgoing request targeting *.google.com or *.googlers.com. This proxy intercepts requests from all frames within a chrome://contextual-tasks guest view without verifying the request initiator or ensuring the request originates strictly from the trusted main frame.
Vulnerability Details
In chrome/browser/contextual_tasks/contextual_tasks_url_loader_factory_interceptor.cc, the function MaybeInterceptURLLoaderFactory wraps the URLLoaderFactory for any RenderFrameHost that belongs to a WebViewGuest owned by chrome://contextual-tasks. Because this check applies to the entire guest frame tree, every subframe—regardless of origin—receives this proxy factory.
When a network request is made, the proxy's CreateLoaderAndStart method calls ShouldAddAuthHeader. This function returns true for any URL where url.DomainIs("google.com") (which includes subdomains like clients4.google.com). Upon a match, the ContextualTasksUiService automatically mints an OAuth token for OAuthConsumerId::kContextualTasks (which includes scopes for search results, Lens, and optionally Chrome Sync) and injects it into the request's Authorization header.
Because the proxy operates in the browser process prior to the network service evaluating CORS, it ambiently grants the user's identity to any matching request originating from the guest's renderer process.
Potential Exploitation Steps
Note: Our tooling agent cannot execute live proof-of-concept code. These are the suggested theoretical steps an attacker would follow to trigger this vulnerability.
Assume the attacker has exploited an unrelated vulnerability (e.g., a V8 flaw or XSS) to compromise the renderer process hosting the https://www.google.com/ page inside the Contextual Tasks guest view.
Method 1: Same-Origin Fetch
- The compromised renderer executes a JavaScript
fetch()targeting a sensitive same-origin endpoint, such ashttps://www.google.com/private_api. - The proxy factory intercepts the request, matches the domain against
kAuthTokenAllowList, and injects theAuthorization: Bearer <token>header. - Because the request is same-origin, the Network Service does not require a CORS preflight. The request is sent with the token.
- The authenticated JSON response is returned directly to the attacker's
fetch()promise.
Method 2: Same-Site Subframe Navigation
- The attacker dynamically creates a subframe navigating to a different API endpoint that shares the same eTLD+1, e.g.,
<iframe src="https://clients4.google.com/api">. - The proxy factory attaches to the navigation request, matches the subdomain, and injects the OAuth token.
- Navigation requests are exempt from CORS preflights, so the authenticated request succeeds.
- Chrome's default Site Isolation policy groups same-site documents. Therefore, the
clients4.google.comsubframe commits inside the attacker's already-compromisedwww.google.comrenderer process. - The attacker reads the memory of their own process to extract the raw response data of the
clients4.google.comdocument, stealing the data.
Suggested Fix
- Restrict interception to the Main Frame: In
MaybeInterceptURLLoaderFactory, ensure that the proxy is only attached ifframe->IsMainFrame()is true. This prevents attacker-created subframes from implicitly inheriting the token-injecting proxy. - Validate Request Initiator: In
ContextualTasksProxyingURLLoaderFactory::CreateLoaderAndStart, validate therequest.request_initiatoragainst an explicitly trusted origin before injecting the authorization header. - Opt-in Authentication: Instead of ambiently proxying all network requests, consider removing the proxy entirely and exposing a dedicated Mojo API specifically for the trusted UI to request tokens or make authenticated API calls.
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.
Raised in root component due to access or custom field issues on 1516765
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 proxy factory attaches the OAuth token to any request matching the domain allowlist without verifying the request initiator or restricting to the main frame.
Impact
A compromised renderer could make authenticated API requests and exfiltrate sensitive user data from Google APIs.
What the attacker needed
Compromised renderer in the guest view
The fix
The proxy should be restricted to the main frame, validate the request initiator, or be replaced with an explicit opt-in token API.
How it was found
- Compromise the renderer hosting the Google page inside the Contextual Tasks guest view.
- Execute a same-origin fetch to a sensitive Google endpoint.
- The proxy intercepts the request, matches the domain, and injects the OAuth token.
- The authenticated response is returned to the attacker's fetch promise.
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 browser feature meant to help with tasks was adding the user's login token to every request going to Google domains, even requests coming from untrusted parts of the page. If an attacker could run code in that page, they could use the token to fetch private data from Google services as the user.
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.