Skip to content
Access control Advisory Advanced CVE-2026-79238

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.cc
  • chrome/browser/chrome_content_browser_client.cc
  • chrome/browser/extensions/api/settings_overrides/settings_overrides_api.cc
  • chrome/common/extensions/manifest_handlers/settings_overrides_handler.cc
  • content/browser/service_worker/service_worker_loader_helpers.cc
  • content/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

  1. Unchecked alternate_urls Ingestion: In chrome/browser/extensions/api/settings_overrides/settings_overrides_api.cc (lines 131-138) and chrome/common/extensions/manifest_handlers/settings_overrides_handler.cc (lines 70-112), the alternate_urls provided in the chrome_settings_overrides.search_provider manifest key are copied verbatim into TemplateURLData with no host, origin, or pattern validation.

  2. Attacker-Controlled Synthetic Response Eligibility: ChromeContentBrowserClient::IsServiceWorkerSyntheticResponseAllowed (defined in chrome/browser/chrome_content_browser_client.cc:3820) delegates its validation to IsDefaultSearchEngine, which resolves to true for any URL whose host and path matches any entry in alternate_urls via TemplateURL::IsSearchURL and TemplateURLRef::ExtractSearchTermsFromURL (defined in components/search_engines/template_url.cc).

  3. Registry Shadowing: In ServiceWorkerRegistry::FindRegistrationForClientUrl (content/browser/service_worker/service_worker_registry.cc line 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 with fetch_handler_type = kNoHandler and router rules that route everything directly to the network. The database lookup for the real ServiceWorker is completely bypassed.

  4. Self-Reinforcing Cache Invalidation: When the synthetic branch runs with scopes == std::nullopt, DidFindRegistrationForClientUrl invokes ClearInternalCacheForStorageKey(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.

  1. An extension is installed whose manifest declares a chrome_settings_overrides block 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.
  2. The user navigates to https://victim.com/anything (a top-level GET request).
  3. Instead of running the victim's legitimate registered ServiceWorker, Chrome serves a synthetic ServiceWorker configured with kNoHandler and 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.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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

  1. Install an extension whose manifest declares a settings override with an alternate URL pointing at the victim origin and no host permissions.
  2. The user accepts the prompt to change search settings.
  3. The user navigates to a page on the victim origin.
  4. 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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.