News for hackers. Stuff that matters.
Re:Show HN: Wag, MFA and Enrollment for WireGuard by d-z-m on Saturday May 11, 2024 @07:10AM (#40327415)
Do you protect against bruteforcing the TOTP code? I.e. via rate-limiting or a set amount of retries? I took a quick glance at the code and couldn't find anything to this effect.

The scenario I'm imagining is: someone opens the TOTP entry UI in their browser, opens devtools, and starts to loop through all possible TOTP codes.

Re:Show HN: Wag, MFA and Enrollment for WireGuard by 8organicbits on Saturday May 11, 2024 @08:15AM (#40327619)
Re:Show HN: Wag, MFA and Enrollment for WireGuard by Avicebron on Saturday May 11, 2024 @08:11AM (#40327605)
I can't speak to the specifics of this particular implementation but usually if someone has the login (username + password) to get to totp that user has already been compromised..
Re:Show HN: Wag, MFA and Enrollment for WireGuard by asimops on Saturday May 11, 2024 @08:28AM (#40327661)
But MFA is there to prevent this compromise from affecting the service and alert users/admins to the compromise, right?

If you have username and password and are able to force the TOTP in the 60s window, the TOTP would be useless imho.

Re:Show HN: Wag, MFA and Enrollment for WireGuard by yonatan8070 on Saturday May 11, 2024 @01:00PM (#40329286)
If a user keeps their credentials in a notebook and it got stolen, the TOTP check can be the difference between the attacker getting in, and the user being notified and changing their password
Re:Show HN: Wag, MFA and Enrollment for WireGuard by yardstick on Saturday May 11, 2024 @03:55PM (#40330283)
Unfortunately these days it’s even easier with password managers containing all three (user, pass, token)
Re:Show HN: Wag, MFA and Enrollment for WireGuard by ThePowerOfFuet on Saturday May 11, 2024 @05:58PM (#40330895)
The difference being the notebook is paper and easily read, while the password manager is... quite a bit harder.
Re:Show HN: Wag, MFA and Enrollment for WireGuard by yonatan8070 on Sunday May 12, 2024 @12:07AM (#40332220)
I want to believe users who use a password manager are also technically literate enough to secure it properly
Re:Show HN: Wag, MFA and Enrollment for WireGuard by Avicebron on Sunday May 12, 2024 @08:28AM (#40333892)
Me too, but my day job means I handle a bit of secops, password managers are rolled out as security tools to users operating in enterprises where things like mandating people don't keep their passwords on a sticky note on their monitor is usually step one...
Re:Show HN: Wag, MFA and Enrollment for WireGuard by Nullence on Sunday May 12, 2024 @05:49AM (#40333256)
Oh wag doesnt use username and password auth by default. Those are only available in the OIDC integration or if you use PAM auth.
Re:Show HN: Wag, MFA and Enrollment for WireGuard by Nullence on Sunday May 12, 2024 @05:16AM (#40333162)
Yep! I do indeed have protections against bruteforcing TOTP codes, effectively each authentication has a number of "attempts" a user can make before their account gets locked, and an admin is then required to unlock it.

Specifically to force people to have a bit of a think as to why their device is trying to force auth to begin with, as it indicates an endpoint compromise.