News for hackers. Stuff that matters.
Re:Requiring MFA on popular gem maintainers by tzs on Tuesday August 16, 2022 @01:57PM (#32486388)
What I'd like to see is for sites to allow setting up two different kinds of 2FA, one of which is TOTP and the other is something hardware-based.

TOTP has some limitations which make it not as secure as the better hardware-based approaches. For example if you get fooled into trying to login to a phishing site and the real site uses TOPT, all the phishing site has to do as ask you for the TOTP code. TOTP in this case only protects you from getting phished if the phishing site is just logging credentials for use later use. If they are going to use your credential right away it is no protection.

If a site allows both TOTP and a hardware-based system though you can use the hardware-based system normally, and only resort to TOTP if the hardware is lost or broken, and stop using TOTP as soon as you can get replacement hardware enrolled.

For TOTP when you are setting up and the site gives you the QR code, scan that in TOTP apps on your phone and if you have one on your tablet. Also save a copy of the QR code somewhere safe. I save an encrypted copy on my desktop computer. If you ever change phones or tablets, you can scan the QR code again.

Some sites will also give you the TOTP key in text form. Save that somewhere safe and you can use it with command line TOTP tools such as oathtool [1].

[1] https://www.nongnu.org/oath-toolkit/oathtool.1.html

Re:Requiring MFA on popular gem maintainers by woodruffw on Tuesday August 16, 2022 @03:07PM (#32487329)
> What I'd like to see is for sites to allow setting up two different kinds of 2FA, one of which is TOTP and the other is something hardware-based.

This is exactly what we did for PyPI: we allow the user to enroll as many 2FA factors as they'd like, of both supported types (TOTP and WebAuthn).

The post is dated 2019, but the summary of practices we wrote here[1] is still relevant (and IMO, correct).

[1]: https://blog.trailofbits.com/2019/06/20/getting-2fa-right-in...