Slashdot Mirror


Software Developer Says Mega Master Keys Are Retrievable

hypnosec writes that software developer Michael Koziarski has released a bookmarklet "which he claims has the ability to reveal Mega users' master key. Koziarski went on to claim that Mega has the ability to grab its users' keys and use them to access their files. Dubbed MegaPWN, the tool not only reveals a user's master key, but also gives away a user's RSA private key exponent. 'MEGApwn is a bookmarklet that runs in your web browser and displays your supposedly secret MEGA master key, showing that it is not actually encrypted and can be retrieved by MEGA or anyone else with access to your computer without you knowing,' reads an explanation about the bookmarklet on its official page."

16 of 136 comments (clear)

  1. Who trusts Mega anyway by Anonymous Coward · · Score: 3, Insightful

    I don't think there are many people who would trust Mega anyway. I mean, we all pretty much feel the US (and the New Zealand) governments overreached and broke laws when they begin prosecuting Kim DotCom, but most people realize that the guy is a self-aggrandizing scam artist and charlatan. Does anyone actually trust his stuff?

    1. Re:Who trusts Mega anyway by denmarkw00t · · Score: 4, Insightful

      Does anyone actually trust his stuff?

      For sensitive material? Of course not. But, I have used Mega a number of times for legit downloads (Android ROMs, Linux, various open-source projects). Let's not forget that MegaUpload was used for non-nefarious purposes, although people who store sensitive data unencrypted on someone else's service are always taking a risk.

    2. Re:Who trusts Mega anyway by aaaaaaargh! · · Score: 5, Insightful

      the guy is a self-aggrandizing scam artist and charlatan

      However, if he wore a suit with tie and had not only fullfilled DMCA requests (which he always did) but also had proactively given away his customers data to any US authority and private copyright holders like the RIAA without any real legal basis and had additionally given money to the two leading US parties, he'd be considered quite a decent fellow in the US now. In other words, while he never did anything else than Google and thousands of other companies, including US ones today, he hasn't shown "the right attitude" and that is the main and real reason why he is being persecuted now. He doesn't act the way you are expected to act as a rich entrepreneur with a serious business. Such misbehavior is usually sanctioned. They even wondered whether they could turn an inflatable tank he had in his garden into some kind of evil plot, but didn't manage to find the right legal angle to it...

      Regarding trust ... well, at least New Zealand law cannot force you to install backdoors and lie to everyone about it, but of course you cannot trust any closed source company with data security. Encrypt on your own before storing something on Mega and you're fine.

    3. Re:Who trusts Mega anyway by glassware · · Score: 5, Funny

      I read this as "Sega Master System Keys Are Retrievable." I was sadly disappointed.

    4. Re:Who trusts Mega anyway by Tom · · Score: 4, Insightful

      he hasn't shown "the right attitude" and that is the main and real reason why he is being persecuted now.

      If you aren't a paid shill, you should change that. Your misleading and faulty argument surely qualifies, and you'd have to be an idiot to think that a multi-millionaire scam artist in the public spotlight would not have hired a PR agency to improve his online image.

      Kimble is a career criminal, simple as that. He was prosecuted and even convicted before, and by several other governments. That distinct sound you're hearing is the shattered pieces of your argument falling apart.

      If you are a large-scale career criminal, there are two paths you can go.

      One, you can fly under the radar, like the people in the famous train robberies and serial bank breaks that many of us have heard about but almost nobody can name even one of the actual people involved.

      Two, you can scale it up so much that it becomes quasi-legal by sheer scale and being-part-of-the-system, like the financial industry, the corporate corruption or the various pet-sectors of the various countries that are untouchable (Spain had a huge real estate scandal - nobody was ever convicted. Germany even has a name for the network of corporations, banks and government entities so closely connected that they all protect each other: Deutschland AG. In Greece, the shipping industry was holy for decades. In the US it is probably the military industry, and so on).

      Kimble was arrogant and self-obsessed enough to think he could reach the same place simply by having an overblown ego and being audacious.

      --
      Assorted stuff I do sometimes: Lemuria.org
    5. Re:Who trusts Mega anyway by Barefoot+Monkey · · Score: 5, Interesting

      All those other companies gave no illusion of being secure.

      Neither did Mega. They explain these very risks and others right in the FAQ and since they launched have using alternatives that do not involve trusting them. Providing a interface is a significant convenience, but you can't trust anything truly secret to a script someone else can remotely replace on a whim.

    6. Re:Who trusts Mega anyway by Barefoot+Monkey · · Score: 3, Informative

      Proof-reading fail. Sorry :(

      The missing word was "recommended". They have always recommended alternatives that do not involve trusting them. Here's an example from that same FAQ page:

      What if I don't trust you? Is it still safe for me to use MEGA?

      If you don't trust us, you cannot run any code provided by us, which precludes opening MEGA in your browser and entering your login credentials. However, due to MEGA's end-to-end encryption paradigm, you can safely use client applications written by someone you trust.

  2. of course they are retrievable by Noishe · · Score: 4, Insightful

    Once you enter your password into a website, the website can do anything that you can do.... Duh

    Yes, mega doesn't have your key stored on their servers.
    Yes, at any point while you're logged in they can change this fact, or they can just log your password, or whatever.

    Doesn't matter what the website is, you have to trust it to use it.

    How is this news?

  3. What's the big deal? by schneidafunk · · Score: 4, Insightful

    I don't get it, why is this a big deal? This just displays your local storage in your web browser.

    --
    Some people die at 25 and aren't buried until 75. -Benjamin Franklin
  4. what's odd about this? Your key is local by YesIAmAScript · · Score: 5, Informative

    That's how you want it to be. It's zero-knowledge from MEGA's point of view. You generate your own key, keep it and use it to decrypt and encrypt stuff.

    So of course if someone gets access to your computer they can get your key, it was on your computer all the time, by design.

    His assertion that MEGA can get your key is what is a bit more surprising. But if you read it, he's simply saying it's conceptually possible that MEGA could use a script on their site to grab your key and send it to them. This is of course possible, but we have no way to know whether they've done it. If the javascript can access your key to encrypt/decrypt stuff, then it is also possible it can squirrel it away somewhere.

    --
    http://lkml.org/lkml/2005/8/20/95
    1. Re:what's odd about this? Your key is local by amicusNYCL · · Score: 3, Informative

      As far as I can tell there isn't any other way to do it. If Javascript needs access to that encryption key then of course it is possible to send that key anywhere else. It sounds like there is some client-side encryption that takes place before sending files, and that encryption code presumably comes from Mega, and that encryption code uses your private key, so of course the encryption code has access to the key. How could it encrypt otherwise? The browser doesn't natively support that process, that is what would have to change in order for this to not be an issue. The promise by Mega not to store your keys is the only thing that users have, because if they are running Mega's encryption code client-side then there is nothing stopping Mega from getting your keys, or unencrypted data, or whatever else, other than their promise not to.

      NSA/FBI/local bobby want to see what you've been using Mega for? Slip in a one time bit of Javascript to a page delivered by Mega, and it's all theirs for the reading.

      Again, the onus is on Mega to stop that from happening, but they can only protect their own servers. If someone wants to intercept and decrypt your traffic and change the data to add new code (a man-in-the-middle attack), then that is still a threat. It's always going to be a threat as long as organizations like the NSA are capable of decrypting that SSL traffic.

      Otherwise, this is not an issue that has a solution with today's browser implementations. Maybe Mega can produce their own version of Firefox or a Webkit-based browser that will natively implement their encryption without exposing the keys to Javascript, but then you would have to trust that software, don't you? It's all about trust. If you don't trust Mega, then don't use it.

      --
      "Our two-party system is like a bowl of shit looking at itself in a mirror." - Lewis Black
    2. Re:what's odd about this? Your key is local by bluefoxlucid · · Score: 5, Insightful

      The issue is that it's 'conceptually possible' for Ubuntu to ship a package in the base system that uploads your keys to Canonical's servers. I can give you a script that you run on RHEL and it'll show decrypted ssh, ssl, and gpg keys (if you've entered the password). I can put a package on your system and show that RHAT could put a modified gpg that logs all your shit and passwords and everything to their server. And so on.

      This isn't a vulnerability. It's like saying it's conceptually possible for a thief to steal your car after you've put the key in the ignition.

    3. Re:what's odd about this? Your key is local by swillden · · Score: 3, Informative

      As far as I can tell there isn't any other way to do it. If Javascript needs access to that encryption key then of course it is possible to send that key anywhere else.

      At present, this is true. There's a W3C WebCrypto spec in progress (being developed by Google and Mozilla, IIRC) that will change it, though. It will not only provide native implementations of ciphers accessible from Javascript (rather than performing expensive calculations in Javascript), but will also provide a client-side key store so Javascript code can create and use keys without ever seeing their value, and hence be unable to send the values anywhere.

      I think the Javascript code would still have access to the decrypted data.

      Caveat: It's been a while since I looked at the in-progress spec. It may have changed, and I guarantee my memory is faulty in at least some respect.

      --
      Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
  5. Summary by LordLimecat · · Score: 5, Insightful

    Unless Im misreading it, this can be summarized as follows:
      * Coder has discovered that, in order to encrypt data, your computer must have access to the encryption key
      * Further, if someone has root access to your machine, they can get your encryption key.

    Wow. What a discovery.

    MEGA and anyone else with access to your computer can see this, and use it to decrypt any file you upload.

    Wait, someone with access to my computer has access to things that my computer has access to? WOW!

  6. Re:JavaScript not secure? by gl4ss · · Score: 4, Informative

    yeah something you run on your browser.. ..that gives you access to the files.. CAN GIVE YOU ACCESS TO THE FILES.

    wow what a shock! because in this case, MEGA can alter the js so that they get the keys. how this is is news I don't really get. it's just common sense.

    the real question is, are there 3rd party mega clients that are not javascript or subject to changing without notice..

    --
    world was created 5 seconds before this post as it is.
  7. Re:JavaScript not secure? by tgd · · Score: 3, Insightful

    yeah something you run on your browser.. ..that gives you access to the files.. CAN GIVE YOU ACCESS TO THE FILES.

    wow what a shock! because in this case, MEGA can alter the js so that they get the keys. how this is is news I don't really get. it's just common sense.

    the real question is, are there 3rd party mega clients that are not javascript or subject to changing without notice..

    What is common sense to anyone who understands how a service is built is not necessarily common sense to those who use it.

    So it matters.