How can I prevent Virtualmin from storing passwords in cleartext?

5 posts / 0 new
Last post
#1 Fri, 03/19/2010 - 09:08
hmbl programmer

How can I prevent Virtualmin from storing passwords in cleartext?

I am really surprised at this behavior. In Virtualmin, I can see the password for any SSH user by clicking the "(Show..)" link next to the "Password ( ) Leave unchanged" option in a variety of locations. I have found that the passwords for all users including users with SSH access are stored in cleartext files in /etc/webmin/... This seems like an unnecessary risk! How can I prevent Virtualmin from storing passwords in this manner?

Fri, 03/19/2010 - 13:14
JamieCameron

At the moment, there is no way to turn this off. Virtualmin keeps the original passwords for mailbox users so that it can re-encrypt them in different formats when needed - for example, if you enable MySQL, DAV or SVN access for a user, their password has to be re-hashed into the appropriate format for MySQL or Apache digest authentication files.

I suppose an option could be added to disable the storage of plain-text passwords, but for most users it would come at the expense of usability.

''

Sun, 07/11/2010 - 15:08 (Reply to #2)
Armada

I am also concerned about the security risk around storing plain-text passwords.

How about asking for the user to enter a new password every time rehashing is needed when plain-text passwords are disabled? It would make it quite a hassle if you edit permissions often, but for me that's more than worth it to prevent the security risk.

Tue, 04/06/2010 - 08:43
hmbl programmer

What if I were to go in to the files in /etc/webmin and manually delete the passwords? What would happen? Obviously Virtualmin would fail to rehash passwords if I enabled new services, but I could change the password if I ever do that later.

Tue, 04/06/2010 - 13:37 (Reply to #4)
JamieCameron

Yes, you could do that. You would get an error if you tried to enable something like a MySQL login for a user though ..

''

Topic locked