Re:Ask HN: Blatant Security Flaw, Should I do something?
by lutusp on Sunday August 26, 2012 @01:03PM
(#4435510)
All other issues aside, because of how insecure the e-mail protocol is, with one exception described below, including passwords in e-mails is very bad practice.
I've seen this practice too, but it arises only because inexperienced system administrators don't understand how vulnerable the e-mail system is.
The single exception is an e-mail that says, "Here is the temporary password for your new account -- click the link and change your password at once." This kind of message is only meant to verify that an e-mail address is working and is associated with the applicant, nothing else. And the temporary password expires as soon as the applicant logs on and changes to a password of his own choosing. This limits the security risk inherent in putting a password in an e-mail.
All reasonably secure systems retain passwords only as hashes (secure encryptions of the original passwords), not as plain-text. This is not to say that the hash itself might represent a security vulnerability, because it can be attacked -- only that a plain-text password obviates the need for the attack by giving away the prize.
I've seen this practice too, but it arises only because inexperienced system administrators don't understand how vulnerable the e-mail system is.
The single exception is an e-mail that says, "Here is the temporary password for your new account -- click the link and change your password at once." This kind of message is only meant to verify that an e-mail address is working and is associated with the applicant, nothing else. And the temporary password expires as soon as the applicant logs on and changes to a password of his own choosing. This limits the security risk inherent in putting a password in an e-mail.
All reasonably secure systems retain passwords only as hashes (secure encryptions of the original passwords), not as plain-text. This is not to say that the hash itself might represent a security vulnerability, because it can be attacked -- only that a plain-text password obviates the need for the attack by giving away the prize.