Side-channel information leakage in Safe Browsing (CVE-2026-13809)
A lack of length validation on iOS paste IPC messages allows a compromised renderer to submit arbitrary candidate passwords for reuse detection. By observing a CPU contention side-channel caused by synchronous background scrypt hashing, an attacker can create a timing oracle to verify the existence of saved passwords.
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. 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 go/chrome-ai-generated-security-bugs-faq for more information.
Overview: A lack of length validation on iOS paste IPC messages allows a compromised renderer to submit arbitrary candidate passwords for reuse detection. By observing a CPU contention side-channel caused by synchronous background scrypt hashing, an attacker can create a timing oracle to verify the existence of saved passwords. This allows dictionary attacks against the user's cross-origin credentials directly from a compromised WebContent process.
Affected files:
ios/chrome/browser/safe_browsing/model/password_protection_java_script_feature.mmcomponents/safe_browsing/core/browser/password_protection/password_reuse_detection_manager.ccios/chrome/browser/passwords/model/ios_chrome_password_reuse_detection_manager_client.mm
Estimated timestamp from git blame: 2021-02-27
Vulnerability Detail
On iOS, the PasswordProtectionJavaScriptFeature class processes messages from the WebContent (renderer) process to detect potential password reuse. When a user pastes text, an injected script sends a PasswordProtectionTextEntered message with an eventType of TextPasted and the pasted text.
In ios/chrome/browser/safe_browsing/model/password_protection_java_script_feature.mm, the ScriptMessageReceived method accepts the renderer-supplied text for paste events without any validation or length limits:
if (*event_type == kKeyPressedEventType) {
// A keypress event should consist of a single character. A longer string
// means the message isn't well-formed, so might be coming from a
// compromised WebProcess.
if ((*text).size() > 1) {
return;
}
observer->OnKeyPressed(*text);
} else if (*event_type == kPasteEventType) {
observer->OnPaste(*text); // No length validation
}
Unlike keystroke events, which explicitly check for a compromised WebProcess by enforcing a 1-character limit, paste events blindly trust the renderer-provided string. This behavior diverges from desktop and Android Chrome, which securely read paste text directly from the browser-process OS clipboard.
The Timing Oracle Mechanism
The unvalidated text is passed to PasswordReuseDetectionManager::OnPaste, which contains a short-circuit optimization:
void PasswordReuseDetectionManager::OnPaste(std::u16string text) {
// Do not check reuse if it was already found on this page.
if (reuse_on_this_page_was_found_) {
return;
}
// ...
CheckStoresForReuse(text);
}
If the candidate password matches a saved or account password, a background task sets reuse_on_this_page_was_found_ to true. Subsequent calls to OnPaste for the same page return instantly on the UI thread.
If the candidate does not match, reuse_on_this_page_was_found_ remains false. CheckStoresForReuse posts an asynchronous task to a background SequencedTaskRunner. This background task performs computationally expensive scrypt hashing operations (cost=32) against the user's saved password lengths and GAIA/Enterprise hashes to check for matches.
Potential Attack Sequence
An attacker with execution in the WebContent process (e.g., via a WebKit RCE) could potentially exploit this as a 1-bit confirmation oracle via a CPU-contention side-channel:
- The compromised renderer sends a candidate password (e.g., a dictionary word) via a crafted
TextPastedIPC message. - The attacker waits briefly (e.g., 50ms) for the browser to process the initial probe and execute the background hash checks.
- The attacker floods the browser with a massive batch (e.g., 100,000) of additional identical
TextPastedmessages. - Oracle Divergence:
- Match: If the initial probe matched a saved password,
reuse_on_this_page_was_found_istrue. The UI thread instantly drops all 100,000 flood messages at the short-circuit check. The browser experiences minimal load. - No Match: If the initial probe failed, the UI thread processes all 100,000 messages and queues 100,000 tasks on the background thread pool. These tasks perform millions of repeated
scryptoperations.
- Match: If the initial probe matched a saved password,
- The attacker's JavaScript measures CPU contention using a high-resolution loop and
performance.now(). Significant lag indicates a "No Match" (due to thescryptstorm), while smooth execution indicates a "Match". - The attacker navigates the main frame to a different host (e.g.,
window.location.href = 'https://attacker.com/page2'), which triggersDidNavigateMainFrameand resetsreuse_on_this_page_was_found_tofalse, allowing the next dictionary probe.
Note: These are suggested steps; our tooling agent does not have the ability to run code to confirm a working exploit.
Suggested Mitigation
- Authoritative Sourcing: On iOS, align with Desktop/Android by reading paste event text directly from the browser-process clipboard (
UIPasteboard) rather than relying on IPC messages from the potentially compromised WebContent process. - Input Validation: Enforce strict length limits (e.g.,
kMaxNumberOfCharactersToStore= 45) on renderer-supplied text for all event types inPasswordProtectionJavaScriptFeature::ScriptMessageReceivedto prevent memory exhaustion and limit hashing scope. - Rate Limiting: Implement rate limiting or deduplication for password reuse checks queued to the background task runner.
Evaluated with Chrome root at commit: 7353d249d9cacf9c7218e1d7b8a39cf39c72d646
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
The iOS paste event handler accepts renderer-supplied text without any length validation, unlike keystroke events which enforce a one-character limit.
Impact
An attacker with execution in the WebContent process could potentially exploit this as a 1-bit confirmation oracle via a CPU-contention side-channel, enabling dictionary attacks against saved passwords.
What the attacker needed
Compromised renderer (e.g., WebKit RCE); saved passwords in browser
The fix
The report suggests reading paste text directly from the browser-process clipboard, enforcing strict length limits on renderer-supplied text, and implementing rate limiting or deduplication for password reuse checks.
How it was found
- The compromised renderer sends a candidate password via a crafted TextPasted IPC message.
- The attacker waits briefly for the browser to process the initial probe and execute background hash checks.
- The attacker floods the browser with a massive batch of additional identical TextPasted messages.
- The attacker's JavaScript measures CPU contention using a high-resolution loop and performance.now().
- The attacker navigates the main frame to a different host to reset the reuse flag for the next probe.
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.
On iOS, when you paste text, the part of the browser that shows web pages (the renderer) sends a message to the main browser process saying what was pasted. The main process trusts this message without checking its length. If an attacker can run code in the renderer, they can send many fake paste messages. The browser then does expensive password checks in the background, and the attacker can measure how busy the browser is to guess whether a password is saved.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.