Incorrect authorization in ServiceWorker (CVE-2026-79238)
An extension holding only the settings-overrides permission could list arbitrary third-party origins as alternate search URLs, and Chrome then treated those origins as eligible for a synthetic ServiceWorker. This shadowed the victim site's real ServiceWorker, disabling its fetch interception and any client-side security policies it enforced.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 3 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A logical flaw in Chrome's Settings Overrides API allows a malicious extension with only the chrome_settings_overrides permission to register arbitrary third-party origins under alternate_urls. When a user navigates to those origins, the browser mistakenly identifies them as eligible for a synthetic ServiceWorker response. This completely shadows the victim origin's real ServiceWorker, silently bypassing its fetch interception and security controls.
Affected files:
content/browser/service_worker/service_worker_registry.ccchrome/browser/chrome_content_browser_client.ccchrome/browser/extensions/api/settings_overrides/settings_overrides_api.ccchrome/common/extensions/manifest_handlers/settings_overrides_handler.cccontent/browser/service_worker/service_worker_loader_helpers.cccontent/browser/service_worker/service_worker_controllee_request_handler.cc
Estimated timestamp from git blame: 2025-05-26
Description
An extension with only the chrome_settings_overrides permission (and no host permissions) can register arbitrary third-party origins under search_provider.alternate_urls. When a user navigates to a listed URL, the browser's synthetic-response matching flags it as a default search engine URL, prompting ServiceWorkerRegistry::FindRegistrationForClientUrl to early-return an in-memory synthetic ServiceWorker registration. This completely shadows the victim site's real ServiceWorker, silently disabling its fetch interception, offline caching, and any client-side security policies or headers normally injected via the ServiceWorker.
Root Cause Analysis
-
Unchecked
alternate_urlsIngestion: Inchrome/browser/extensions/api/settings_overrides/settings_overrides_api.cc(lines 131-138) andchrome/common/extensions/manifest_handlers/settings_overrides_handler.cc(lines 70-112), thealternate_urlsprovided in thechrome_settings_overrides.search_providermanifest key are copied verbatim intoTemplateURLDatawith no host, origin, or pattern validation. -
Attacker-Controlled Synthetic Response Eligibility:
ChromeContentBrowserClient::IsServiceWorkerSyntheticResponseAllowed(defined inchrome/browser/chrome_content_browser_client.cc:3820) delegates its validation toIsDefaultSearchEngine, which resolves to true for any URL whose host and path matches any entry inalternate_urlsviaTemplateURL::IsSearchURLandTemplateURLRef::ExtractSearchTermsFromURL(defined incomponents/search_engines/template_url.cc). -
Registry Shadowing: In
ServiceWorkerRegistry::FindRegistrationForClientUrl(content/browser/service_worker/service_worker_registry.ccline 428), synthetic response eligibility is evaluated before performing the storage lookup for the site's real ServiceWorker registration. If eligible, it returns a synthetic ServiceWorker registration configured withfetch_handler_type = kNoHandlerand router rules that route everything directly to the network. The database lookup for the real ServiceWorker is completely bypassed. -
Self-Reinforcing Cache Invalidation: When the synthetic branch runs with
scopes == std::nullopt,DidFindRegistrationForClientUrlinvokesClearInternalCacheForStorageKey(key), wiping the in-memory scope-cache for the victim origin. This ensures subsequent navigations continue to bypass the real ServiceWorker.
Potential Attack Scenario
Note: These are potential steps. Our security review was performed statically, and we have not run a live proof of concept.
- An extension is installed whose manifest declares a
chrome_settings_overridesblock targeting an attacker's search provider, and includes"alternate_urls": ["https://victim.com/{searchTerms}"]with no host permissions. The user accepts the "Change your search settings" prompt. - The user navigates to
https://victim.com/anything(a top-level GET request). - Instead of running the victim's legitimate registered ServiceWorker, Chrome serves a synthetic ServiceWorker configured with
kNoHandlerand network router rules. The page loads directly from the network, disabling any fetch interception, custom headers, or security policies (e.g. CSRF or CSP) deployed via the victim's ServiceWorker.
Feature Flag Dependencies
This potential issue requires the ServiceWorkerSyntheticResponse feature to be enabled. It is currently disabled by default but active in field trials on platforms including Android, ChromeOS, Linux, macOS, and Windows via testing/variations/fieldtrial_testing_config.json.
Suggested Fix
Restrict alternate_urls parsing or registration in chrome/common/extensions/manifest_handlers/settings_overrides_handler.cc and chrome/browser/extensions/api/settings_overrides/settings_overrides_api.cc to ensure that an extension cannot specify alternate search URLs targeting domains for which it does not hold host permissions. Alternatively, restrict ChromeContentBrowserClient::IsServiceWorkerSyntheticResponseAllowed to exclude alternate search URLs from synthetic response matching unless the origin is validated.
Evaluated with Chrome root at commit: 5133b93d189b383c37805b1cf3a9d2dbfe8d7379
Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:
- If you are familiar with the severity guidelines, you may adjust the severity.
- If this is a false positive, and there's no work to be done, please close as WAI.
- If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.
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 settings-overrides code copied extension-supplied alternate search URLs without checking host or origin, and the ServiceWorker registry checked synthetic-response eligibility before looking up the site's real registration.
Impact
The victim site's ServiceWorker fetch interception, custom headers and client-side security policies could be bypassed, but only when the synthetic-response feature flag is enabled, and the report notes the steps were not run live.
What the attacker needed
Victim installs a malicious extension; user accepts the search settings prompt; synthetic-response feature flag enabled
The fix
The report suggests restricting alternate URL registration to domains the extension holds host permissions for, or excluding alternate search URLs from synthetic response matching unless the origin is validated; it does not say a fix was shipped.
How it was found
- Install an extension whose manifest declares a settings override with an alternate URL pointing at the victim origin and no host permissions.
- The user accepts the prompt to change search settings.
- The user navigates to a page on the victim origin.
- Chrome serves a synthetic ServiceWorker with no handler instead of the victim's real one, so the page loads straight from the network.
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 ServiceWorker is a script a website registers in the browser to intercept its own network requests, for example to add security headers or serve cached pages. The report says a malicious browser extension could trick Chrome into ignoring that script for a chosen website, so the site's own protections would not run. The flaw was found by reading the code, not by running an 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.