Closed Bug 1349349 Opened 8 years ago Closed 8 years ago

Problem with Password.readPasswordFromConsole().

Categories

(JSS Graveyard :: Library, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: edewata, Assigned: edewata)

Details

(Whiteboard: [sec-insecure-third-party-site-reviewed])

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0 Build ID: 20161213225041 Steps to reproduce: JSS uses Password.readPasswordFromConsole() to read password securely from the console by disabling terminal echo and displaying masking characters (*) instead. The method is currently implemented in native code. Actual results: If the application is terminated (with Ctrl-C) while waiting on password, the terminal echo will remain disabled, causing usability issue. Expected results: The native code should be replaced with System.console().readPassword() which provides the same functionality (but without displaying masking characters) and will not affect terminal echo if interrupted.
The native implementation of Password.readPasswordFromConsole() has been replaced with platform independent code using System.console() which does not cause a problem if the program is interrupted while waiting for password input.
Attachment #8849735 - Flags: review?(emaldona)
Whiteboard: [sec-insecure-third-party-site-reviewed]
Assignee: glenbeasley → edewata
Target Milestone: --- → 4.4.1
Comment on attachment 8849735 [details] [diff] [review] 0001-Replaced-Password.readPasswordFromConsole-implementa.patch Review of attachment 8849735 [details] [diff] [review]: ----------------------------------------------------------------- With Endi's help and guidance I was able to test this downstream in fedora using other client packages, e.g. pki-ca.
Attachment #8849735 - Flags: review?(emaldona) → review+
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: