Skip to content
Crypto Advisory Advanced CVE-2026-106206

Improper input validation in Mobile (CVE-2026-106206)

The iOS Credential Provider Extension and web_view passwords utility fetch password specifications from the remote autofill service without sanitising them, unlike the main browser. A network attacker who can intercept TLS traffic could supply a crafted specification that downgrades generated strong passwords to low-entropy values.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 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 iOS Credential Provider Extension (CPE) and the CWV passwords utility fetch password specifications from the remote autofill service but bypass sanitization. A network attacker capable of intercepting TLS traffic can potentials supply a crafted specification to downgrade generated strong passwords to low-entropy values. This occurs because the parsed proto specifications are passed directly to the generator without validation against minimum security criteria.

Affected files:

  • ios/components/credential_provider_extension/password_spec_fetcher.mm
  • ios/chrome/credential_provider_extension/ui/new_password_mediator.mm
  • ios/web_view/internal/passwords/cwv_credential_provider_extension_utils.mm

Estimated timestamp from git blame: 2021-09-01

Root Cause Analysis

In Chromium, server-supplied password specifications (PasswordRequirementsSpec) are sanitized to prevent malicious or misconfigured network data from weakening generated passwords. This sanitization is implemented via GetSanitizedSpec() in components/password_manager/core/browser/password_requirements_service.cc, which rejects specifications overriding character_set or setting max_length below kMinimumPasswordLength (9):

C++
PasswordRequirementsSpec GetSanitizedSpec(
    const autofill::PasswordRequirementsSpec& spec) {
  if (spec.has_lower_case() && spec.lower_case().has_character_set()) {
    return PasswordRequirementsSpec();
  }
  // ... checks for upper_case, alphabetic, numeric ...
  if (spec.has_max_length() &&
      spec.max_length() < autofill::password_generation::kMinimumPasswordLength) {
    return PasswordRequirementsSpec();
  }
  return spec;
}

However, GetSanitizedSpec is located in an anonymous namespace inside password_requirements_service.cc and is only invoked along the PasswordRequirementsService paths inside the main browser.

The iOS Credential Provider Extension (CPE) and the //ios/web_view internal passwords framework do not use PasswordRequirementsService. Instead, they depend on PasswordSpecFetcher (ios/components/credential_provider_extension/password_spec_fetcher.mm), which performs its own parsing of fetched DomainSuggestions protobuf payloads but completely lacks any sanitization or validation logic:

OBJC
// ios/components/credential_provider_extension/password_spec_fetcher.mm
- (void)onReceivedData:(NSData*)data ... {
  ...
  if (base::Base64Decode(encoded_bytes, &decoded)) {
    DomainSuggestions suggestions;
    suggestions.ParseFromString(decoded);
    if (suggestions.has_password_requirements()) {
      self.spec = suggestions.password_requirements(); // <-- Raw unsanitized spec assignment
    }
  }
  [self executeCompletion];
}

This raw, unsanitized spec is then extracted and passed directly to autofill::GeneratePassword(spec) within the extension's mediator and the web view utilities:

  • ios/chrome/credential_provider_extension/ui/new_password_mediator.mm (line 69)
  • ios/web_view/internal/passwords/cwv_credential_provider_extension_utils.mm (line 34)

Potential Attack Scenario

(Note: These are potential steps as our tooling is limited to static analysis and we do not have a live running environment to verify)

  1. Setup: An iOS user configures Chrome as their system AutoFill provider. A network adversary with a trusted certificate (e.g., in an enterprise-managed MDM environment or a compromised CA authority) intercepts the iOS device's traffic destined for the Autofill service.

  2. Interception: When the user triggers password generation, the proxy intercepts the API query targeting https://content-autofill.googleapis.com/v1/domainSuggestions/<target-host>?alt=proto and replies with a crafted, base64-encoded DomainSuggestions payload containing:

    TEXTPROTO
    password_requirements {
      max_length: 4
      lower_case { character_set: "a" }
      upper_case { character_set: "A" }
      numeric    { character_set: "1" }
    }
    
  3. Extraction: PasswordSpecFetcher parses this spec and stores it in self.spec without sanitizing it.

  4. Generation & Entropy Collapse: GeneratePassword(spec) merges the malicious specification into the default template via actual_spec.MergeFrom(spec). Since the scalar and string fields in proto2 are overwritten by the incoming message, the required password length becomes 4, and the possible character classes are restricted to "a", "A", and "1". Because the final generated password has a length of 4, it successfully bypasses the fallback check in password_generator.cc (which only resets the spec if password.size() < 4), returning a predictable low-entropy password to the user.

Suggested Fix

Move the GetSanitizedSpec() sanitization utility out of the anonymous namespace in password_requirements_service.cc into a shared core location, such as components/password_manager/core/browser/generation/password_generator.h or a shared helper inside components/autofill/core/common/. Ensure that PasswordSpecFetcher sanitizes any fetched specification prior to returning it to callers or processing it in GeneratePassword.

Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8


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

What the attacker needed

IOS user with Chrome as AutoFill provider; attacker can intercept TLS traffic; trusted certificate (e.g. MDM or compromised CA)

The fix

The GetSanitizedSpec utility should be moved to a shared core location and PasswordSpecFetcher should sanitise any fetched specification before returning it to callers or passing it to GeneratePassword.

How it was found

  1. An iOS user configures Chrome as their system AutoFill provider.
  2. A network adversary with a trusted certificate intercepts the iOS device's traffic to the Autofill service.
  3. When the user triggers password generation, the proxy intercepts the domainSuggestions API query and replies with a crafted base64-encoded DomainSuggestions payload containing a restrictive password_requirements spec.
  4. PasswordSpecFetcher parses the spec and stores it without sanitising it.
  5. GeneratePassword merges the malicious spec into the default template, setting the password length to 4 and restricting character classes, producing a low-entropy password.

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.

When Chrome generates a strong password for you, it can ask a Google service for rules about what characters and length to use. The iOS parts of Chrome trust those rules without checking them, so someone who can intercept the network traffic could send rules that make the password very short and predictable. That would make the generated password much easier to guess.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.