Closed
Bug 1349349
Opened 8 years ago
Closed 8 years ago
Problem with Password.readPasswordFromConsole().
Categories
(JSS Graveyard :: Library, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
4.4.1
People
(Reporter: edewata, Assigned: edewata)
Details
(Whiteboard: [sec-insecure-third-party-site-reviewed])
Attachments
(1 file)
9.33 KB,
patch
|
elio.maldonado.batiz
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•8 years ago
|
||
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]
Updated•8 years ago
|
Assignee: glenbeasley → edewata
Updated•8 years ago
|
Target Milestone: --- → 4.4.1
Comment 2•8 years ago
|
||
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+
Comment 3•8 years ago
|
||
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.
Description
•