northox / roundcube-yubikey-plugin

A plugin to use Yubico's Yubikey 2nd factor with Roundcube webmail
GNU General Public License v2.0
31 stars 6 forks source link

No way to separate static login password from IMAP user password #16

Closed danielkr123 closed 7 years ago

danielkr123 commented 7 years ago

Dear all,

I installed the plugin and it is working great. However, there is no way to separate the static login password from the IMAP user password. Hence if somebody would get to know my static password he could simply bypass the 2FA by connecting directly to the IMAP server.

The only effective way I could think of is separating the IMAP and the Roundcube login password:

Do I get something wrong?

Best regards, Daniel

northox commented 7 years ago

Hello Daniel, sorry for the delay - bad timing for me.

If you expose IMAP (e.g. dovecot), I suggest applying the 2nd factor directly on your authentication mechanism (e.g. sasl, pam) in which case you wouldn't need this plugin.

Roundcube needs the IMAP password as it's simply acting as an IMAP client. So for your proposal to work we would need to store your roundcube specific hashed-password in a database and associated IMAP password - maybe encrypted with your roundcube password to avoid being stored in clear text. I guess that's all possible but unfortunately I stopped developing this plugin. I'm open to pull requests.

regards,