News for hackers. Stuff that matters.
Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by buro9 on Sunday August 18, 2024 @09:40AM (#41282327)
Yesterday I had a good example of this.

Website: "Please choose a complex password of at least 8 characters including special characters and numbers"

Me: Fires up the password manager, generates a 128 character random password, feels smug.

Website on next visit: "Please enter the characters in the 31, 98, 102 position from your password"

Me: WTAF

Context: Mortgage website in the UK

Edit: It's now dawned on me that they're storing this plain text so that they can do this... or at least encrypting rather than hashing, meaning that they can always decrypt the password.

Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by deepsquirrelnet on Sunday August 18, 2024 @10:16AM (#41282535)
Until recently, treasurydirect made you login using your mouse by pressing a keyboard laid out on a screen. This is a government website in the US for buying treasury bonds.

I didn’t know this when I made my account and fired up keepass per usual to create a massive random password. It takes me nearly 5 minutes of carefully pressing buttons on the screen and trying to keep my location in the password (you can’t see what you entered) just to get in.

Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by mwexler on Sunday August 18, 2024 @10:27AM (#41282583)
Both of these reflect a security approach from early 2010s when keyboard sniffing was the worry-of-the-week. The idea was that even with all keystrokes intercepted, the full pw was never sent via keypresses.

One of my pals around that time turned on accessibility features like onscreen keyboards and diligently never typed a password. In a shell, a site, whatever.

It's unfortunate that these sites (Treasury and UK mortgage) were built around this time, but also shows that with all the progress with tech, security is still glacial in places. And like all tech, we get stuck with trends for a while (like skeumorphism in ux design).

Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by JohnFen on Monday August 19, 2024 @12:52PM (#41292631)
> (like skeumorphism in ux design)

Say what you want about skeumorphism, but it at least gave people a fighting chance to figure out what in the world the target actually does.

Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by salil999 on Sunday August 18, 2024 @10:26AM (#41282579)
I got around this by just editing the HTML. Worked like a charm
Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by Someone1234 on Sunday August 18, 2024 @12:13PM (#41283218)
Also demonstrates how pointless that theater was.

A lot of GOOD malware don't "sniff keys" because that gives them random stream of garbage that has little value. No human is going to sit there and hand-decipher that garbage. Instead, they either inject browser extensions, intercept at the Win32 layer, or intercept the HTTP traffic upstream of the browser giving them the raw form-fields with URL which can be packaged and sold.

So all TreasuryDirect was doing, when they were doing this, was inconveniencing real people while the malware didn't even notice. Utterly insane. Glad someone had them quit it.

Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by Grimblewald on Sunday August 18, 2024 @10:30PM (#41287281)
a lot of efforts to prevent malpractice are like this. Anti-piracy software only really hurts paying customers for example.
Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by ericd on Sunday August 18, 2024 @10:48AM (#41282702)
Yeah, you could just delete "readonly" from the input, then try the password manager autofill again. Thankfully no longer necessary.
Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by Intralexical on Sunday August 18, 2024 @02:44PM (#41284378)
These days I'd be scared that fails some biometric spyware and gets your entire account instantly banned+deleted with no recourse.
Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by qingcharles on Sunday August 18, 2024 @03:25PM (#41284719)
I found some sites recently that have big ASCII banners in the console log when you open devtools telling you to stop being naughty.
Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by PKop on Sunday August 18, 2024 @10:46AM (#41282681)
You could open dev tools and modify the input then pasting worked.
Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by christophilus on Sunday August 18, 2024 @02:14PM (#41284113)
Incidentally, you could find the hidden input in developer tools, and just type your password there like a normal person. But yeah. That site is so bad that I never bought more ibonds even though they were a great deal.
Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by Intralexical on Sunday August 18, 2024 @02:43PM (#41284376)
That's kinda hilarious though.

Also a nice example of when security through obscurity is harmful. "If we show a picture of a keyboard instead of taking text input, that'll stop the hackers!"

Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by thedanbob on Sunday August 18, 2024 @09:50AM (#41282376)
Maybe we need a corollary to "don't roll your own crypto": "don't roll your own password scheme".
Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by lazide on Sunday August 18, 2024 @11:06AM (#41282799)
So what is the ‘standard’ then that doesn’t suck?
Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by Morpholemew on Sunday August 18, 2024 @11:39AM (#41283009)
https://pages.nist.gov/800-63-3/sp800-63b.html#memsecret

Basically, 8 characters or more, but prevent the user from picking a password that appears on any of the leaked password lists. Store in pbkdf2 or better; use argon2id per https://cheatsheetseries.owasp.org/cheatsheets/Password_Stor...

That's it. Simple. No mandatory symbols. No mandatory changes after a period of time. A password strength estimation meter is optional.

If it needs to be more secure, I might require more minimum characters, but no other restrictions.

Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by lazide on Sunday August 18, 2024 @11:57AM (#41283122)
Ah, yet another standard. How many years do you think before it’s obsolete?

Also, the ‘no previously leaked passwords’ are gonna piss off a lot of customers.

Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by smrq on Sunday August 18, 2024 @12:18PM (#41283250)
I think you just picked up the goalposts and brought them home with you. Why ask for a standard in the first place?
Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by lazide on Sunday August 18, 2024 @12:35PM (#41283358)
Because this is what, the third NIST standard on it?
Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by a_dabbler on Tuesday August 20, 2024 @05:47AM (#41298445)
Things can change? The newer standards improve upon the errors of the old ones and presumably make the old ones deprecated
Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by kevin_thibedeau on Sunday August 18, 2024 @12:34PM (#41283354)
8 chars is not sufficient. The Hive strength estimates switched to Bcrypt this year but there are still weak systems out there and you should set passwords assuming MD5 which currently demands at least 12 chars for typical users.
Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by compootr on Sunday August 18, 2024 @01:08PM (#41283596)
What's your opinion on zxcvbn[0]?

It dynamically analyzes a password's cracking time, score, and gives feedback based on the password. imo it's a pretty good ux if used right

[0]: https://github.com/dropbox/zxcvbn

Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by lynndotpy on Sunday August 18, 2024 @02:02PM (#41284007)
Misused, zxcvbn offers its own security issues.

First, it's not either-or. You can match against zxcvbn strength and some passwordlist.

Second, think of the output of zxcvbn as a very weak hash with a low collision rate. E.g. 'correct-battery-horse-staple' maps to an estimated 213811968952000000000 guesses. In addition to being potentially algorithmically reversible, attackers can simply perform an offline attack against the value 213811968952000000000. So, this metric should never be exposed (e.g. in log files, on screen, etc.)

Third, having the estimated entropy helps a lot when password cracking. If you have the password hash digest and the zxcvbn metrics, then it makes the cracker's job much easier by reducing the search space. (Think, going from checking each molecule of an apple to checking only each molecule on the peel of an apple.)

Further, it's not perfect. The zxcvbn library I used suggests 'correct-battery-horse-staple' is a very strong password!

Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by maratc on Sunday August 18, 2024 @04:21PM (#41285150)
It indeed is. The bad password you're thinking of is "correct-horse-battery-staple".
Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by lynndotpy on Monday August 19, 2024 @05:43PM (#41294805)
Both are bad passwords, and zxcvbn states both are good. Try it here: https://lowe.github.io/tryzxcvbn/

Zxcvbn is imperfect by design. It's a tradeoff it makes for being fast and small.

Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by maratc on Monday August 26, 2024 @06:03AM (#41355606)
You might want to re-read the introductory article [0] where the authors themselves look at that specific password.

[0]: https://dropbox.tech/security/zxcvbn-realistic-password-stre...

Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by lynndotpy on Wednesday August 28, 2024 @03:40PM (#41383383)
Yes, I'm very very familiar with this :) I stand by my assertion, "correct-horse-battery-staple" is a weak password to use today. Zxcvbn reporting it as secure is an example of where it's weak.

That XKCD comic came out August 2011, and this article was released April 2012, eight months later. At the time, it made sense to use that as an example of a "highly entropic password" in a blogpost targeting a general technical audience.

It has now been 156.5 months since that comic was released, and 164.5 since zxcvbn was originally trained on its 2011 dataset. "Correct-horse-battery-staple" and its variations are widely used strings and is no longer an example of a strong password.

It's worth being careful about our definition of entropy. The same highly-entropic source generates "hunter2" just as often as it generates "aaaaaaa" just as often as it generates "jpnj6i3".

A "good password" is one that is unlikely to be guessed by an offline cracker. But there are countless strategies an attacker might choose, most of which involve taking a list of passwords and applying rules to them. This is why a highly-entropic source is important (e.g. of all the 32-character passwords, 'weak' ones like "aaaaa..." make a negligible percentage of them) as well as uniqueness ("mP7t6e8TAH..." is a weak password the moment it's leaked in a breach.)

You can't know what strategy the attacker will pick beforehand-- the idea is that it's negligibly likely that an attacker chooses a strategy that cracks your password in a few guesses.

Zxcvbn intentionally takes compromises to be a performant best-effort estimation of how many guesses an attacker would take for your password. (It would improve its estimation of guesses by actually trying to guess your password with `hashcat` and the antipublic combolist, or whatever people are using nowadays, but then it would take eons to provide an estimation rather than milliseconds.)

Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by xyst on Sunday August 18, 2024 @01:55PM (#41283971)
Better yet, don’t use passwords at all. I’m personally fond of the magic link sent to email method of authN
Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by monooso on Sunday August 18, 2024 @02:47PM (#41284411)
I'm the opposite. I deliberately avoid checking my email outside of predefined times, and hate it when a website assumes that everyone is happily living in their inbox.
Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by bobbylarrybobby on Sunday August 18, 2024 @09:12PM (#41286961)
This doesn't work well if you aren't working in your default browser and if the link expires after a single use. For instance, if you're trying to log into an app (not a website) and the redirect to the app doesn't work when you tap the link in your email.

I suppose an alternative approach would be to open a websocket in the post login page, and if you open the link in your email the server sends your browser a cookie or something, and then you're in. But I've never seen that approach.

Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by kevin_nisbet on Sunday August 18, 2024 @11:11AM (#41282835)
That's a good one. One of my personal favorites was a device that truncated long passwords in the set password function. Didn't take too long to figure out what happened but I was worried for a moment I wouldn't be able to unbrick that device.
Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by Seanambers on Sunday August 18, 2024 @09:51AM (#41282383)
Ran into the same thing with Santander Bank in Poland. I have been online since the 90s never seen that password scheme ever anyplace else. It´s like who comes up with this insane shit.
Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by high_na_euv on Monday August 19, 2024 @05:45PM (#41294820)
https://security.stackexchange.com/questions/7467/how-secure...

12 years old post talking about polish banks and the reasoning :)

Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by xyst on Sunday August 18, 2024 @01:54PM (#41283961)
> “Please enter the characters in the 31, 98, 102 position…”

I think this is a “the password game” requirement.

Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by MrJohz on Monday August 19, 2024 @12:26AM (#41287813)
> Edit: It's now dawned on me that they're storing this plain text so that they can do this... or at least encrypting rather than hashing, meaning that they can always decrypt the password.

It could well be that they're doing the encrypt/decrypt thing, but you can also get the same affect by pre-calculating the slices of password and hashing those slices.

For example, when you create the new user entry, you could take the password, pick three random characters from it, and store the indexes and the hash together in a table row (in your case, something like ("31,98,102","salt$hashfgtd")).

You do that two or three times, and then, every time you ask the user to log in, you randomly choose one of these entries, ask the user to enter the character positions, and check the hash of the result against the hash in the row.

The Student Finance England website used to have a similar setup about asking for letters X, Y, and Z, but it rotated between only a handful of combinations, so I think it probably used something like this.

That said, a few years ago gov.uk took over the SFE login form and modernised it, including replacing the XYZ system with a version where you just enter the whole string, so presumably either they also had hashed the whole string, or they were storing it in a format that was retrievable. Or I guess they still only store the XYZ tuples but do the indexing and comparison logic internally.

Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by high_na_euv on Monday August 19, 2024 @06:12PM (#41294996)
>It's now dawned on me that they're storing this plain text so that they can do this...

https://en.m.wikipedia.org/wiki/Shamir%27s_secret_sharing

Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by kevincox on Tuesday August 20, 2024 @05:38PM (#41304351)
How would you securely implement this scheme with SSS?
Re:Flaw has Microsoft Authenticator overwriting MFA accounts... by tengwar2 on Saturday August 24, 2024 @06:00PM (#41342012)
Sometimes passwords are stored in plain text to improve security. An example is K in mobile telephony, a number shared between the home network and the USIM. This is used for mutual authentication and establishing a cryptographic session key. There is no concept of a certification authority (which can be subverted) or a signature - there is just a shared secret, stored in plain text, so there are minimal trust requirements. But stored in a secure piece of hardware with write-only access for K. You pass a challenge in, and get back a number which can be used to prove identity, and a number which can be used to establish a crypto context (here I am simplifying by not describing the mutual authentication).

Ok, so in the context of your mortgage website, they may be doing the same thing. The motivation may be to stop keyloggers or anyone who is "inside" HTTPS getting the password. The implementation may be a hardware security module which is write-only for the password and which gives a yes/no answer when asked to check a character.