Menu

#4788 Two Factor Authentication using Authy bug: Login is allowed despite incorrect token or blank token field.

1.801
closed-fixed
nobody
2
2016-07-22
2016-07-08
tire88744
No

Enabled two factor authentication within webmin using Authy.
When logging in a two factor token field is present.

But it doesn't actually check for a valid token. You can input a token provided by Authy to authenticate as expected. But you can also leave the token field blank or provide a bogus token value and webmin will still allow you to successfully log in.

Is this a known issue, is there a solution?

1 Attachments

Discussion

  • tire88744

    tire88744 - 2016-07-08

    I see that others have experienced this as well a few years back and were told it was going to be fixed.
    https://sourceforge.net/p/webadmin/bugs/4406/

     
  • Jamie Cameron

    Jamie Cameron - 2016-07-11

    Are you sure that the user you are logging in as is enrolled for two-factor in Webmin?

     
  • tire88744

    tire88744 - 2016-07-20

    Logging in as root and continuing with the 2fa authentication moved me forward. I notice after it was set up that if logged out of root and back in under my admin account 2fa w/ Authy was working, but if I disabled it under Admin (which it allows me to do) what happens is that the 'Security token field' is removed from the log in page but the requirement for a token still remains.

    The username and password fields are still present but when logging in an error is thrown that asks for a security token, which can't be provided since the field no longer is there, bricking the webmin login. Is there a way to prevent an admin account from shooting themselves in the foot like this?

     
  • Jamie Cameron

    Jamie Cameron - 2016-07-22
    • status: open --> closed-fixed
     
  • Jamie Cameron

    Jamie Cameron - 2016-07-22

    Good point ... I will add a check to prevent two-factor from being disabled globally if any users are currently enrolled.

     

Log in to post a comment.