Skip to content
Info disclosure Advisory Advanced CVE-2026-87518

Observable discrepancy in Safebrowsing (CVE-2026-87518)

The iOS password-reuse detection code rate-limits paste events but not single-character key-down events, so a compromised renderer process could flood key events to assemble a candidate password in the browser process. The reporter argues this could let an attacker build a CPU-contention timing oracle to test whether a guess matches a saved password.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 months

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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: The KeyDown event branch in PasswordProtectionJavaScriptFeature on iOS lacks rate-limiting, unlike the paste branch. A compromised WebContent process can potentially bypass rate limits by flooding single-character KeyDown script messages to assemble a candidate password in the browser process. This may allow an attacker to construct a CPU-contention timing side-channel oracle to verify user passwords.

Affected files:

  • ios/chrome/browser/safe_browsing/model/password_protection_java_script_feature.mm
  • components/safe_browsing/core/browser/password_protection/password_reuse_detection_manager.cc

Estimated timestamp from git blame: 2026-05-08

Potential Root Cause Analysis

In ios/chrome/browser/safe_browsing/model/password_protection_java_script_feature.mm, iOS safe browsing implements password reuse detection by receiving script messages from the renderer (WebContent) process. To prevent flooding from a compromised renderer, paste events (kPasteEventType) are restricted by a 200 ms rate limit (kPasteRateLimit).

However, the sibling kKeyDownEventType branch has no rate-limiting mechanism:

OBJC
if (*event_type == kKeyDownEventType) {
  // A key event should consist of a single character. ...
  std::u16string text16 = base::UTF8ToUTF16(*text);
  if (text16.length() != 1) {
    return;
  }
  observer->OnKeyPressed(*text);                       // <-- No rate limit applied
} else if (*event_type == kPasteEventType) {
  // Rate limit paste events to prevent flooding...
  base::TimeTicks now = base::TimeTicks::Now();
  auto it = last_paste_timestamps_.find(web_state);
  if (it != last_paste_timestamps_.end()) {
    base::TimeDelta elapsed = now - it->second;
    if (elapsed < kPasteRateLimit) {                   // <-- 200 ms gate
      return;
    }
  }
  last_paste_timestamps_[web_state] = now;
  observer->OnPaste(*text);
}

Because OnKeyPressed accumulates characters in input_characters_ inside the browser process, sending a rapid sequence of single-character KeyDown messages is functionally equivalent to a paste event but completely bypasses the 200 ms paste rate limit.


Potential Attack Path and Side-Channel Oracle

An attacker with execution capabilities in a compromised WebContent process could potentially exploit this behavior to construct a timing side-channel oracle to guess saved credentials. Please note: these steps are based on static analysis as our automated testing tools do not have the capability to execute code in a live environment.

  1. State Reset: The attacker navigates the WebState to a new origin host to clear the password buffer and the reuse latch state (reuse_on_this_page_was_found_ = false) in PasswordReuseDetectionManager::DidNavigateMainFrame (in components/safe_browsing/core/browser/password_protection/password_reuse_detection_manager.cc).
  2. Buffer Assembly: The attacker sends a rapid sequence of single-character KeyDown IPC messages to build a candidate password string $P$ ($|P| \ge 4$ characters) in the browser process's input_characters_ buffer. The final character triggers the asynchronous background task PasswordReuseDetectorImpl::CheckReuse on a USER_VISIBLE thread pool sequence.
  3. Cryptographic Execution: In PasswordReuseDetectorImpl::CheckSavedPasswordReuseBasedOnHash (in components/password_manager/core/browser/password_reuse_detector_impl.cc), the browser runs CalculatePasswordHash (which computes an expensive scrypt KDF check) once for each unique length of saved user passwords.
  4. Latch Trigger:
    • If the guess matched a saved credential: OnReuseCheckDone sets the main-thread latch reuse_on_this_page_was_found_ = true.
    • If the guess did not match: the latch reuse_on_this_page_was_found_ remains false.
  5. Flooding and Measurement: The attacker waits a brief window (~50 ms) and then floods the browser with a large volume of KeyDown script messages (e.g., $10,000$ messages).
    • On a correct guess: PasswordReuseDetectionManager::OnKeyPressed hits the reuse_on_this_page_was_found_ check and immediately returns early for every flooded message on the main thread. Thread pool and CPU activity remain near zero.
    • On an incorrect guess: Each flooded message proceeds past the check, scheduling background scrypt hashing checks on the thread pool, leading to extreme CPU contention and measurable IPC processing latency.

By measuring this latency or CPU contention, the attacker can cleanly determine whether their guessed password matches a saved credential.


Suggested Remediation

Apply a strict rate limit (such as checking against a last_key_timestamps_ map or implementing a shared rate limit for all incoming text-entry events) to the kKeyDownEventType branch in PasswordProtectionJavaScriptFeature::ScriptMessageReceived (located in ios/chrome/browser/safe_browsing/model/password_protection_java_script_feature.mm).

Evaluated with Chrome root at commit: 5133b93d189b383c37805b1cf3a9d2dbfe8d7379


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 key-down branch of the script message handler calls the observer without the 200 ms rate limit that the paste branch applies, so a compromised renderer can send unlimited single-character events.

Impact

A compromised renderer could potentially use timing differences to verify saved passwords; the report is based on static analysis only and was not demonstrated in a live environment.

What the attacker needed

Compromised renderer process; user has saved passwords; iOS Chrome

The fix

A strict rate limit, such as a per-WebState key timestamp map or a shared limit for all text-entry events, should be applied to the key-down branch.

How it was found

  1. Navigate the WebState to a new origin to reset the password buffer and reuse latch.
  2. Send many single-character key-down messages to build a candidate password of at least four characters.
  3. The final character triggers an asynchronous reuse check that runs an expensive scrypt hash for each saved password length.
  4. If the guess matched, a latch is set and later flooded messages return early; if not, they schedule more hashing work.
  5. Flood the browser with a large number of key-down messages and measure the resulting latency or CPU contention to infer whether the guess was correct.

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 splits itself into a browser process and sandboxed renderer processes that handle web pages. If a page is compromised, the renderer can still send messages to the browser, and here one type of message (single key presses) was not slowed down the way pasted text was. The reporter suggests an attacker could use the resulting difference in CPU work to work out whether a guessed password matches one the user has saved.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.