News for hackers. Stuff that matters.
Re:Safari tries to fill username by thaumasiotes on Friday May 28, 2021 @06:50AM (#27313842)
> I still can't believe that whole business managed to interpret 2FA for whole EU as "you MUST use SMS for 2FA!".

Weeeeeelll...

I'm familiar with two (2) common kinds of "2FA" implementations. TOTP and SMS.

Of those two, only SMS is actually a second factor, albeit not a particularly secure one. TOTP is fundamentally a password, and two passwords are no different than one password.

Re:Safari tries to fill username by lucideer on Friday May 28, 2021 @07:02AM (#27313915)
> TOTP is fundamentally a password

I see this view a lot. It's wrong. TOTP is fundamentally different to a password, as the stored "password" (by which I presume you mean the key) is never transmitted anywhere.

TOTP in fact has one property that makes it potentially* the most secure of all 2FA methods: it can be used airgapped. As the credential you type into the 2FA form is not the saved secret.

* I say "potentially" because the relative inconvenience + human factors conspire to make it less secure than e.g. U2F in most cases. But assuming hypothetical perfect conditions, there would be nothing more secure than TOTP for 2FA.

Re:Safari tries to fill username by hedora on Friday May 28, 2021 @09:13AM (#27314939)
Digest authentication allows passwords to be authenticated without sending the “key”, and could also be used airgapped.

You’d need to type a nonce into the dongle, then type the result into your computer.

TOTP is just a password. Also, in practice, the server has to have non-air-gappped access to a TOTP generator, so it’s not really air gapped at all.

Read up on the great RSA key fob recall for an example of TOTP-style auth gone horribly wrong.

Re:Safari tries to fill username by lucideer on Friday May 28, 2021 @10:20AM (#27315604)
Digest auth can be air gapped but the time aspect of TOTP still makes digest comparatively less secure (plus digest isn't typically even done separately to the primary client device, nevermind airgapping, whereas TOTP is at least most commonly used via an entirely separate device).

> You’d need to type a nonce into the dongle, then type the result into your computer.

That would be a cool augmentation of digest auth, but afaik is hypothetical currently (at least as far as common use goes). I can use TOTP airgapped right now.

> in practice, the server has to have non-air-gappped access to a TOTP generator

This is a fair point, but requiring full server compromise is still a nice step up from being mitm-able.

> so it’s not really air gapped at all

That seems like a rather extreme conclusion to draw. Client-side only air gapping is still airgapping, the fact it doesn't extend to protection from server compromise doesn't completely invalidate the benefits.

Re:Safari tries to fill username by thaumasiotes on Friday May 28, 2021 @07:04AM (#27313928)
> TOTP is fundamentally different to a password, as the stored "password" (by which I presume you mean the key) is never transmitted anywhere.

Are you familiar with SRP?

TOTP has all of the properties of passwords, and no properties that passwords don't have. That makes it... a password.

Re:Safari tries to fill username by lucideer on Friday May 28, 2021 @07:12AM (#27313987)
I guess you can argue the definition of the word "password"; language is fluid, especially English.

I would say SRP is strictly a misnomer (though it's a useful conflation). Generally speaking password is a value provided for authentication (if it's no longer being "provided", as in SRP, it's something different... but I understand using a familiar word for that something different is helpful when communicating).

Either way, in saying TOTP was "just a password", the point you were trying to make was that TOTP is "no different than and therefore no better than a 2nd traditional password". The fact it's not transmitted makes it very different to, and better than, a traditional password. So whatever you want to define the definition as, the point stands.

> and no properties that passwords don't have

It has 1 property that passwords don't have: it is not transmitted!

Re:Safari tries to fill username by batch12 on Friday May 28, 2021 @07:38AM (#27314148)
There are authentication mechanisms that rely on passwords but work by not transmitting the password too. One example is kerberos.

TOTP is a password. The fact that it is a password doesn't matter though since it is something you have (and can't know) which augments the something you know. This satisfies the intent of MFA.

Re:Safari tries to fill username by KMag on Friday May 28, 2021 @08:15AM (#27314456)
> One example is kerberos.

It kills me that most enterprise environments use Kerberos via Active Directory, LDAP, or NIS. So, your workstation probably has Kerberos tickets sitting on it, which would allow very light weight 2-way authentication and encryption of internal flows.

TLS client certificates and TLS-everywhere would be another good option, but it's particularly frustrating that the Kerberos TGTs are already on the client machines. The key management part is already solved in the Kerberos case.

Kerberos is even potentially resistant to quantum cracking. (Grover's quantum search algorithm effectively halves the key size of ideal symmetric ciphers, so you'd want 256-bit keys.) Forward secrecy is an issue, but there are proposals to incorporate DH key exchange in the pre-auth to give imperfect forward secrecy. A post-quantum key agreement protocol, like RLWE would be fairly strait forward to incorporate, with standardization being the main hurdle.

Re:Safari tries to fill username by toyg on Friday May 28, 2021 @08:39AM (#27314669)
I agree Kerberos is somewhat under-used, but man isn't it half a pain to set up integrations with...

Part of the problem is that it's "enterprise" tech, which means all sorts of "enterprise" middleware claims to support it with some half-assed concoction that worked on the presales demo environment once, back in 2001, and nobody else has touched since. And it's also old and pretty obscure, with documentation lost to the fog of time, and very few people who remember how it was supposed to work - a bit like MS DCOM...

Re:Safari tries to fill username by Aeolun on Friday May 28, 2021 @07:42AM (#27314177)
Aside from the fact that I never transmit the actual password. So the password that you’d potentially get only works for you for 30 seconds.

Slight detail that’s of course completely irrelevant.

Re:Safari tries to fill username by thaumasiotes on Friday May 28, 2021 @07:52AM (#27314253)
> Aside from the fact that I never transmit the actual password.

You realize that, out of the many comments I've made in this tree, the one you responded to was the one that said

> Are you familiar with SRP?

There are more ways of compromising someone's information than capturing it in transit. If you give me your phone, I can read your TOTP seeds straight out of Google Authenticator.

Re:Safari tries to fill username by batch12 on Friday May 28, 2021 @07:31AM (#27314101)
Yeah, TOTP is a password. Hell, it is in the name. One property it has that differs from classic passwords is the authentication factor. For TOTP, it changes from something you know you something you have. However, lots of passwords are now randomly generated and are no longer "something you know" either.
Re:Safari tries to fill username by lucideer on Friday May 28, 2021 @07:49AM (#27314222)
> it is in the name

The "Password" named in "Time-based One Time Password" is the temporary generated value you transmit. It's not what's stored on the TOTP device, so in the context of this discussion, that temp value isn't what the gp was referring to.

Re:Safari tries to fill username by thaumasiotes on Friday May 28, 2021 @07:50AM (#27314229)
> Yeah, TOTP is a password. Hell, it is in the name.

Careful; "one-time password" is in the name, and it certainly isn't that. Your TOTP seed stays valid forever.

Re:Safari tries to fill username by izacus on Friday May 28, 2021 @07:15AM (#27314014)
The issue was that it was ONLY SMS - they immediately deprecated private certificates, 2FA "calculators" and other 2FA schemes.

After the security backlash they now backpedaled and implemented 2FA with ONLY apps. Apps that ONLY work on iOS and Google Android. I had endless calls from family where they couldn't access their banks anymore because they had a Huawei phone or a dumb phone. Banks are citing "security" as explanation why they can't use smartcards, hardware tokens or even bring apps to desktop computers or phones without Google services.

The funny part is - ALL banks did this at once. Why? Because the security consultants had "must have app" and "must check Google Safety net" on their check lists.

Re:Safari tries to fill username by noAnswer on Friday May 28, 2021 @07:58AM (#27314318)
> The funny part is - ALL banks did this at once.

What country are you taking about? In regards to the EU 2FA thingy I start to belief to see a pattern. In countries who had established online banking standards with 2FA, nothing changed. But countries without, went ballistic. SMS or App only 2FA on every login and on every transaction. Yah, I can see that this is annoying.

While for me with my German banks I still access them using the FinTS protocol with a banking software of my choosing. For transaction above 20€* I need a TAN from my chipTAN/Sm@rt-TAN device (Which shows you the transaction details). Optional I could choose an app. SMS was phased out years ago (By my banks. Others perhaps still have it.)

(*only 3 transaction a day I believe. You can deactivate that so that you get asked for a TAN every time.)

Re:Safari tries to fill username by jsnell on Friday May 28, 2021 @07:40AM (#27314158)
The benefit of apps and SMS over hardware tokens, TOTP, smartcards, etc. is to have a out of band communications channel, not merely a second factor. This is crucial for dealing with malware that can change the transactions a user is entering on a banking site, and it being literally impossible for them to notice that it's happened just on the browser. With apps / SMS, they can be informed of the transaction details as part of the verification process on a secondary communications channel that hopefully is not affected by the malware.
Re:Safari tries to fill username by noAnswer on Friday May 28, 2021 @08:06AM (#27314386)
chipTAN/Sm@rt-TAN device shows you the transaction details before showing you the TAN. This devices receive their information visually. Either via blinking code or via a coloured QR-Code. So they are are air-gapped.
Re:Safari tries to fill username by jokethrowaway on Friday May 28, 2021 @08:35AM (#27314624)
Noticed this as well.

It's a minor inconvenience for someone who is organised or is used to store secretes securely but a complete nightmare (including a security nightmare) for your average Joe.

Thanks EU, thanks governments for your precious regulations that keep us safe.

I wonder how many similar stories there are in fields I'm not an expert of.

Re:Safari tries to fill username by izacus on Friday May 28, 2021 @08:56AM (#27314815)
The thing is - I read both EU and local regulations and they don't demand any certain approach to security. Nothing is stopping banks from providing a better experience except dire warnings and prescriptivism of security consultancies.

I talked with fintech founders and they mostly say "sure, we could give better user experience and then have a fight on our hands with auditors because we didn't fill out all the checkboxes from the reputable security consultancy that 'interprets' the requirements"

Re:Safari tries to fill username by cmeacham98 on Friday May 28, 2021 @08:39AM (#27314662)
My bank (one of the largest in the US) supports 2FA with SMS, their app, or a physical hardware token (which you buy from them for $20).
Re:Safari tries to fill username by donatzsky on Friday May 28, 2021 @07:00AM (#27313899)
TOTP is no more a password than whatever one-time code you'd get by SMS. In fact, TOTP is arguably more secure, since it isn't nearly as vulnerable to hijacking as SMS is.
Re:Safari tries to fill username by thaumasiotes on Friday May 28, 2021 @07:02AM (#27313914)
> In fact, TOTP is arguably more secure, since it isn't nearly as vulnerable to hijacking as SMS is.

Indeed, this is an argument you can reasonably make.

> TOTP is no more a password than whatever one-time code you'd get by SMS.

But this isn't; this is just a blatant lie.

Re:Safari tries to fill username by wffurr on Friday May 28, 2021 @06:53AM (#27313856)
Doesn’t answering a TOTP challenge prove that you “have” the HMAC shared key that seeds the code generator?
Re:Safari tries to fill username by thaumasiotes on Friday May 28, 2021 @07:00AM (#27313898)
Yes, that shared key is a password, a piece of knowledge known in common between you and them.
Re:Safari tries to fill username by jimktrains2 on Friday May 28, 2021 @07:06AM (#27313942)
A password is something you're supposed to "know", i.e. something in your head.

A second factor is something you have, i.e. your phone, a hardware token, or access to a shared secret you don't store in your head.

Password managers kind of mangle the idea and turn the password from something you know to something you have.

Re:Safari tries to fill username by thaumasiotes on Friday May 28, 2021 @07:14AM (#27314000)
A password is information, something that can be freely duplicated.

The idea of "something you have" is that the thing can't be duplicated. As soon as it can, it's no longer "something you have". Any number of people might have it. A person who has it might not be you.

SMS hijacking, for example, converts your phone-based authentication to a password, where the password is your phone number. (Since an attacker who knows that number can pass the test.)

TOTP starts its life as a password.

Re:Safari tries to fill username by jimktrains2 on Friday May 28, 2021 @07:46AM (#27314203)
I would argue that since the totp secret is never in my head it is not a password.

Sms hijacking doesn't "convert" anything anymore than someone with a telephoto lens "converts" an old-style hardware token to a password. (Yes, I know the p in otp is password, and called that because it's entered by the user. It's not a password in terms of a factor you "know" because it's time-limited.)

These are also fluid ideas that are used to describe roughly different failure modes for different types of authentication:

Passwords are thought of as things the user can disclose.

Totp and other "second factors" are thought of as things that must be stolen, or if disclosed have a very short viability time.

Biometric are things that can't be disclosed, but can be lost, and (and when properly implemented) not stolen.

You're trying to argue that these categories of authentication factors have hard lines and definitions when they're fluid categories being used to think about failure modes of a method. Each specific authentication method has its own strengths and weaknesses.

Also, sms hijacks require a lot more than simply "knowing" a phone number. While sim cloning and ss7 attacks are known and very possible, they're still fairly complex. You can also social engineering tech support at phone companies to activate your sim for an account, but that is also significantly more difficult than simply "knowing" a phone number and also a failure of the authentication the phone carrier is using.

Re:Safari tries to fill username by thaumasiotes on Friday May 28, 2021 @04:14PM (#27319927)
> Sms hijacking doesn't "convert" anything anymore than someone with a telephoto lens "converts" an old-style hardware token to a password.

I didn't notice this sentence before. Compare the issue of releasing photographs of master keys.

https://www.schneier.com/blog/archives/2012/10/master_keys.h...

Compare the (correct) comment from that post:

> the press has helpfully published a photograph of the keys, so you can make your own, even if you didn’t win the eBay auction.

with this official statement from the government of New York:

> “If you’re selling it, it’s in your possession for an unlawful reason,” said City Councilmember Elizabeth Crowley, chairwoman of the Fire and Criminal Justice committee.

( https://nypost.com/2015/09/20/the-8-key-that-can-open-new-yo... )

Saying "you're not supposed to have this" won't stop people from having it. These keys are regulated as if they are "something you have", but the facts are otherwise.

Re:Safari tries to fill username by thaumasiotes on Friday May 28, 2021 @08:02AM (#27314347)
> Totp and other "second factors" are thought of as things that must be stolen, or if disclosed have a very short viability time.

TOTP gets set up in the first place when the website discloses your seed to you. It's not something that can't be disclosed. Seeds get disclosed all the time; workflows are built around it.

> Biometric are things that can't be disclosed

Huh?? Biometrics are things that it's impossible to avoid disclosing. If you're ever in a police station, they are free to sample your DNA. You shed it all over the place. If you ever handle something, you just disclosed your fingerprints. If there are any pictures of you out there, your face is public information.

> sms hijacks require a lot more than simply "knowing" a phone number.

I didn't claim otherwise. The intent of my sentence above is to say that a context which involves a working hijack attack converts an SMS challenge from a second factor into a password. If your attack is working, knowing the phone number is sufficient to authenticate as the victim.

Re:Safari tries to fill username by tremon on Friday May 28, 2021 @07:36AM (#27314136)
Yes, it starts its life as a password. After that, it is never communicated ever again, and therefore, after the initial exchange, it's something you have.

It seems to me you are ascribing properties to "something you have" that aren't warranted. The "something you have" needs to prove you were party to the initial exchange, not necessarily that you were the only one present -- that's why we use two factors, and not only TOTP.

Re:Safari tries to fill username by thaumasiotes on Friday May 28, 2021 @07:47AM (#27314204)
I can't follow what you're trying to say.

> The "something you have" needs to prove you were party to the initial exchange

This is not something that can be proven at all. Accordingly, proving it is not a goal. Anything that can be had can also be transferred. Your delegated agent's login attempt is just as valid as yours is.

Re:Safari tries to fill username by Aeolun on Friday May 28, 2021 @07:46AM (#27314196)
Not entirely. The thing I know turns into the main password to get into the password manager for every site.
Re:Safari tries to fill username by im3w1l on Friday May 28, 2021 @07:40AM (#27314157)
The key thing is that an attacker wont be able to keylog the shared secret, or trick me into typing it on the wrong site.
Re:Safari tries to fill username by hedora on Friday May 28, 2021 @09:19AM (#27314996)
They will be able to trick you into typing it on the wrong site (more likely, wrong terminal) if they’ve compromised your machine. They just need to wait for you to log in.

Similarly, they can grab the shared secret from the server.

It’s marginally better than a password manager (though some of those support TOTP now), since they can’t pull all your credentials by keylogging your master password.

Re:Safari tries to fill username by nl on Friday May 28, 2021 @06:59AM (#27313892)
TOTP is a second factor.

The hash seed that generates a password is connected to the device.

Re:Safari tries to fill username by thaumasiotes on Friday May 28, 2021 @07:01AM (#27313906)
The seed is all you need. The device is unnecessary.
Re:Safari tries to fill username by hedora on Friday May 28, 2021 @09:22AM (#27315022)
So, it’s a password.

All I need for password authentication is the password and a device that can generate a one time proof that I know the password.

TOTP just seems more secure because the password is never displayed to the end-user.

Re:Safari tries to fill username by nl on Sunday May 30, 2021 @11:32PM (#27339758)
It's not a password.

A password/passphrase/passcode is something you know.

A hash for a TOTP is something you have. 2 factor means something you know and something you have (or something you are): https://dis-blog.thalesgroup.com/security/2011/09/05/three-f...

(And yes in theory you could remember the hash, and have a custom TOTP client that lets you enter it in. But unless you do this it is a theoretical argument only).

Re:Safari tries to fill username by nl on Friday May 28, 2021 @07:10AM (#27313965)
Sure.
Re:Safari tries to fill username by ascar on Friday May 28, 2021 @08:27AM (#27314556)
No need to be sarcrastic. He is absolutely right. The seed is all you need in case of the common TOTP algorithm. There is no connection to the device.

In fact, in Google Authenticator you can even conveniently export all running TOTP to another Google Authenticator without any connection with the apps or anything else whatsoever.

Re:Safari tries to fill username by nl on Sunday May 30, 2021 @11:30PM (#27339748)
That wasn't supposed to be sarcastic at all.

I was in total agreement with him - you can in theory run the algorithm by hand.

It isn't especially relevant though - 2-factor is "something you know, something you have". You need to have the hash.

Re:Safari tries to fill username by loloquwowndueo on Friday May 28, 2021 @06:57AM (#27313878)
You’re not familiar with U2F?

Would you not install two deadbolts on your door if you needed the extra security?

Re:Safari tries to fill username by backspace_ on Friday May 28, 2021 @11:41AM (#27316733)
Top of the pops?