mailcow / mailcow-dockerized

mailcow: dockerized - 🐮 + 🐋 = 💕
https://mailcow.email
GNU General Public License v3.0
8.95k stars 1.17k forks source link

Changing 2FA from Fido/U2F to TOTP #4308

Closed bastischubert closed 2 years ago

bastischubert commented 3 years ago

Prior to placing the issue, please check following: (fill out each checkbox with an X once done)

Summary

With enabled FIDO/U2F two factor authentication its quite difficult to switch to TOTP, while the other way around works "as expected".

Logs

Reproduction

After enabling the TOTP, the FIDO/U2F is stil shown active and has to be "deleted" via the remove function. After that the TOTP Method is active. The other way from TOTP to FIDO there's no second 2FA in the background, becaus trying to delete a TOTP results in "last key cannot be deleted... disable 2fa .."

System information

Question Answer
My operating system Ubuntu 20
Is Apparmor, SELinux or similar active? No
Virtualization technlogy (KVM, VMware, Xen, etc - LXC and OpenVZ are not supported KVM
Server/VM specifications (Memory, CPU Cores) 16GB / 6 Cores
Docker Version (docker version) 20.10.10
Docker-Compose Version (docker-compose version) 1.29.2
Reverse proxy (custom solution) Hell no.. nothing :-))))

No Firewall in place

➜  mailcow-dockerized git:(master) ✗ docker exec -it $(docker ps -qf name=acme-mailcow) dig +short stackoverflow.com @172.22.1.254
151.101.193.69
151.101.65.69
151.101.1.69
151.101.129.69
El-Virus commented 2 years ago

Hey @bastischubert, could you update mailcow and check that the issue persists on your installation? I don't seem to be able to recreate it on mine.

bastischubert commented 2 years ago

I'll check next week after returning from vacation

El-Virus commented 2 years ago

Great, have a nice holiday!

bastischubert commented 2 years ago

Hi El-Virus the problem still exists, i've done a screencast showing that after changing the method to TOTP, still FIDO/U2F is shown -> Video available here https://cloud.2-die-4.tk/index.php/s/xJYwQ4AmejcjbRr

El-Virus commented 2 years ago

Huh, could you try, after changing it (create a domain administrator for this test so you don't get locked out), to subsequentially log off and log back in again? TOTP is supposed to activate on the next logon. Is it possible, that it could be a visual bug?

bastischubert commented 2 years ago

Hi,

it's not just a visual bug, the TOTP does not get activated and the U2F is still the active MFA method. (sorry for the delay in answering)

milkmaker commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.