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

Inappropriate implementation in Safe Browsing (CVE-2026-11231)

Two logic errors in the DMG analyzer cause Safe Browsing to skip scanning nested archives within DMG files. An attacker could place a malicious payload inside a nested archive in a DMG file, and Safe Browsing would report the file as safe, allowing the user to access the payload.

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.

Overview: Two logic errors in DMGAnalyzer cause Safe Browsing to skip scanning nested archives within DMG files. A missing assignment in OnGetTempFile prevents nested extraction, and an inverted return value in ResumeExtraction prematurely signals analysis completion, allowing malicious payloads to evade detection.

Affected files:

  • chrome/utility/safe_browsing/mac/dmg_analyzer.cc

Estimated timestamp from git blame: 2023-07-26

Two interconnected logic bugs in chrome/utility/safe_browsing/mac/dmg_analyzer.cc result in nested archives within DMG files bypassing Safe Browsing analysis on macOS.

Bug 1: Missing assignment in DMGAnalyzer::OnGetTempFile

In chrome/utility/safe_browsing/mac/dmg_analyzer.cc, the method DMGAnalyzer::OnGetTempFile receives a base::File temp_file parameter but fails to assign it to the class member temp_file_. Consequently, temp_file_ remains an invalid, default-constructed handle.

When ResumeExtraction processes a nested archive entry (ZIP, RAR, 7z, or DMG), it attempts to extract it using CopyStreamToFile(*stream, temp_file_). Because the file handle is invalid, the underlying OS write operations fail (returning false in Release builds). This causes the loop to continue at line 208 or 212, silently skipping the nested archive entirely. Safe Browsing performs no further analysis on the skipped archive.

Bug 2: Inverted return logic in DMGAnalyzer::ResumeExtraction

If Bug 1 were fixed, a second issue exists on line 216 of dmg_analyzer.cc, which performs return !UpdateResultsForEntry(...). This inverts the contract used by sibling analyzers (such as ZIP, RAR, and 7z), which correctly use if (!UpdateResultsForEntry(...)) return false;.

When a nested archive is encountered, UpdateResultsForEntry initiates an asynchronous nested analyzer via Mojo and returns false to indicate that extraction is paused. Due to the logic inversion (!false), DMGAnalyzer returns true, incorrectly signaling to ArchiveAnalyzer::InitComplete that extraction is finished. This triggers finished_analysis_callback_ prematurely, sending a Mojo reply to the browser process before the nested scan completes.

The browser process then tears down the utility process, aborting the nested scan and resulting in a bypass. Furthermore, if the nested scan somehow finishes synchronously, it will trigger a CHECK(!is_null()) crash due to a use-after-move on the already-executed finished_analysis_callback_ (at archive_analyzer.cc:170).

Potential Attack Scenario

Note: Our setup does not have the ability to run code, so these are potential steps an attacker might follow:

  1. An attacker creates a DMG file containing a nested ZIP archive.
  2. Inside the nested ZIP archive, the attacker places a malicious payload (e.g., a malware executable).
  3. The attacker hosts the DMG file and tricks a macOS victim into downloading it via Chrome.
  4. Safe Browsing intercepts the download and sends it to the utility process for analysis.
  5. Due to Bug 1, DMGAnalyzer fails to write the nested ZIP to a temporary file and silently skips it.
  6. The analyzer reports the DMG as safe to the browser process, allowing the user to access the malicious payload.

Suggested Fix

  1. In DMGAnalyzer::OnGetTempFile, assign the passed temp_file to the member variable:
C++
void DMGAnalyzer::OnGetTempFile(base::File temp_file) {
  if (!temp_file.IsValid()) {
    InitComplete(ArchiveAnalysisResult::kFailedToOpenTempFile);
    return;
  }
  temp_file_ = std::move(temp_file);
  // ...
}
  1. In DMGAnalyzer::ResumeExtraction, fix the inverted logic to match other analyzers:
C++
        if (!UpdateResultsForEntry(
            temp_file_.Duplicate(), GetRootPath().Append(path),
            /*file_length=*/0,
            /*is_encrypted=*/false, /*is_directory=*/false,
            /*contents_valid=*/true)) {
          return false;
        }

Evaluated with Chrome root at commit: 0eb4855bda702feaaa8b899336664f97e3df88b8


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. Please feel free to reach out to me if you have concerns or feedback.

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 two logic errors: a missing assignment of a temporary file handle and an inverted return value that prematurely signals analysis completion.

Impact

An attacker could bypass Safe Browsing analysis of nested archives in DMG files, potentially allowing malware to be downloaded without detection.

What the attacker needed

MacOS victim; victim downloads a DMG file; DMG contains a nested archive

The fix

The report suggests assigning the temporary file handle and correcting the inverted return logic, but does not state that a fix was applied.

How it was found

  1. An attacker creates a DMG file containing a nested ZIP archive.
  2. Inside the nested ZIP archive, the attacker places a malicious payload (e.g., a malware executable).
  3. The attacker hosts the DMG file and tricks a macOS victim into downloading it via Chrome.
  4. Safe Browsing intercepts the download and sends it to the utility process for analysis.
  5. Due to Bug 1, `DMGAnalyzer` fails to write the nested ZIP to a temporary file and silently skips it.
  6. The analyzer reports the DMG as safe to the browser process, allowing the user to access the malicious payload.

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 downloads for malware. When you download a DMG file (a disk image used on macOS), Chrome opens it and looks inside for other compressed files (like ZIPs) that might hide malware. This report found two coding mistakes that make Chrome skip looking inside those nested files, so malware hidden there goes unnoticed.

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.