Skip to content
Access control Advisory Intermediate CVE-2026-87441

Missing authorization in Downloads (CVE-2026-87441)

Several action functions in the chrome.downloads extension API fail to check whether a download item should be accessible to extensions, allowing a malicious extension to guess sequential download IDs and cancel or delete internal browser downloads. This could disrupt extension installations or corrupt internal state.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 months

Flapjack, 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: Several functions in the chrome.downloads extension API fail to verify if a download item should be accessible to extensions via the ShouldExport utility. Because download IDs are sequentially generated, a malicious extension can guess IDs and use action APIs like downloads.cancel or downloads.removeFile to disrupt or delete internal browser downloads, such as Web Store extension installations or Optimization Guide models.

Affected files:

  • chrome/browser/extensions/api/downloads/downloads_api.cc

Estimated timestamp from git blame: 2020-04-17

Description

The chrome.downloads extension API uses a ShouldExport utility function (chrome/browser/extensions/api/downloads/downloads_api.cc:512) to enforce a security boundary. It filters out downloads that extensions should not be able to interact with, specifically "temporary" downloads (e.g., .crx extension installation files via WebstoreInstaller) and "internal" downloads (e.g., DownloadSource::INTERNAL_API used by the Optimization Guide or Background Fetch).

While ShouldExport is correctly used to suppress extension events (onCreated, onChanged) and filter downloads.search results, it is missing from several 'action' API functions that take a downloadId as an argument.

Because DownloadItem IDs are sequentially generated uint32_t integers scoped to the current BrowserContext (content/browser/download/download_manager_impl.cc:419), an attacker can easily guess upcoming or past IDs. A malicious extension can bypass the visibility restrictions by directly calling action APIs with guessed IDs.

The following functions in chrome/browser/extensions/api/downloads/downloads_api.cc retrieve a DownloadItem using GetDownload() and validate it with InvalidId(), but fail to call ShouldExport before performing operations:

  • downloads.pause (DownloadsPauseFunction::Run)
  • downloads.resume (DownloadsResumeFunction::Run)
  • downloads.cancel (DownloadsCancelFunction::Run)
  • downloads.acceptDanger (DownloadsAcceptDangerFunction::Run via PromptOrWait)
  • downloads.show (DownloadsShowFunction::Run)
  • downloads.open (DownloadsOpenFunction::Run)
  • downloads.removeFile (DownloadsRemoveFileFunction::Run)
  • downloads.getFileIcon (DownloadsGetFileIconFunction::Run)

Potential Exploitation Steps

Note: These are potential steps based on static analysis; our tooling agent does not execute code.

  1. A malicious extension with the downloads permission is installed.
  2. The extension calls chrome.downloads.search({}) to discover the approximate current highest download ID.
  3. Denial of Service (Blocking Extension Installs): The extension starts a tight background loop calling chrome.downloads.cancel(guess_id) on future IDs. Because cancel silently ignores invalid or inactive IDs, this loop runs without throwing errors.
  4. The user attempts to install a new security extension from the Chrome Web Store. The browser initiates a temporary .crx download and assigns it the next sequential ID.
  5. The extension's brute-force loop hits the new ID. DownloadsCancelFunction::Run retrieves the internal DownloadItem and, lacking a ShouldExport check, cancels it. The installation fails silently from the browser UI's perspective.
  6. Arbitrary File Deletion: Alternatively, the extension guesses IDs of completed internal downloads and calls chrome.downloads.removeFile(guess_id). DownloadsRemoveFileFunction::Run bypasses the export check and deletes the physical file downloaded by internal browser components (e.g., Optimization Guide models), potentially corrupting internal state.

Suggested Fix

All API action functions in chrome/browser/extensions/api/downloads/downloads_api.cc that retrieve a DownloadItem by ID should be updated to verify the item using ShouldExport(*download_item) before proceeding. This could be efficiently implemented by updating the InvalidId() helper function to optionally or mandatorily perform the ShouldExport check, or by adding the check alongside existing state validations in the Run() methods.

Evaluated with Chrome root at commit: b7d0c4d810da1b31400f198c70d9720fc8f0e5a0


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 action functions that take a download ID retrieve the item and check only that the ID is valid, but omit the ShouldExport check that is used elsewhere to hide internal and temporary downloads.

Impact

A malicious extension could cancel internal downloads such as extension installations or delete files downloaded by internal browser components, potentially disrupting installations or corrupting internal state.

What the attacker needed

A malicious extension with downloads permission; user installs the extension

The fix

The action functions should be updated to verify the download item with ShouldExport before proceeding, for example by adding the check to the InvalidId helper or alongside existing validations.

How it was found

  1. Install a malicious extension with the downloads permission.
  2. Call chrome.downloads.search({}) to find the approximate current highest download ID.
  3. Run a loop calling chrome.downloads.cancel on guessed future IDs.
  4. When the user tries to install an extension from the Web Store, the browser starts a temporary .crx download with the next sequential ID.
  5. The loop cancels that download, causing the installation to fail silently.
  6. Alternatively, guess IDs of completed internal downloads and call chrome.downloads.removeFile to delete the physical files.

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 browser extension can ask the browser to manage downloads, but some downloads are meant to be off-limits, like the files used to install other extensions. The browser uses a simple number for each download, and because these numbers go up in order, a bad extension can guess them. This report says the extension can use those guessed numbers to cancel or delete downloads it should not touch.

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.