Improper input validation in Workers (CVE-2026-79025)
A compromised renderer could register a self-hosted Blob URL as a worker's main script and forge the response head during loading, because the browser-side worker script loader did not validate blob-scheme responses. This let the worker be assigned a loopback address space, bypassing Local Network Access protections so the renderer could reach private network endpoints without prompts.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 35 days
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 compromised renderer can potentially register a self-hosted Blob URL as a worker main script to forge a response head during script loading. Because WorkerScriptLoader::OnReceiveResponse lacks validation gating for blob schemes, the forged response propagates downstream. This allows the worker to be assigned a kLoopback address space, completely bypassing Local Network Access (LNA) protections.
Affected files:
content/browser/worker_host/worker_script_loader.cccontent/browser/worker_host/dedicated_worker_host.cccontent/browser/worker_host/shared_worker_host.cccontent/browser/worker_host/worker_script_fetcher.cc
Estimated timestamp from git blame: 2022-02-02
Description
There is a potential vulnerability in Chromium's worker script loading infrastructure where a compromised renderer can bypass Local Network Access (LNA) protections. This occurs because WorkerScriptLoader::OnReceiveResponse does not validate or sanitize responses received from blob URL scheme loaders.
Root Cause Analysis
- Blob URL Registration:
BlobURLStoreImpl::Registeraccepts an arbitrary renderer-suppliedblink.mojom::Blobremote and registers it in the browser-process registry (storage/browser/blob/blob_url_store_impl.cc:118). - Handing Client to Renderer: When a dedicated or shared worker main script is fetched from a Blob URL, the browser's
WorkerScriptLoaderserves as theURLLoaderClient.BlobURLLoaderFactory::CreateLoaderAndStartforwards this client remote directly to the renderer-hostedBlobremote (storage/browser/blob/blob_url_loader_factory.cc:80-81). - Ungated OnReceiveResponse: The compromised renderer can invoke
URLLoaderClient::OnReceiveResponseon the browser-process client with a fully forgedURLResponseHead. UnlikeWorkerScriptLoader::OnReceiveRedirectwhich contains aSchemeIsBlob()gate to block unsafe transitions (content/browser/worker_host/worker_script_loader.cc:235),WorkerScriptLoader::OnReceiveResponsedoes not restrict or sanitize response parameters for blob URLs. - Downstream Spoofing: Because the renderer can forge fields such as
was_fetched_via_service_worker = true,client_address_space = kLoopback, andurl_list_via_service_worker = ["https://evil.com/forged"], the browser-sideDedicatedWorkerHostorSharedWorkerHostcalculates the worker's security state based on these spoofed attributes. - LNA Bypass: Consequently, the browser mints a subresource
URLLoaderFactoryfor the worker whereip_address_spaceis set tokLoopback. This allows the renderer to query private network endpoints (e.g.,127.0.0.1or RFC1918 addresses) through the resulting factory without any LNA restrictions or permission prompts.
Note: These are suggested/potential steps of an exploit chain, as our tooling agent does not have the capability to run code or verify exploitability live.
Potential Steps to Trigger the Vulnerability
- From a compromised renderer (e.g.,
https://evil.com), register a self-hostedblink.mojom.Blobreceiver mapping to a local Blob URL (e.g.,blob:https://evil.com/UUID). - Call
ResolveAsBlobURLTokento retrieve aBlobURLTokencorresponding to that URL. - Trigger dedicated worker creation by calling
DedicatedWorkerHostFactory.CreateWorkerHostAndStartScriptLoadwith the Blob URL and the token. - The custom renderer-hosted Blob implementation receives the
Load(..., client)call. On the provided browser-sideURLLoaderClientremote, callOnReceiveResponsewith a forgedURLResponseHeadwhere:url_list_via_service_worker = ["https://evil.com/forged"]was_fetched_via_service_worker = trueclient_address_space = kLoopbackparsed_headersis non-null withcross_origin_embedder_policy = kNone
- Retrieve the subresource factory delivered via the resulting worker client and use it to successfully issue requests to loopback/private network addresses (e.g.,
http://127.0.0.1:8000/) without triggering LNA restrictions.
Suggested Fix
To remediate this issue, restrict or sanitize the incoming URLResponseHead when the resource request scheme is a Blob URL. In WorkerScriptLoader::OnReceiveResponse (content/browser/worker_host/worker_script_loader.cc:221), verify if resource_request_.url.SchemeIsBlob() is true. If it is, either sanitize the response_head by clearing out renderer-influenceable fields (such as url_list_via_service_worker, was_fetched_via_service_worker, and client_address_space) or reject the response entirely if unexpected fields are populated.
Evaluated with Chrome root at commit: 5a99d0c5d2ec6c066f5131e7868ff637440cc3dc
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 browser-side WorkerScriptLoader::OnReceiveResponse did not check or sanitise response fields when the request scheme was blob, unlike the redirect handler which had a blob-scheme gate.
Impact
A compromised renderer could reach loopback and private network addresses through the worker without any Local Network Access restrictions or permission prompts; the report notes the exploit chain was not run or verified live.
What the attacker needed
Compromised renderer; ability to register a Blob URL
The fix
The response head should be sanitised or rejected in WorkerScriptLoader::OnReceiveResponse when the request scheme is blob, clearing renderer-influenceable fields such as the service-worker URL list, the service-worker flag and the client address space.
How it was found
- From a compromised renderer, register a self-hosted Blob receiver mapping to a local Blob URL.
- Resolve the Blob URL to obtain a BlobURLToken.
- Create a dedicated worker using the Blob URL and token.
- The renderer-hosted Blob implementation receives the load call and invokes OnReceiveResponse on the browser-side client with a forged response head.
- Use the subresource factory delivered to the worker to send requests to loopback or private network addresses without LNA restrictions.
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 web page runs in a sandboxed part of the browser called a renderer. If an attacker can break out of that sandbox, they can lie to the browser about where a background script (a worker) came from. The browser trusted those lies and let the worker talk to devices on the local network, which should normally require a permission prompt.
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.