-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cognito Managed Login - password plaintext is visible in iOS Safari, even if 'Show Password' box is unchecked #14171
Comments
Hi @dylanmrowe thanks for reporting this issue, I can reproduce this with the Safari browser on iPhone. Unfortunately Amplify JS library doesn't own the Managed Login UI, I will bring this to Amazon Cognito team to follow up. |
Hi @dylanmrowe I did some more testing, I believe this unexpected behavior is caused by the iOS Passwords app "Create Strong Password" feature. As you can see in your screenshot, the password fields have the yellow background indicating auto-filling has happened when this feature kicks in it makes the text visible. I can reproduce this on any password typed inputs. If you accept the suggested strong password by the system, then delete the populated text, the yellow background will be gone, and if you start typing again, the password text is invisible as expected. |
@HuiSF I think clicking 'Not Now' should be enough to turn off the "Create Strong Password" feature on iOS. Interesting that you have to accept it, then delete it, in order to get the full password to stop displaying. Definitely sounds like an iOS bug. Hopefully Apple is already on top of this, but if not, some extra prodding from the Cognito team could help. |
@dylanmrowe We have engaged the Cognito team regarding this but, at this time, it seems the issue is widely reproducible outside of Cognito (relevant question from Apple community: https://discussions.apple.com/thread/255787112?answerId=260810125022&sortBy=rank#260810125022) Given that this issue is not specific to Amplify, I am inclined to close this ticket but please feel free to reopen if there is something actionable you think we may be missing here. Thanks! |
Before opening, please confirm:
Describe the bug
Reporting here because I can't find a dedicated place for Cognito Hosted UI (or managed login) bug reporting.
On iOS mobile devices, in Safari, during Signup, the entire password and password confirmation plaintext are visible to anyone looking at the screen while filling out the sign-up form (even if 'Show password' is unchecked). Closing the keyboard properly redacts the password, but the passwords are visible even while typing in other form fields.
This behavior doesn't happen in mobile Chrome, nor Safari on a Macbook Pro (Sonoma 14.7)
The cause is most likely iOS's automatic-password-generation manipulation of the fields (note the yellow-highlighted password fields in the screenshot, which doesn't happen in Chrome)
See this discussion: https://discussions.apple.com/thread/255817271?sortBy=rank
I'm not sure if there's a way for AWS Managed Login to get around that, but it's a significant concern for all iOS users using Safari.
Expected behavior
The password should always be replaced by dots, unless the 'Show Password' box is checked.
Reproduction steps
Mobile Device
iPhone 13 mini
Mobile Operating System
iOS 18.1.1
Mobile Browser
Safari
Mobile Browser Version
18.1.1
Additional information and screenshots
The text was updated successfully, but these errors were encountered: