material-components / material-components/material-components-android

[TextInputLayout] - Password field sensitive information exposed to UI testing tool

Aperta
#4,600 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

bug Widget: TextField
Lingua principale
Java
Stelle
17.4k
Fork
3.2k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Description:

When the TextInputLayout is using endIconMode="password_toggle" such that it is operating as a password entry field - If you connect any ui testing tool like Appium it can read the password that is supposed to be hidden behind the DOTS.

I did some investigation and reach to conclusions that whenever I am using combination of TextInputLayout and TextInputEditText this issue occurs.

When I use only TextInputEditText and set PasswordTransformationMethod to transformationMethod property. Password value is hidden even when checking with Appium tool.

Expected behavior:

Appium or any other tool should not be able to read the text while the password is hidden.
TextInputLayout should not change TextInputEditText behaviour when used in combination for password field.

Steps to repro:

Go to a screen with a TextInputlayout in password mode:
Type password and ensure the password is hidden.
Connect device/emulator with Appium Inspector tool.
Select Password field and check attributes you would be able to see plain text password even though it is hidden on the screen.

Material Library version:
Material Android Library version 1.6.0

Device:
Can be reproduced in all devices.

Similar Issue
https://github.com/material-components/material-components-android/issues/2300

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia riproducendo il problema con TextInputLayout usando endIconMode="password_toggle" e ispeziona il campo tramite Appium. Confrontalo con TextInputEditText usando PasswordTransformationMethod; l'attività è completata quando la password nascosta non viene esposta ad Appium o ad altri strumenti di test della UI.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
android, java
Ambito
mobile-dev, security
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.