News for hackers. Stuff that matters.
Re:Login with a Public Ed25519 Key by redleader55 on Saturday February 26, 2022 @07:55PM (#30484106)
This is very likely insecure. A malicious web site could replay your Auth flow to another website where you have an account that uses the same keypair.
Re:Login with a Public Ed25519 Key by jazzyjackson on Saturday February 26, 2022 @08:06PM (#30484191)
right, would be better for the site to encrypt a one-time-use password with the public key you've, then all you have to do is decrypt it and log in, proving you possess the private key

does this have a name? always seemed like the obvious way to do it but I've never implemented auth

edit: I guess this is similar to a challenge/sign/verify signature scheme like webauthen, but is it inferior in some way?

Re:Login with a Public Ed25519 Key by woodruffw on Saturday February 26, 2022 @08:49PM (#30484515)
Yep, what you've described is pretty close to the scheme in WebAuthn. The main additions in WebAuthn are for protocol level security: there's an attestation nonce, a shared counter, and some other fiddly bits to make it harder/impossible to misuse.
Re:Login with a Public Ed25519 Key by Lurkars on Sunday February 27, 2022 @01:25AM (#30485916)
This is exactly what I use for an emailless password reset. Instead of sending a reset token via email, it's just encrypted with public key and user can decrypt token for reset password. There for I don't require to collect email address for account. Of course this could also be used as login method. On the downside, for UX purposes decryption can run in browser by passing private key. I have mixed feelings about pasting PKs into browser.
Re:Login with a Public Ed25519 Key by staticassertion on Saturday February 26, 2022 @10:19PM (#30485046)
SRP, PAKE, and OPAQUE. More generally, zero knowledge proofs (ZKP).
Re:Login with a Public Ed25519 Key by jazzyjackson on Saturday February 26, 2022 @11:18PM (#30485372)
thanks !
Re:Login with a Public Ed25519 Key by Zamicol on Monday February 28, 2022 @11:25AM (#30501645)
PoP, Proof-of-Possession.
Re:Login with a Public Ed25519 Key by copperfoil on Saturday February 26, 2022 @08:11PM (#30484233)
Yeah, there's no verification of a server's pubkey like ssh (which mostly is trust-on-first use), or a cert chain like tls. This seems like a cool proof-of-concept. There are also a bunch of security properties that it fails in.
Re:Login with a Public Ed25519 Key by Zamicol on Monday February 28, 2022 @11:00AM (#30501339)
It's the same for passwords.

The advantage is that your private key can't be leaked on a third party website.

Re:Login with a Public Ed25519 Key by addingnumbers on Saturday February 26, 2022 @08:29PM (#30484369)
Why would you use the same keypair for multiple sites?
Re:Login with a Public Ed25519 Key by ikiris on Sunday February 27, 2022 @12:17AM (#30485638)
What's stopping an idiot from doing so?
Re:Login with a Public Ed25519 Key by addingnumbers on Sunday February 27, 2022 @01:07AM (#30485834)
The fact that it's a bare-bones technical demonstration and an idiot would have no wherewithal or purpose to implement it.
Re:Login with a Public Ed25519 Key by md_ on Sunday February 27, 2022 @08:19AM (#30488146)
But then what's it actually demonstrating? That public key cryptography can be used to...validate that someone has a private key?

I feel like I knew that already. ;)