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

Inappropriate implementation in Downloads (CVE-2026-11107)

When an interrupted download is restarted from offset 0, Chrome keeps the partial SHA-256 hash state from the aborted attempt, so the final file's reported hash is wrong. On Android this could let a malicious APK evade Safe Browsing's hash-based blocklist check.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 56 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 without the security team.

Overview: A logic error during download resumption allows a stale SHA-256 hash state to persist when an interrupted download is restarted from offset 0. This results in an incorrect hash being calculated for the final file, which can bypass Safe Browsing blocklist checks, particularly on Android.

Affected files:

  • components/download/internal/common/download_item_impl.cc
  • components/download/internal/common/download_utils.cc
  • components/download/internal/common/base_file.cc

Estimated timestamp from git blame: 2019-09-03

Summary

A potential logic flaw exists in Chrome's download resumption mechanism. When an interrupted download is restarted from the beginning (offset 0), the partial cryptographic hash state from the aborted attempt is not cleared. The new file data is appended to this stale hash state, resulting in a corrupted final SHA-256 hash. Because Safe Browsing on Android relies on this hash for Client-Side Detection (CSD) of APKs, a malicious file can bypass hash-based blocklist detections.

Technical Description

The vulnerability stems from a desynchronization between the download offset and the cryptographic hash state during download resumption.

  1. State Clamping: In components/download/internal/common/download_item_impl.cc (DownloadItemImpl::ResumeInterruptedDownload), when kAllowDownloadResumptionWithoutStrongValidators is enabled (default on Android) and strong validators are missing, Chrome checks if the offset is less than or equal to validation_length (default 1024 bytes). If so, it restarts the download by setting download_params->set_offset(0). However, it previously moved the stale hash_state_ into download_params and fails to clear it when clamping the offset to 0.
  2. Failsafe Bypass: The resumed request is sent without a Range header because the offset is 0. The server responds with a 200 OK. In components/download/internal/common/download_utils.cc (HandleSuccessfulServerResponse), there is a failsafe intended to clear the hash state if a partial response was expected but a full response was received. This failsafe checks if (save_info && save_info->offset > 0). Because the offset was clamped exactly to 0, this check evaluates to false, and the stale hash is preserved.
  3. File Truncation without Hash Reset: In components/download/internal/common/base_file.cc (BaseFile::Open), the code sees that the existing file on disk is larger than bytes_so_far_ (which is 0). It correctly truncates the file on disk to 0 bytes via file_.SetLength(bytes_so_far_). However, it does not reset the secure_hash_ object, which still contains the digested state of the initial partial download.
  4. Corruption: As the full file arrives, it is appended to the stale hash state. The final hash becomes SHA256(aborted_prefix || full_new_file) instead of SHA256(full_new_file).

Potential Attack Scenario

Note: These are suggested steps; we have not run a live proof-of-concept.

  1. An attacker hosts a malicious APK whose true SHA-256 hash is known to Safe Browsing.
  2. The attacker configures their server to respond to the initial download request by omitting ETag and Last-Modified headers, sending a small amount of garbage data (e.g., 500 bytes), and then forcibly closing the TCP connection.
  3. A victim on Android clicks the download link. Chrome downloads the 500 bytes and updates the hash state before the connection drops.
  4. Chrome automatically attempts to resume. Because 500 < 1024 bytes, Chrome clamps the offset to 0 but retains the hash state digesting the 500 garbage bytes.
  5. Chrome sends a new request (offset 0). The attacker's server responds with 200 OK and the full malicious APK.
  6. The download completes. The resulting file on disk is the malicious APK, but the hash reported by DownloadItem::GetHash() is corrupted.
  7. Safe Browsing performs a CSD check using the corrupted hash, fails to find a blocklist match, and allows the installation without a warning.

Suggested Fix

In components/download/internal/common/download_item_impl.cc within ResumeInterruptedDownload, the hash_state should be explicitly reset when the offset is clamped to 0:

C++
    } else {
      // There is not enough data for validation, simply overwrites the
      // existing data from the beginning.
      download_params->set_offset(0);
      download_params->hash_state().reset(); // ADD THIS LINE
    }

Additionally, BaseFile::Open should probably reset secure_hash_ if it decides to truncate the file to 0 bytes.

Evaluated with Chrome root at commit: 137d451a126685dd5010e6609db9f6d4a78d8234


Results 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 resumption code clamps the download offset to 0 without clearing the carried-over hash state, and the failsafe that should clear it only triggers when the offset is greater than 0.

Impact

A malicious APK could be installed on Android without a Safe Browsing warning, though the report notes the scenario was not run as a live proof-of-concept.

What the attacker needed

Victim on Android; victim starts the download; attacker controls the download server

The fix

The hash state should be explicitly reset when the offset is clamped to 0, and the file layer should reset its hash when truncating to zero bytes.

How it was found

  1. Attacker serves a malicious APK from a server that omits validators, sends a small amount of data, then drops the connection.
  2. Victim on Android starts the download; Chrome hashes the small partial data before the connection closes.
  3. Chrome resumes; since the partial size is under the validation length, it restarts from offset 0 but keeps the old hash state.
  4. The server returns the full APK with a normal success response, and the file is written to disk.
  5. The download finishes with a corrupted hash, so the Safe Browsing check does not match the blocklist.

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.

Chrome checks downloads against a list of known-bad files by comparing a fingerprint (a hash) of the file. If a download is interrupted and restarted, the code that builds this fingerprint is not reset, so the fingerprint no longer matches the real file. A bad file could then slip past the check.

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.