Skip to content
Business logic Advisory Intermediate CVE-2026-13904

Incorrect security UI in Safe Browsing (CVE-2026-13904)

A logic error in iOS Chrome's password reuse detection drops non-ASCII keystrokes, so PhishGuard never warns users who type a saved password containing such characters into a phishing site. An attacker could therefore phish a password with accented or other non-ASCII characters without triggering the warning.

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 logic error in iOS Chrome's password reuse detection causes non-ASCII keystrokes to be silently dropped. This prevents PhishGuard from warning users if they type a saved password containing non-ASCII characters into a phishing site. The issue is caused by comparing the byte-size of a UTF-8 string against a length check designed for single characters.

Affected files:

  • ios/chrome/browser/safe_browsing/model/password_protection_java_script_feature.mm
  • ios/chrome/browser/safe_browsing/model/resources/password_protection.ts

Estimated timestamp from git blame: 2021-02-27

Summary

A logic error in the iOS implementation of PhishGuard (Safe Browsing's password reuse detection) causes all non-ASCII characters to be silently dropped before they reach the detection manager. As a result, PhishGuard warnings are never triggered if a user types a password containing one or more non-ASCII characters (such as 'é', 'ñ', or 'ß') into a phishing site.

Technical Details

On iOS, password reuse detection utilizes a JavaScript feature to forward keystrokes from the web page to the browser process. In ios/chrome/browser/safe_browsing/model/resources/password_protection.ts, the onKeypressEvent function forwards keystrokes where event.key.length === 1:

TypeScript
function onKeypressEvent(event : KeyboardEvent) : void {
  if (event.isTrusted && event.key.length === 1) {
    sendWebKitMessage(
        'PasswordProtectionTextEntered',
        {eventType: 'KeyPressed', text: event.key});
  }
}

In JavaScript, String.length counts UTF-16 code units. Most non-ASCII characters in the Basic Multilingual Plane (BMP), like 'é', have a length of 1, so the script forwards them correctly.

When this message is received in the browser process by PasswordProtectionJavaScriptFeature::ScriptMessageReceived (in ios/chrome/browser/safe_browsing/model/password_protection_java_script_feature.mm), the text is retrieved as a UTF-8 encoded std::string. The code then performs the following validation:

C++
  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);
  }

While event.key.length === 1 in JavaScript for a character like 'é', its UTF-8 representation in C++ is 2 bytes long (0xC3 0xA9). Because of the (*text).size() > 1 check, the character is rejected and dropped.

Consequently, the PasswordReuseDetectionManager's running buffer of typed characters never receives the complete password. When the user finishes typing, the internal hash comparison fails because the recorded string (e.g., "caf1234") does not match the saved password ("café1234"). This bypasses the PhishGuard warning entirely. This issue is specific to iOS; Desktop and Android use a different input event observation mechanism.

Potential Reproduction Steps

Note: These are suggested steps based on source code analysis.

  1. On iOS Chrome, save a password containing at least one non-ASCII BMP character (e.g., 'café1234') for a test site.
  2. Ensure Safe Browsing / Password Protection is enabled in Chrome settings.
  3. Navigate to an unrelated, non-allowlisted site (or a known phishing test site).
  4. Type the saved password into any text or password field using a keyboard layout that emits keypress events for the accented character.
  5. Observe that the non-ASCII character (e.g., 'é') is dropped in the browser process due to the size check, and no PhishGuard warning is displayed.
  6. Compare this with an all-ASCII password of the same length, which triggers the warning as expected.

Suggested Fix

The size check in PasswordProtectionJavaScriptFeature::ScriptMessageReceived needs to be updated to handle UTF-8 string lengths properly. Instead of checking the byte size ((*text).size() > 1), the code should convert the string to std::u16string or std::u32string and check its length, or verify that the UTF-8 string represents a single valid Unicode character. For example, using base::UTF8ToUTF16(*text).size() > 1 would correctly reject long strings while allowing single non-ASCII characters.

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.

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

The browser-side check compares the byte length of a UTF-8 string against 1, so any non-ASCII character (which takes more than one byte) is rejected as if it were a malformed multi-character message.

Impact

On iOS only, a user typing a saved password that contains non-ASCII characters into a phishing site would not see the PhishGuard warning, so the protection could be bypassed for such passwords.

What the attacker needed

IOS Chrome; Safe Browsing / Password Protection enabled; Saved password with a non-ASCII character; Victim types it into a phishing site

The fix

The check should measure the string in Unicode characters rather than UTF-8 bytes, for example by converting to UTF-16 and checking that length, so single non-ASCII characters are accepted while longer strings are still rejected.

How it was found

  1. Save a password containing at least one non-ASCII character for a test site in iOS Chrome.
  2. Make sure Safe Browsing and Password Protection are enabled.
  3. Go to an unrelated site that is not allowlisted, or a known phishing test site.
  4. Type the saved password into a text or password field using a keyboard layout that emits keypress events for the accented character.
  5. Notice that the non-ASCII character is dropped and no PhishGuard warning appears.
  6. Compare with an all-ASCII password of the same length, which does trigger the warning.

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.

PhishGuard is a Chrome feature that warns you if you type a saved password into a website that might be a phishing page. On iOS, the code that watches what you type accidentally ignores any character that is not plain English, such as 'é' or 'ñ'. So if your saved password contains one of those characters, the warning never appears and you could be tricked into giving your password away.

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.