UI misrepresentation in Downloads (CVE-2026-87649)
A download throttling component shares one queue of pending download callbacks across all origins in a tab, so a prompt shown for one origin can release downloads queued by another. An attacker could time requests so that a user approving a prompt labelled with a trusted origin also allows a batch of downloads from the attacker's origin.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 4 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 logic vulnerability in DownloadRequestLimiter allows an attacker to bypass download protections by piggybacking malicious requests onto a permission prompt labeled with a different origin. This is caused by an origin-agnostic callback queue shared across all origins within a single tab.
Affected files:
chrome/browser/download/download_request_limiter.ccchrome/browser/download/download_request_limiter.h
Estimated timestamp from git blame: 2019-06-25
Summary
A potential logic flaw in DownloadRequestLimiter::TabDownloadState allows an attacker to bypass multi-download (carpet-bombing) protections. By carefully timing download requests, an attacker-controlled origin can cause the browser to release a queue of unauthorized downloads using a permission prompt that the user believes is attributed to a different, potentially trusted, origin.
Technical Details
The DownloadRequestLimiter::TabDownloadState class (defined in chrome/browser/download/download_request_limiter.h) manages the download throttling state for a single WebContents (tab). It maintains a shared queue of pending download decision callbacks: std::vector<Callback> callbacks_ (line 210).
When PromptUserForDownload is called in chrome/browser/download/download_request_limiter.cc:
- The callback is appended to the shared
callbacks_vector (line 209). - If a permission prompt is already being displayed (
is_showing_prompt()returns true), the function returns early without creating a new prompt (lines 211-212). - If no prompt is visible, a
DownloadPermissionRequestis initiated using therequest_originof the caller. This origin is displayed to the user in the permission bubble.
The flaw occurs during the resolution of the prompt. When a user clicks 'Allow', TabDownloadState::Accept is invoked, which calls NotifyCallbacks(true) (line 282). The NotifyCallbacks function (lines 383-412) drains the shared callbacks_ vector and executes all queued callbacks with allow=true.
Critically, the implementation does not verify that the origin associated with each individual queued callback matches the origin for which the user actually granted permission. Consequently, any requests queued while a prompt for a different origin is active will be silently allowed upon the user's acceptance of that prompt.
Potential Attack Scenario
- An attacker at
https://evil.exampleinitiates a single download to consume the initialALLOW_ONE_DOWNLOADquota for the tab. - The attacker triggers a download from a different origin (e.g., via a hidden iframe to
https://trusted.example), causing the browser to display a permission prompt labeled 'trusted.example wants to download multiple files'. - While this prompt is visible,
evil.exampletriggers numerous additional download requests via script. These are silently added to the sharedcallbacks_queue because a prompt is already showing. - The user, trusting
trusted.example, clicks 'Allow'. NotifyCallbacksexecutes the entire queue, releasing all pending downloads fromevil.examplesimultaneously.
Suggested Fix
Modify TabDownloadState to track the origin associated with each pending callback. The callbacks_ queue should be replaced with a structure (such as a map) that separates callbacks by origin. NotifyCallbacks should be updated to only execute callbacks that match the specific origin for which the user interacted with the prompt.
Note: These steps and the impact are based on code analysis and represent a potential vulnerability; a functional proof-of-concept has not been executed.
Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a
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
The pending download callbacks are stored in a single origin-agnostic queue per tab, and accepting a prompt drains the whole queue without checking each callback's origin against the origin shown in the prompt.
Impact
A user who approves a prompt for one origin could unknowingly allow a batch of downloads from another origin, defeating the multi-download protection; the report notes this is based on code analysis and no working proof of concept was run.
What the attacker needed
Victim visits attacker page; victim clicks Allow on a prompt; attacker can load a second origin in an iframe
The fix
The pending callbacks should be tracked per origin, for example in a map keyed by origin, and accepting a prompt should only run callbacks matching the origin the user approved.
How it was found
- The attacker's origin starts one download to use up the tab's initial single-download allowance.
- A download from a different, trusted-looking origin is triggered, for example through a hidden iframe, so the prompt names that origin.
- While the prompt is visible, the attacker's page fires many more download requests, which are queued without a new prompt.
- The user clicks Allow on the prompt they believe belongs to the trusted origin.
- All queued callbacks run with allow set to true, releasing the attacker's downloads.
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.
Browsers limit how many files a site can download in a row, to stop pages flooding your machine with files. When the browser asks you to allow more downloads, it shows the name of the site asking. Here the browser kept one shared waiting list for the whole tab instead of one per site, so approving a prompt for a site you trust could also let a different site's downloads through.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.