News for hackers. Stuff that matters.
Re:MEGA: Malleable Encryption Goes Awry by Shank on Tuesday June 21, 2022 @06:00PM (#31829583)
> MEGA can recover a user's RSA private key by maliciously tampering with 512 login attempts.

I think this attack is really interesting and novel, but 512 login attempts is pretty high. I have a Mega account and I think I've logged in less than 50 times in the entire lifetime of my account, including when it was still controlled by Kim Dotcom. If you're an interesting enough target to use this on, I don't see why the Mega server that delivers the javascript for encryption can't be compromised instead, and just harvest the passphrase when it's submitted to login the first time?

I don't know what you'd have to do to convince someone to login 512 times via social engineering, either. Presumably, a user who is dedicated and uses the service on a daily basis might hit this through normal usage in a year and a half? That's definitely plausible, but how many users are initiating new logins each time? How many will just stay logged into the app and never login?

I guess for some percentage of people (e.g., people who are logging in each time via Tails, and do it twice a day) this attack is acutely viable, but it surely can't be all users.

Re:MEGA: Malleable Encryption Goes Awry by tptacek on Tuesday June 21, 2022 @08:10PM (#31830574)
512 login attempts is nothing. The Bleichenbacher'98 padding oracle attack is sometimes called "the million message attack", and it's one of the more practical crypto attacks --- I've been on projects that deployed that attack adversarially to accomplish things.
Re:MEGA: Malleable Encryption Goes Awry by herendin on Tuesday June 21, 2022 @08:37PM (#31830739)
These are apparently login attempts visible to the user.

To conceal them might be possible in some cases, but requires tampering suspiciously with public source client-side apps

Re:MEGA: Malleable Encryption Goes Awry by tptacek on Tuesday June 21, 2022 @08:52PM (#31830820)
The server can just accept the SID the client "decrypted" with the malicious RSA key, and run the attack over time. This is right there in the paper.

This isn't a cryptosystem, it's a CTF level.

Re:MEGA: Malleable Encryption Goes Awry by herendin on Tuesday June 21, 2022 @09:57PM (#31831230)
Put simply: this attack required the user to enter the password 512 times[0]

[0] https://mega-awry.io/#questions

Re:MEGA: Malleable Encryption Goes Awry by tptacek on Tuesday June 21, 2022 @10:03PM (#31831265)
Put simply: this attack required the user to log in 512 times, ever.

You don't have to take my word for it; that's how Mega summarizes the attack in their response.

Re:MEGA: Malleable Encryption Goes Awry by herendin on Tuesday June 21, 2022 @10:22PM (#31831386)
The point is this exploit, according to the researchers, required massive and unusual manual intervention by the user, so it's very different from the other exploit you mentioned that involves millions of auth attempts

From the link I just posted, written by the researchers:

'Nevertheless, on the clients that we analyzed, all attacks would have required a substantial number of manual login attempts (i.e., the user entering the password). Since clients usually cache the credentials, users often stay logged in, minimizing the number of logins performed and thereby increasing the difficulty of the attacks.'

Re:MEGA: Malleable Encryption Goes Awry by appleflaxen on Tuesday June 21, 2022 @10:43PM (#31831480)
That's his/her point, right?

  >  I have a Mega account and I think I've logged 
  > in less than 50 times in the entire lifetime of my account...
I also have a Mega account, and my experience is the same.

You know a million times more about cryptography than me, but it doesn't change the fact that I, personally, am not compromised by an attack that requires me to log in that many times.

Re:MEGA: Malleable Encryption Goes Awry by bawolff on Wednesday June 22, 2022 @05:51AM (#31833826)
That's not very many if "remember me" feature is broken and you use the service a lot. I suspect that there are non-malicious services i use where i have entered my password 500 times.

Even if its a lot given average user behaviour, that's an incredibly low margin for safety

Re:MEGA: Malleable Encryption Goes Awry by lultimouomo on Wednesday June 22, 2022 @08:58AM (#31835460)
If you have a personal and a school/work around on Microsoft platforms, and you use them daily, I bet you can be asked to log in 500 times in a couple of week of intense use. And each time you'll be asked if you want them to "remember you"!
Re:MEGA: Malleable Encryption Goes Awry by tptacek on Wednesday June 22, 2022 @02:09PM (#31839670)
Sure, but I mean, this whole line of discussion is sort of brain-breaking. When we reason about cryptosystems, we don't generally reach the question of "how many hundreds of times can you log in before the system permanently loses all of its security". That's not like, a figure of merit in a typical cryptosystem; the right (and ordinary) answer to that question is "practically infinite".

You've picked a sort of strange hill to die on when you find yourself arguing that a system is in practical terms secure because it's unlikely you're going to log in enough times to trip the bug that coughs up your private keys. If you have to compute the number of times you can safely log in, something has gone terribly, terribly wrong.

Re:MEGA: Malleable Encryption Goes Awry by lultimouomo on Friday June 24, 2022 @04:25AM (#31859049)
I completely argree, I was just using the chance to vent about how much I hate Microsoft logins.
Re:MEGA: Malleable Encryption Goes Awry by rootw0rm on Wednesday June 22, 2022 @12:41AM (#31832087)
I've used corporate systems which made u login every visit (multiple times a day for me, 5 days a week), I've seen government systems do it, there might be a surprising number of targets where 512 attempts is effective
Re:MEGA: Malleable Encryption Goes Awry by ASalazarMX on Wednesday June 22, 2022 @12:35PM (#31838239)
> I have a Mega account and I think I've logged in less than 50 times in the entire lifetime of my account, including when it was still controlled by Kim Dotcom.

Same experience here. I've logged in maybe once per year, if it suddenly started asking me to login every time I used it, it would be a huge red flag.

Re:MEGA: Malleable Encryption Goes Awry by sp332 on Tuesday June 21, 2022 @07:05PM (#31830127)
Mega controls the client side too, right? So when you put your password into the app, they can make 512 logins right then.
Re:MEGA: Malleable Encryption Goes Awry by meibo on Tuesday June 21, 2022 @07:25PM (#31830285)
They could also just upload the password and the key material, so in the end this is about them being able to do it in a way that isn't obvious to everyone looking at the network tab, which is the real issue being pointed out.
Re:MEGA: Malleable Encryption Goes Awry by albatruss on Tuesday June 21, 2022 @07:25PM (#31830288)
Their MEGAsync client is open source at least.
Re:MEGA: Malleable Encryption Goes Awry by projektfu on Tuesday June 21, 2022 @08:52PM (#31830823)
Are the binaries reproducibly built?
Re:MEGA: Malleable Encryption Goes Awry by pshirshov on Tuesday June 21, 2022 @08:56PM (#31830852)
Yeah, with `emerge -av` or `nix build`
Re:MEGA: Malleable Encryption Goes Awry by projektfu on Tuesday June 21, 2022 @10:12PM (#31831328)
I'm talking about the binaries offered by the Mega website. Can they be trusted as the product of the open source build?
Re:MEGA: Malleable Encryption Goes Awry by pshirshov on Wednesday June 22, 2022 @02:43PM (#31840079)
Nope, but why to use binaries if you may not?
Re:MEGA: Malleable Encryption Goes Awry by megous on Tuesday June 21, 2022 @07:30PM (#31830334)
No they don't, unless you use their website.