A Secure Chat App’s Encryption Is So Bad It Is ‘Meaningless’

TeleGuard is an app downloaded more a million times that markets itself as a secure way to chat. The app uploads users’ private keys to the company’s server, and makes decryption of messages trivial.

404 Media
@soatok _uploadRSAPrivateKey(), woooooooo
@ariadne @soatok Also, still using RSA in 2021 and onwards is a bad smell in and of itself, given how easy it is to use it in a vulnerable way.

@soatok @stiiin no. RSA is fine as long as the modulus is sufficient.

the QC advances are overstated: if you read the paper, they chose intentionally weak key parameters to factor, and in any case the modulus was only 22 bits.

this isn't to say that tasteful elliptic curve cryptography (like curve25519) is bad, just that there really isn't any urgency to move away from RSA in systems which use it.

its still a valid choice, as long as there is a sufficiently large modulus. keys with 4096 or 8192 bit modulus are totally fine for the forseeable future for example, bar some major advancement in quantum computing.

but I don't see it happening this decade.

@ariadne @soatok I don't even care all that much about the PQC angle. I'm referring to the padding oracle attacks that keep popping up in implementations, among other side-channel vulns.
@ariadne @soatok @stiiin yeah but this isn’t a legacy protocol and a CRQC will break ecc all the same
@soatok @stiiin @charlotte sure, they made mistakes. lots of them in fact. I just don't consider using RSA to be a concern here.
@soatok Is it wrong that I didn't get past "a secure chat app" in the post title before I reflexively assumed they utterly fucked up their hand-rolled cryptography protocols?
@wordshaper @soatok No, because that's what Telegram has been doing from the start.
@soatok It took me a second to see the Telegard thing at the top so initially I thought this was going to be about Telegram.
@soatok absolute cinema
@soatok I wish i could read the article without signing up on that random website

@ariarhythmic It's not really a random website, it's a tech news website ran by @josephcox and friends.

They do good work. I subscribe to it and even pay, because journalism is important.

@soatok I don't have access to read that fully, but holy shit, it sounds bad, really goddamn bad lol

@soatok this is far worse than I thought even possible. I thought it'd stop somewhere reasonable, but nope, it kept going. And sure, this app is bad, horrible and so on, but also look at this paragraph from the article

Often when implementing encrypted messages, apps will assign users a public and private key. The public key is what other users use to encrypt messages for them, and the private key is what a user uses to decrypt messages meant for them.

I'm not a cryptography expert by any means and I get that simplification is sometimes useful, but this is a horrible way of describing end to end encryption to anyone, especially since the audience of this publication is often tech related from what I know. This is just wrong, I actually have no idea if anyone built an app which encrypts and decrypts all your messages with a single keypair in the last decade. I mean, maybe for pgp setups perhaps, but I thought we're past explaining encryption like it's the 90s, the only good available encryption is pgp and telling people that actually, having very long-term keys is a good thing.