Insufficient validation of untrusted input in Permissions (CVE-2026-7961)
A logic flaw in Chrome's permission handling fails to verify the scheme of WebUI hostnames, so an attacker who controls DNS for a single-label domain like 'contextual-tasks' and serves it over HTTPS can have their origin rewritten to Google's search origin. This lets the attacker silently inherit any permissions the user previously granted to Google, such as geolocation or camera access, without a prompt.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 40 days
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: A logic flaw in ChromePermissionsClient's origin override logic fails to verify the chrome:// scheme for specific WebUI hosts like contextual-tasks and omnibox-popup.top-chrome. An attacker who can direct a user to an HTTPS version of these domains (e.g., via DNS spoofing or local network registration) will have their origin rewritten to the Google Default Search Engine (DSE) origin. This allows the attacker to silently inherit the user's previously granted permissions for Google services, such as Geolocation or Camera.
Affected files:
chrome/browser/permissions/chrome_permissions_client.cc
Estimated timestamp from git blame: 2026-01-29
Description
There is a potential vulnerability in ChromePermissionsClient::GetCanonicalOriginOverride and CanBypassEmbeddingOriginCheck (chrome/browser/permissions/chrome_permissions_client.cc) where the origin's scheme is not verified when checking for specific Chrome WebUI hosts.
At lines 695-697 in GetCanonicalOriginOverride, the code checks if the requesting origin matches specific WebUI hosts to determine if it should be rewritten to the user's Default Search Engine (DSE) base URL (typically https://www.google.com/):
if (requesting_origin == embedding_origin &&
(requesting_origin.host() == chrome::kChromeUIOmniboxPopupHost ||
requesting_origin.host() == chrome::kChromeUIContextualTasksHost)) {
return GURL(UIThreadSearchTermsData().GoogleBaseURLValue())
.DeprecatedGetOriginAsURL();
}
Crucially, this check only verifies the .host() property ("contextual-tasks" or "omnibox-popup.top-chrome") and lacks a scheme check (e.g., requesting_origin.SchemeIs(content::kChromeUIScheme)).
If an attacker can control DNS resolution for these single-label domains on a local or enterprise network and serve a trusted HTTPS certificate, navigating the user to https://contextual-tasks/ will satisfy this condition. Because high-privilege permissions like Geolocation, Camera, and Microphone use WebsiteSettingsInfo::TOP_ORIGIN_ONLY_SCOPE, the HostContentSettingsMap ignores the embedding origin during lookup. The attacker's page will silently inherit any permissions the user has already granted to Google, bypassing all permission prompts.
Potential Attack Steps
Note: These are suggested steps based on static analysis; our tooling agent does not currently have the capability to run a live proof-of-concept.
- DNS Control: An attacker on a local network (e.g., via rogue DHCP, DNS poisoning, or mDNS) configures the hostname
contextual-tasksto resolve to an attacker-controlled IP address. - HTTPS Setup: The attacker sets up an HTTPS server and provisions a certificate for
contextual-tasks. This could be trusted via an enterprise root CA, or the attacker might rely on the user clicking through an SSL warning. - Victim Navigation: The attacker lures the victim to navigate to
https://contextual-tasks/in Chrome. - Permission Request: The attacker's webpage executes JavaScript to request a sensitive permission, such as
navigator.geolocation.getCurrentPosition(...). - Origin Rewrite: The permission request enters the browser process.
PermissionManager::RequestPermissionscallsPermissionUtil::GetCanonicalOrigin, which triggersChromePermissionsClient::GetCanonicalOriginOverride. The host matches"contextual-tasks", so the origin is rewritten to the Google DSE origin (e.g.,https://www.google.com/). - Silent Grant:
PermissionContextBasechecks existing grants using the rewritten origin. Because permissions like Geolocation useTOP_ORIGIN_ONLY_SCOPE, the browser finds the user's existing grant for Google and silently allows the request, returning sensitive data to the attacker's page without a prompt.
Suggested Fix
Update ChromePermissionsClient::GetCanonicalOriginOverride, ChromePermissionsClient::CanBypassEmbeddingOriginCheck, and ChromePermissionsClient::GetEmbeddingOriginOverride to explicitly verify that both requesting_origin and embedding_origin are using the chrome:// scheme before performing host comparisons.
For example, in GetCanonicalOriginOverride:
if (requesting_origin.SchemeIs(content::kChromeUIScheme) &&
requesting_origin == embedding_origin &&
(requesting_origin.host() == chrome::kChromeUIOmniboxPopupHost ||
requesting_origin.host() == chrome::kChromeUIContextualTasksHost)) {
return GURL(UIThreadSearchTermsData().GoogleBaseURLValue())
.DeprecatedGetOriginAsURL();
}
Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0
Results from 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 origin override logic compared only the host string and omitted a check that the scheme was chrome://, so an HTTPS origin with the same host matched.
Impact
An attacker could silently obtain the user's geolocation, camera, or microphone data by inheriting previously granted Google permissions, but only if they can control DNS for the single-label host and serve a trusted HTTPS certificate.
What the attacker needed
Attacker controls DNS for the single-label host; attacker can serve a trusted HTTPS certificate; victim navigates to the attacker's URL; victim has previously granted Google sensitive permissions
The fix
The code should be updated to explicitly verify that both the requesting and embedding origins use the chrome:// scheme before performing host comparisons.
How it was found
- Control DNS on the local network so the hostname 'contextual-tasks' resolves to an attacker-controlled IP address.
- Set up an HTTPS server with a certificate for 'contextual-tasks' that the victim's browser will trust.
- Lure the victim to navigate to https://contextual-tasks/ in Chrome.
- Have the attacker's page run JavaScript that requests a sensitive permission such as geolocation.
- The permission request triggers the origin override, which rewrites the origin to Google's search origin because the host matches.
- The browser finds the user's existing grant for Google and silently allows the request, returning sensitive data without a prompt.
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 whose names look like 'contextual-tasks'. A check meant to recognise those pages only looked at the name, not whether it was really an internal chrome:// page. An attacker on the same network could make a normal website with that name and trick Chrome into thinking it was the special page, so it reused permissions the user had already given to Google.
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.