Inappropriate implementation in UI (CVE-2026-17980)
The Android selection popup controller decides whether a selection is in a password field only from the current input type, ignoring the sticky has-been-password flag. When a user reveals a password field as plaintext and selects it, third-party ACTION_PROCESS_TEXT handlers are offered in the menu and receive the plaintext credential.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 57 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: The Android selection popup controller fails to check the sticky HAS_BEEN_PASSWORD flag when evaluating if a text selection is in a password field. If a user toggles a password field's visibility to plaintext and selects it, the plaintext credential is exposed to third-party ACTION_PROCESS_TEXT intent handlers. This bypasses Chrome's security gate designed to keep sensitive credential selections isolated.
Affected files:
content/browser/android/selection/selection_popup_controller.cccontent/public/android/java/src/org/chromium/content/browser/selection/SelectionPopupControllerImpl.javacontent/public/android/java/src/org/chromium/content/browser/input/ImeAdapterImpl.javacontent/public/android/java/src/org/chromium/content/browser/selection/SelectActionMenuHelper.java
Estimated timestamp from git blame: 2015-09-25
Potential Vulnerability: Plaintext Password Exposure to Third-Party Android Handlers
Root Cause
The Android selection menu controller derives its password classification state solely from the active/current input element type, ignoring the sticky has-been-password flag (WebTextInputFlags.HAS_BEEN_PASSWORD_FIELD) propagated by Blink. Because of this, when a password field is revealed to plaintext (a common UX design pattern on login pages), both the native and Java layers of Chrome treat the field selection as ordinary text.
There are two main propagation sites where this occurs:
-
Native (selection_popup_controller.cc):
C++ const bool is_password_type = params.form_control_type == blink::mojom::FormControlType::kInputPassword;is_password_typeevaluates tofalsewhen the input type changes totext. -
Java (ImeAdapterImpl.java):
Java boolean password = textInputType == TextInputType.PASSWORD; // mTextInputFlags is ignored here updateNodeAttributes(editable, password);passwordevaluates tofalsewhen the input type becomesTextInputType.TEXT.
Because the popup controller determines isSelectionPassword is false, it allows SelectActionMenuHelper.getTextProcessingItems() to query and show registered third-party ACTION_PROCESS_TEXT handlers in the selection popup menu. When the user taps one of these items, Chrome sends the raw selected plaintext password in the EXTRA_PROCESS_TEXT intent extra to the target third-party application.
Note: These are suggested/potential steps and analysis; our current tooling agent does not have the ability to run code or compile a working proof-of-concept.
Potential Trigger Steps
- An Android device has a third-party application installed that declares an
<intent-filter>forandroid.intent.action.PROCESS_TEXTwith mimeTypetext/plain. - The user navigates to a login page containing a password field with a show/hide toggle in Chrome for Android.
- The user types their credential, then taps the visibility toggle to show the plaintext password.
- The user long-presses to select the revealed password text.
- The custom selection menu appears, exposing third-party application options (which would otherwise be suppressed if the field were recognized as having been a password field).
- The user taps the third-party application's action. The external application receives the plaintext password via the
ACTION_PROCESS_TEXTintent.
Suggested Fix
Update both the native and Java state-propagation logic to consult the sticky has-been-password bit:
-
In
ImeAdapterImpl.java:Java boolean password = textInputType == TextInputType.PASSWORD || (mTextInputFlags & WebTextInputFlags.HAS_BEEN_PASSWORD_FIELD) != 0; -
In
selection_popup_controller.cc, retrieve and consult the state of the active input's has-been-password flag (which is already tracked in Blink) to correctly markis_password_typeas true if the field has ever been a password field.
Evaluated with Chrome root at commit: 9ebf4302210513a012c901d87a2668b3aadf8cc1
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.
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 password classification is derived only from the current input element type, so it becomes false once a password field is toggled to plaintext, and the sticky has-been-password flag is never consulted.
Impact
A malicious app on the device could receive the user's plaintext password, but only if the user reveals the field, selects the text and deliberately taps that app's menu action.
What the attacker needed
A malicious app installed on the device; user reveals the password with the toggle; user selects the text and taps the app action
The fix
Both the native and Java logic should also check the sticky has-been-password flag when deciding whether a selection is a password selection.
How it was found
- Install a third-party app that registers a text-processing intent handler for plain text.
- Open a login page in Chrome for Android that has a password field with a show/hide toggle.
- Type the credential and use the toggle to reveal it as plaintext.
- Long-press to select the revealed password text.
- The selection menu shows the third-party app's action, which would normally be suppressed.
- Tap that action and the external app receives the plaintext 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.
On Android, when you select text, Chrome can show extra menu options from other installed apps, and tapping one sends the selected text to that app. Chrome normally hides these options for password fields so secrets are not shared. Here, if you use the show-password toggle and then select the visible password, Chrome forgets the field was ever a password and offers those apps the text.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.