by est · 2y ago · 0 comments
This elimilates passwords altogether, but are there any pitfalls?
With a long enough session life and a good refresh strategy, it's less of a problem. If an app clears sessions after a week, then I would argue they are doing it wrong.
So pretty insecure, but probably suitable for some systems with low security requirements or other mitigating factors.
This elimilates passwords alltogether, but are there any pitfalls?
Coincidentally, I just mentioned that I did this: https://news.ycombinator.com/item?id=40878150
(of course, I leave it as a user preference: The user chooses whether to use standard passwords or to use one-time-passwords)
A rate limit strategy should limit the rate of the attacker not the victim.
Rate-limiting per email address is just a DoS vector, anyone can prevent a legitimate user from logging in.
An easy counter-measure would be blocking consecutive TOTP logins of the same or similar codes.
The attacker has a 1 in 1 million chance of guessing right, assuming 6-digit codes. This isn't acceptable for most applications.
That's assuming there's no throttle of login requests and all authentication were made under one minute against one single user.
I have a system I use where you enter your email and get a one-time code.
The goal in that system is not to securely authenticate you, merely to identify you. "Good enough" for the use case.
But that's a general problem. 2FA should really mean 2 separate devices.