Skip to content
Business logic Advisory Advanced CVE-2026-87503

Inappropriate implementation in Downloads (CVE-2026-87503)

Chrome for Android's Safe Browsing content scan can be bypassed for downloads resumed by a background task in minimal browser mode, because the download manager used there does not perform the required completion check. An attacker could deliver a malicious file that is saved without being scanned.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 5 months

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: A potential security vulnerability exists in Chrome for Android where Safe Browsing content scans can be bypassed by exploiting background download resumption in minimal browser mode. When an interrupted download is resumed and completed by the background task, the InProgressDownloadManager fails to perform the mandatory ShouldCompleteDownload check, allowing a potentially dangerous file to be finalized without a scan.

Affected files:

  • components/download/internal/common/in_progress_download_manager.cc
  • components/download/internal/common/download_item_impl_delegate.cc
  • components/download/internal/common/download_item_impl.cc
  • chrome/android/java/src/org/chromium/chrome/browser/download/service/DownloadBackgroundTask.java
  • chrome/browser/download/android/download_manager_service.cc

Estimated timestamp from git blame: 2023-11-09

Summary

A potential vulnerability exists in Chrome for Android where Safe Browsing protection can be bypassed for downloads that are resumed via the DownloadBackgroundTask in minimal browser mode. In this mode, the InProgressDownloadManager acts as the DownloadItemImplDelegate but fails to implement the ShouldCompleteDownload check that triggers Safe Browsing content scans. Consequently, malicious files can be downloaded and saved to the user's device without undergoing a content scan, even if they were originally flagged for scanning.

Technical Details

When a download is initiated in the full browser, ChromeDownloadManagerDelegate determines if a Safe Browsing scan is needed. If so, it sets the danger_type to DOWNLOAD_DANGER_TYPE_MAYBE_DANGEROUS_CONTENT. In the full browser, ChromeDownloadManagerDelegate::ShouldCompleteDownload blocks completion until the Safe Browsing verdict is received.

On Android, Chrome can be terminated (e.g., due to memory pressure), and interrupted downloads are resumed by the DownloadBackgroundTask. This task often runs Chrome in "minimal browser mode" (supportsMinimalBrowser() returns true). In this mode, the full content::DownloadManager (and the ChromeDownloadManagerDelegate which normally enforces Safe Browsing checks) is not initialized because RunBrowserProcessMain is skipped.

Instead, InProgressDownloadManager is used as the delegate for restored downloads. InProgressDownloadManager does not override ShouldCompleteDownload. It inherits the base-class implementation in DownloadItemImplDelegate, which returns true unconditionally. Furthermore, DOWNLOAD_DANGER_TYPE_MAYBE_DANGEROUS_CONTENT returns false for IsDangerous(), making these downloads eligible for auto-resumption and allowing them to bypass the IsDownloadReadyForCompletion() danger check.

As a result, when the background task resumes and completes the download, MaybeCompleteDownload() calls ShouldCompleteDownload(), receives true immediately, and the file is moved to its final path without the Safe Browsing content check ever being performed.

Potential Reproduction Steps

(Note: These are potential steps based on code analysis; our tooling agent doesn't yet have the ability to run code to verify them.)

  1. Use an Android device and initiate a download for a file type that triggers a Safe Browsing content scan (e.g., an APK or executable) from an attacker-controlled server.
  2. Accept any initial download prompt. Chrome sets the danger_type to MAYBE_DANGEROUS_CONTENT and persists the state to the in-progress database.
  3. The attacker server intentionally drops the connection midway through the download.
  4. Ensure the Chrome process is terminated (e.g., by opening other apps to trigger an OOM kill or using developer tools to stop the process).
  5. Wait for the Android JobScheduler to fire the DownloadBackgroundTask. This task will start Chrome in minimal mode.
  6. The background task identifies the resumable download and calls Resume(). The attacker server serves the full malicious payload upon resumption.
  7. Once all data is saved, MaybeCompleteDownload is called. Because the delegate is InProgressDownloadManager (which lacks a ShouldCompleteDownload override), it returns true immediately without checking with Safe Browsing.
  8. The file is renamed to its final path in the Downloads folder, bypassing the content scan.

Suggested Fix

Implement ShouldCompleteDownload in InProgressDownloadManager. If a download has a danger_type indicating it needs a Safe Browsing scan (such as DOWNLOAD_DANGER_TYPE_MAYBE_DANGEROUS_CONTENT), the manager should either:

  1. Delay completion and trigger the initialization of the full browser process so that ChromeDownloadManagerDelegate can perform the scan, OR
  2. Block the completion and mark the download as interrupted or failed if the scan cannot be performed in minimal mode.

Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0


Results from so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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 InProgressDownloadManager used in minimal browser mode does not override ShouldCompleteDownload, so it inherits a default that always allows completion without triggering a Safe Browsing scan.

Impact

A malicious file could be saved to the user's device without undergoing a Safe Browsing content scan, potentially leading to malware installation if the user opens it.

What the attacker needed

Android device with Chrome; Attacker-controlled server; Download of a file type that triggers a scan; Chrome process terminated during download

The fix

Implement ShouldCompleteDownload in InProgressDownloadManager to either delay completion and trigger a full browser process for scanning, or block completion if a scan cannot be performed.

How it was found

  1. Start a download of a file type that triggers a Safe Browsing scan from an attacker-controlled server.
  2. Accept the download prompt; Chrome marks the download as potentially dangerous and saves its state.
  3. The attacker server drops the connection midway through the download.
  4. Terminate the Chrome process (e.g., by memory pressure or developer tools).
  5. Wait for the Android JobScheduler to run the DownloadBackgroundTask, which starts Chrome in minimal mode.
  6. The background task resumes the download; the server serves the full malicious payload, and the file is completed without a Safe Browsing scan.

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.

Safe Browsing is a Chrome feature that checks downloaded files for malware. This report found that if a download is interrupted and later resumed by a background task, Chrome skips that check, so a harmful file could be saved without being examined.

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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.