Bugzilla – Bug 705
passwords show in the clear after bringing password prompt to foreground
Last modified: 2017-04-12 08:40:09 MDT
This is with sudo 1.7.10p9: 1. launch terminal 2. enter the command “sudo ls &” 3. bring the command to the foreground by entering “fg” 4. type at the Password prompt * RESULTS Text entry is shown
Created attachment 453 [details] Proposed patch
This kind of infinite loop is not safe. There is a better solution in sudo 1.8.x that could be back-ported. This is actually a bug in the Mac OS X kernel where it does not restart the tty-related syscalls as it should. I filed a bug about this years ago but apparently they didn't care.
Created attachment 455 [details] Backport of term.c changes in sudo 1.8.x Attached is a patch that includes merge of term.c related commits from sudo 1.8.x that works around the bug in Mac OS X. You can see the individual commits in the hg repo.
Fixed in sudo 1.8.x