Insufficient policy enforcement in Safe Browsing (CVE-2026-11210)
A logic error in Chrome's UnRAR wrapper causes extraction to stop early when the first archive entry is named '*', so subsequent files are never scanned. An attacker could bypass Safe Browsing download protection and deliver a malicious executable without detection.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 39 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 Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A logic error in Chrome's UnRAR wrapper allows a specially crafted RAR archive to prematurely terminate extraction. By naming the first entry in an archive exactly '*', an attacker can trigger an early exit optimization in UnRAR, silently bypassing Safe Browsing download protection for all subsequent files.
Affected files:
third_party/unrar/src/extract.cppthird_party/unrar/src/cmddata.cppthird_party/unrar/src/cmdfilter.cppthird_party/unrar/google/unrar_wrapper.cc
Estimated timestamp from git blame: 2025-12-16
A deterministic logic bug in Chrome's UnRAR integration allows for a complete bypass of Safe Browsing download protection. The issue arises from how Chrome initializes the UnRAR library without providing specific file extraction arguments, inadvertently triggering an exact-match optimization within UnRAR.
Root Cause Analysis
In Chrome's Safe Browsing implementation, the UnRAR wrapper (third_party/unrar/google/unrar_wrapper.cc) initializes the extraction process without providing specific file paths to extract. Consequently, CommandData::ParseDone() in third_party/unrar/src/cmddata.cpp defaults the file arguments to MASKALL (the literal character *).
// third_party/unrar/src/cmddata.cpp
void CommandData::ParseDone()
{
if (FileArgs.ItemsCount()==0 && !FileLists)
FileArgs.AddString(MASKALL); // MASKALL is L"*"
During extraction, CommandData::IsProcessFile() in third_party/unrar/src/cmdfilter.cpp compares the current archive entry's filename against the requested file arguments. If an attacker crafts an archive where the first entry's name is literally *, the library treats this as an "exact match" because it matches the default MASKALL argument via direct string comparison (wcsicompc("*", "*") == 0).
// third_party/unrar/src/cmdfilter.cpp
if (ExactMatch!=NULL)
*ExactMatch=wcsicompc(ArgName,FileHead.FileName)==0;
In third_party/unrar/src/extract.cpp, there is a logic check intended to optimize extraction by stopping once all specifically requested files have been found:
// third_party/unrar/src/extract.cpp
if (!Cmd->Recurse && MatchedArgs>=Cmd->FileArgs.ItemsCount() && AllMatchesExact)
return false;
When processing an archive starting with a file named *:
- The
*entry is processed successfully. BecauseEqualNameswas evaluated as true,AllMatchesExactremainstrue. At the end of processing,MatchedArgsis incremented to1. - On the next loop iteration,
ExtractNextEntry()attempts to process the second file (e.g.,malware.exe). ExtractCurrentFile()evaluates the early-exit condition. BecauseMatchedArgs(1)>=Cmd->FileArgs.ItemsCount()(1), andAllMatchesExactistrue, the condition is met.- Extraction terminates prematurely, returning
falseto the caller.
Impact
RarAnalyzer::ResumeExtraction relies on reader_.ExtractNextEntry() returning false to signal the end of the archive. Because RarReader lacks a mechanism to distinguish between a legitimate end-of-archive and an early abort, the analyzer assumes the file was fully scanned.
It sets the analysis result to ArchiveAnalysisResult::kValid. Any subsequent malicious payloads (e.g., malware.exe) are skipped entirely. Their hashes and metadata are never computed or sent to the Safe Browsing server, resulting in a silent bypass of download protection.
Potential Reproduction Steps
(Note: These are suggested steps based on code analysis; our tooling cannot run live PoCs.)
- Create a RAR archive where the first file entry is a benign file named
*. - Add a malicious executable (e.g.,
evil.exe) as the second entry in the archive. - Host the archive and download it using Chrome with Safe Browsing enabled.
- Observe that the Safe Browsing analysis only identifies the
*file and reports the archive as valid, ignoring theevil.exepayload.
Suggested Fix
The most robust fix for Chrome's specific use case is to explicitly disable the exact-match optimization early exit, as Chrome's analyzer always wants to scan the entire archive regardless of matches.
This can be done in third_party/unrar/google/unrar_wrapper.cc by forcing the Recurse flag to true during initialization (e.g., command_->ParseArg(const_cast<wchar_t*>(L"r"));), as !Cmd->Recurse is a requirement for the early exit to trigger. Alternatively, extract.cpp could be patched to disable the early exit branch entirely for Chrome builds.
Evaluated with Chrome root at commit: a1e33f5848218e21d4a16ae2c1bc94e815c30c7f
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.
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
Chrome initialises UnRAR without specific file arguments, so UnRAR defaults to a wildcard '*'; an archive entry literally named '*' then matches exactly, triggering an early-exit optimisation that stops extraction after the first file.
Impact
An attacker could bypass Safe Browsing download protection, allowing a malicious executable inside a RAR archive to be downloaded without detection.
What the attacker needed
Chrome with Safe Browsing enabled; User downloads a crafted RAR archive
The fix
The fix should force the Recurse flag to true during UnRAR initialisation in the wrapper, or disable the early-exit branch in extract.cpp for Chrome builds.
How it was found
- Create a RAR archive where the first file entry is a benign file named '*'.
- Add a malicious executable as the second entry in the archive.
- Host the archive and download it using Chrome with Safe Browsing enabled.
- Observe that Safe Browsing analysis only identifies the '*' file and reports the archive as valid, ignoring 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.
Chrome checks downloaded files for malware using Safe Browsing. When you download a RAR archive, Chrome opens it and scans each file inside. This report found that if the first file in the archive is named with a single asterisk character, Chrome stops scanning after that file and never looks at the rest. That means a malicious program hidden later in the archive would not be checked and could be downloaded without warning.
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.