Improper input validation in FileAPI (CVE-2026-87510)
A compromised renderer can host its own Blob implementation and start a download, then fabricate redirect and response messages to the browser's download client. This lets it forge the download's canonical source URL and origin, potentially spoofing security indicators such as Mark-of-the-Web, Safe Browsing checks, the download UI and enterprise policies.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 2 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 compromised renderer can register a self-hosted blink::mojom::Blob and initiate a download of its blob URL. Because the browser forwards the URLLoaderClient remote directly to the renderer-hosted Blob, the renderer can fabricate redirect and response calls to forge the download's canonical source URL and origin. This allows a compromised renderer to potentially spoof security indicators including Mark-of-the-Web, Safe Browsing checks, the download UI, and enterprise policies.
Affected files:
storage/browser/blob/blob_url_loader_factory.ccstorage/browser/blob/blob_url_store_impl.cccomponents/download/internal/common/resource_downloader.cccomponents/download/internal/common/download_response_handler.cc
Estimated timestamp from git blame: 2018-02-01
Summary / Potential Impact
There is a potential vulnerability in the download subsystem of Chromium where a compromised renderer can spoof the canonical source URL and origin of a downloaded file. By hosting its own implementation of blink::mojom::Blob and initiating a download, the renderer receives the browser's URLLoaderClient Mojo remote (implemented by DownloadResponseHandler). This allows the compromised renderer to simulate a cross-origin redirect to any arbitrary HTTPS URL (e.g., https://victim-bank.com/secure/payload.exe).
As a result, the browser completes the download, writing the renderer-supplied bytes to disk while treating the file's origin as the spoofed URL. This allows the renderer to potentially:
- Spoof the source metadata on disk (Windows Zone.Identifier / Mark-of-the-Web, macOS quarantine data URL).
- Bypass Safe Browsing download protection whitelists and reputation checks.
- Spoof the origin displayed in the Chrome download bubble or shelf.
- Trigger enterprise auto-open policies (e.g.,
AutoOpenAllowedForURLs) if the spoofed URL matches an allowlist.
Note: These steps are based on static code analysis and are potential/suggested steps; our tooling does not currently have the ability to run proof-of-concept exploit code.
Potential Step-by-Step Scenario
-
Register a Renderer-Hosted Blob: A compromised renderer creates a Mojo pipe for
blink.mojom.Blob, keeping theReceiverend and implementing a malicious, self-hostedBlobinterface. It callsBlobURLStore::Registerwith a URL of its own origin (e.g.,blob:https://evil.com/UUID) and thePendingRemote<Blob>endpoint. -
Obtain a Blob URL Token: The renderer resolves the registered blob URL as a token by calling
BlobURLStore::ResolveAsBlobURLTokento receive ablink::mojom::BlobURLTokenremote mapping to the renderer's hosted Blob. -
Initiate the Download: The renderer calls
LocalFrameHost::DownloadURLvia Mojo, supplying the blob URL, the token, and settingcross_origin_redirectstonetwork::mojom::RedirectMode::kFollow. -
Browser Plumbs the Loader Factory: The browser-process
RenderFrameHostImpl::DownloadURLbuilds aBlobURLLoaderFactorywrapping the token's remote, passes it to theInProgressDownloadManager, and executes the load on the IO thread viaResourceDownloader::Start. -
Handover of Mojo Endpoints:
ResourceDownloader::Startcreates a browser-sideDownloadResponseHandlerto act as theURLLoaderClient. It then callsCreateLoaderAndStarton theBlobURLLoaderFactorywith aPendingReceiver<URLLoader>and thePendingRemote<URLLoaderClient>. Because the factory is backed by the renderer's custom Blob, both endpoints are delivered straight to the renderer'sBlob::Loadimplementation. -
Fabricate a Redirection: The renderer intercepts the
URLLoaderClientremote and callsOnReceiveRedirectwith a spoofedRedirectInfocontaining a target URL (e.g.,https://victim-bank.com/secure/payload.exe) and referrer. -
Bypass Cross-Origin Restrictions: The browser's
DownloadResponseHandler::OnReceiveRedirectprocesses the redirect. Sincecross_origin_redirectswas set tokFollowby the renderer, the cross-origin check is bypassed, and the forged URL is appended to the download'surl_chain_. -
Serve the Payload: The renderer calls
OnReceiveResponseon theURLLoaderClientremote, providing a fakeURLResponseHeadand its malicious payload via a Mojo data pipe. The download completes, and the spoofed URL (victim-bank.com) is recorded as the primary canonical source of the download.
Code References
- Endpoint Hand-off:
storage/browser/blob/blob_url_loader_factory.cc:80-81 - Redirect Hand-off & URL Chain Manipulation:
components/download/internal/common/download_response_handler.cc:212-257 - Downstream Sinks (MotW & Quarantine):
components/download/internal/common/download_item_impl.cc:2027-2036andcomponents/download/internal/common/base_file.cc:619-644
Suggested Fix
To prevent this vulnerability, the browser process should ensure that the blink::mojom::Blob remote used to fetch download resources is always browser-hosted.
Specifically, VerifyDownloadUrlParams or the DownloadURL entry point should validate that any blob_url_token supplied by the renderer resolves to a blob backed by storage::BlobImpl (or similar browser-controlled storage), rather than allowing arbitrary renderer-hosted implementations to handle the Load request.
Evaluated with Chrome root at commit: 84065d9121f6e48f67755f0ae963cc09617e5c85
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 forwards its download client endpoint directly to a renderer-supplied Blob implementation instead of requiring a browser-hosted blob, so the renderer controls the redirect and response messages.
Impact
A compromised renderer could spoof the download's source metadata, bypass Safe Browsing download checks, mislead the download UI and trigger enterprise auto-open allowlists; the report notes these are potential findings from static analysis without a working proof of concept.
What the attacker needed
Compromised renderer process; no user interaction beyond the download
The fix
The browser should verify that any renderer-supplied blob URL token resolves to a browser-controlled blob rather than an arbitrary renderer-hosted implementation.
How it was found
- The compromised renderer registers a self-hosted Blob and a blob URL of its own origin.
- It resolves the blob URL as a token to get a BlobURLToken remote.
- It calls DownloadURL with the blob URL, the token and redirect mode set to follow.
- The browser builds a BlobURLLoaderFactory and starts the download, handing the loader and client endpoints to the renderer's Blob.
- The renderer sends a fabricated redirect to an arbitrary HTTPS URL, which is accepted and added to the URL chain.
- The renderer sends a fabricated response with its payload, and the download completes under the spoofed URL.
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 the renderer, which is treated as untrusted. Normally the browser decides where a download really came from, but here the renderer is allowed to answer the browser's questions itself and simply claim the file came from any site it likes. That false label could fool the operating system's 'downloaded from the internet' warning or the browser's own safety checks.
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.