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."

136 comments

  1. JavaScript not secure? by Anonymous Coward · · Score: 0

    Who would have thought that data stored in JavaScript could be grabbed.

    1. 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.
    2. 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.

    3. Re:JavaScript not secure? by Anonymous Coward · · Score: 0

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

      Mega released chrome app, that loads all their javascript from your disk, so you can be sure what code is exactly running:
      https://mega.co.nz/#blog_19

      Even if someone coerces mega to place backdoors in JS, your browser won't use it.

    4. Re:JavaScript not secure? by _90aT_ · · Score: 1

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

      Not if you disable auto-updates from Mega.

  2. 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 Joining+Yet+Again · · Score: 2, Interesting

      but most people realize that the guy is a self-aggrandizing scam artist and charlatan

      This. The man is just the flip side of the copyright cartel, and they're both about the same thing: getting rich by leeching off the hard work and creativity of others.

      Cue a hundred Defenders of the Faith claiming that this is well-engineered incompetence, not malice, and that a hole as wide as Uranus is actually not serious.

    2. 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.

    3. Re:Who trusts Mega anyway by sosume · · Score: 2

      At least he's not lying about himself or his intentions. If anything, he's been absurdly honest. Just look at his licence plates, or one of his bragging pictures.

    4. 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.

    5. Re:Who trusts Mega anyway by Anonymous Coward · · Score: 0

      Even those are lies.. he gets fools to cough up money after they're impressed with his stupid stories and apparent wealth that he then uses to continue funding his self-promotion. The other day I was daydreaming on a flight and it occurred to me that it's highly likely that his gumball races and #1 ranking on xbox COD could also be somehow fraudulent... bought with money in order to extend his personality cult.

      He exists by buying the attention of the next round of suckers in perpetuity.

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

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

    7. Re:Who trusts Mega anyway by wagnerrp · · Score: 2

      All those other companies gave no illusion of being secure. Hell, they often had in their own terms and services that they would be reading your email for whatever purposes they desired. Kim Dotcom claims to be offering secure, encrypted services, yet anyone with a basic understanding of computer security can tell he's just putting up a facade for the masses. That's why he cannot be trusted. He's nothing but a blowhard.

    8. Re:Who trusts Mega anyway by Anonymous Coward · · Score: 0

      Sounds like someone that got caught with a bunch of drugs, is picked up by the cops and quickly released without charges, the suddenly has this awesome deal for you.

    9. 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
    10. Re:Who trusts Mega anyway by FuzzNugget · · Score: 2

      ...and that a hole as wide as Uranus is actually not serious.

      Mine, I wouldn't worry about. Your mom's on other hand...

    11. Re:Who trusts Mega anyway by Tom · · Score: 2

      Does anyone actually trust his stuff?

      Idiots with no knowledge of history.

      Kimble ratted his partners out to the FBI when he was under investigation for a previous crime some years ago. Once a traitor, always a traitor. If you think there are no closed-doors talks between Kimble who's trying to save his neck and the government, you must be very naive indeed. And the obvious thing that Kimble can offer is - the users of Mega, of course.

      --
      Assorted stuff I do sometimes: Lemuria.org
    12. 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.

    13. 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.

    14. Re:Who trusts Mega anyway by MightyMartian · · Score: 1

      Not me. I wouldn't host anything I didn't care about on any server he had any control over, let alone something important. The guy is a crook, pure and simple.

      --
      The world's burning. Moped Jesus spotted on I50. Details at 11.
    15. Re:Who trusts Mega anyway by Alternate+Interior · · Score: 1

      Yup. Wasn't until getting into comments that I even remembered this Mega existing.

    16. Re:Who trusts Mega anyway by Anonymous Coward · · Score: 1

      Regarding trust ... well, at least New Zealand law cannot force you to install backdoors and lie to everyone about it,

      That might have been true earlier, but I think the recently passed GCSB and TICS bills now allow it. JohnKey wanted to bring NZ laws into alignment with the US and UK... But he says you can trust him, he'll only use the powers against bad people, and anyone who disagrees (like the law council and human rights commission) just doesn't understand the new laws.

    17. Re:Who trusts Mega anyway by Chelloveck · · Score: 1

      It would make as much sense that way, since neither the summary nor the article ever bother to explain what "Mega" is.

      --
      Chelloveck
      I give up on debugging. From now on, SIGSEGV is a feature.
    18. Re:Who trusts Mega anyway by Anonymous Coward · · Score: 1

      This. The man is just the flip side of the copyright cartel, and they're both about the same thing: getting rich by leeching off the hard work and creativity of others.

      I've said it before and I'll say it again. Mega is simply an Internet file hosting service. It is not Kim's fault that people use Mega to commit copyright infringement. Kim's Mega business is as legitimate as any other Internet business such as Napster, Grooveshark or eMule.

    19. Re:Who trusts Mega anyway by Anonymous Coward · · Score: 0

      Kimble was a career criminal and has served his time for it. He found a legitimate Internet niche and started a business to exploit it. He may be egotistic and audacious as always but there's no evidence to show that he has any illegitimate business.

    20. Re:Who trusts Mega anyway by Anonymous Coward · · Score: 0

      I trust Dotcom. I trust him to be a self-aggrandizing charlatan who's got an angle. Right now his angle seems to involve fighting the content industry, which is fine by me.

      But yeah, I wouldn't invest money in his companies.

    21. Re:Who trusts Mega anyway by Trogre · · Score: 1

      I'm glad I wasn't the only one...

      --
      "Nine times out of ten, starting a fire is not the best way to solve the problem." - my wife
    22. Re:Who trusts Mega anyway by Anonymous Coward · · Score: 0

      Probably because this is Slashdot, not reader's digest.

    23. Re:Who trusts Mega anyway by Tom · · Score: 1

      So how much does the PR agency pay for a comment like that?

      When someone has been a career criminal all his life, the burden of proof kind of shifts around, you know? Fool me once and all that.

      --
      Assorted stuff I do sometimes: Lemuria.org
    24. Re:Who trusts Mega anyway by Inda · · Score: 1

      I trust Mega. I trust them to store some files and serve them to anyone I provide a link to.

      Forgetting that sometimes the uploads stick on 99%, and forgetting that some files timeout at random times and restart the upload from 0%, it's a really nice place to store 46gb. The up/down speeds can't be grumbled at either.

      I couldn't give a flying shit if they are encrypted, nor do I care if they are ever deleted. I have local copies.

      What am I suppoosed to be trusting again?

      Kim DotCom gives me a large amount of free storage, with no nagging about upgrading. I'd buy him a beer if I met him.

      --
      This post contains benzene, nitrosamines, formaldehyde and hydrogen cyanide.
    25. Re:Who trusts Mega anyway by danaris · · Score: 1

      In the US it is probably the military industry, and so on

      Nah, over here it's the financial services industry.

      Y'know, the ones who just recently broke the whole system for everyone in the western world, and then got the government to pay them to make sure they didn't stop doing the same things that led to the crisis.

      Dan Aris

      --
      Fun. Free. Online. RPG. BattleMaster.
  3. End To End by Anonymous Coward · · Score: 0

    End to end encryption or it didn't happen.

  4. 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?

    1. Re:of course they are retrievable by Anonymous Coward · · Score: 0

      It's the same as any piece of software really. If the developer just decides to push down an update that logs your keys, you're fucked. No surprise here. People need to learn how security works before they start screaming shit like this.

    2. Re:of course they are retrievable by Anonymous Coward · · Score: 2, Interesting

      not to troll but this may be a new tactic by Big Media or maybe the NSA to try and cripple Mega and others, I find it odd, (tho I do not make an conspiracy out of it) that the NSA is attacking owners of sites that refuse to give up there encryption, and the owners/creators are shutting there sites down.

      It is possible and wouldn't be surprised to see someone or some sinister force at work here. But I am not sure if the creator of the exploit is supporting Mega, and trying to improve its security or trying to discredit the site.

    3. Re:of course they are retrievable by Joining+Yet+Again · · Score: 2

      "I don't know all the software, firmware and hardware functionality perfectly, therefore I throw my arms in the air and give up."

      Security is often as much about trust as anything. It is important to expose, more than anything else, something which could suggest a breach of trust.

    4. Re: of course they are retrievable by Anonymous Coward · · Score: 0

      This.

      Also the cheap attacks on his character.

      Someone's getting nervous!

    5. Re:of course they are retrievable by Score+Whore · · Score: 2

      If the developer just decides to push down an update that logs your keys, you're fucked.

      Well, there's your problem... Why are you letting people you don't know install and run software on your computer?

      Fundamentally though, like all security, you need to make a cost benefit analysis. If you have data of a life and death nature, you shouldn't be entrusting it to anyone you can't kill. Or a little less extreme, you shouldn't be putting information in the hands of someone you can't successfully sue. That is, if you have a $50 liability limit plus $200 worth of time to "clean up" someone using your credit card without authorization, you shouldn't share that card number with anyone who wouldn't be willing to pay the $250 if they leak your card number. In the event that you don't expect to be able to sue someone, you shouldn't entrust them with any important or private data.

      Another thing to consider, if your vendor (of your computer, your OS, your phone) includes a liability limitation in their agreement with you then they don't believe their shit is secure. If they don't believe that their product is secure, why should you?

  5. 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
    1. Re: What's the big deal? by Anonymous Coward · · Score: 1, Interesting

      i fixed this problem on my project using javascript closures. your private keys are decrypted with your password. password is never uploaded to the server. you can see that by looking at the post requests. the decrypted key is stored in a local variable for activities the rest of your session. closures are secure. no program outside the function scope can access the keys or password. its tricky to get right so maybe Mega can fix it soon.

    2. Re:What's the big deal? by denmarkw00t · · Score: 2

      Yeah, I saw this tool was already built in to Chrome, so I guess I've had the hack for a while - even before this guy released it!

    3. Re: What's the big deal? by Anonymous Coward · · Score: 1

      Still everyone has to trust the site to not deploy malicious javascript. That's why this concept is fucked up ...

    4. Re: What's the big deal? by vux984 · · Score: 1

      i fixed this problem on my project using javascript closures.

      How does that fix anything? Every time I visit your project, I must rely on your java script. The fact that it is correct today does nothing for me tomorrow.

      A secure solution requires that there is nothing you can do to get my key.

      You could simply change the java script on your site tomorrow, and slurp the key next time I visit.

      Essentially one has to decouple the client from the service, so that I use a client YOU DON'T CONTROL. That is the only way I can secure the key from you.

      In terms of a web service, all I can think of is to have your java script is audited by me or someone i designate and then it's signed BY ME (since I can't trust a 3rd party signer won't be NSA-coerced into signing your malware updates), and then you aren't allowed to change it, without it being re-audited by me or someone i designate.

    5. Re: What's the big deal? by Anonymous Coward · · Score: 0

      I just want to mention that (speaking of Firefox) Firebug (and therefore any plugin) can easily access variables in closures.

    6. Re: What's the big deal? by psydeshow · · Score: 1

      A real fix to this problem would let me download the js and html and whatnot once, as a signed archive, and use your application from a file:// url on my computer.

      In other words, the only thing that would come from a server from session to session is the encrypted data file. No application code. No HTML. Just the data.

      It's a lot more like a traditional application, except that it runs in the browser and the source code is right there for me to look at.

  6. 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 Joining+Yet+Again · · Score: 2

      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.

      And you think this isn't serious? Every vulnerability is "conceptually possible" until it's implemented. 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.

      Perhaps you don't even understand what Mega has been promising up to now.

    2. Re:what's odd about this? Your key is local by Anonymous Coward · · Score: 0

      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.

      I'm sure the NSA backup service is involved somehow.

    3. Re:what's odd about this? Your key is local by OverlordQ · · Score: 1

      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.

      Or at any time Mega can sneak in a bit of extra javascript to send them your key too. How many people actually audit the javascript every time they visit the page. It's the main reason why client-side encryption is bullshit. It just adds extra vectors of attack, rather than makes things more secure.

      --
      Your hair look like poop, Bob! - Wanker.
    4. Re:what's odd about this? Your key is local by sjames · · Score: 1

      I it can display it to you, it can post it to the server.

    5. 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
    6. 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.

    7. Re:what's odd about this? Your key is local by Joining+Yet+Again · · Score: 1

      By using a proper browser plugin rather than a crappy Javascript implementation, perhaps?

      Yes, it is all about trust: companies ask you to trust them, then their reputation is built or broken. Evidence for either is welcome.

    8. Re:what's odd about this? Your key is local by girlintraining · · Score: 1

      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.

      It is likely that this was an intentional design flaw, introduced at the behest of one or more government agencies (I didn't say which government, and you shouldn't assume!). You'd be surprised what threats of torture, destitution, or prison, can do -- especially to someone like kim dot com, who is used to a higher standard of living. You can't really threaten a poor person; Government long ago learned to forget that strategy and instead go after their family and/or lover. But a rich person? oooh, so very many juicy blackmail possibilities.

      It's very easy to create encrypted and secure file storage / cloud storage. Most modern computers have a dedicated hardware AES implimentation that'll generate and store keys, and will do encryption/decryption on the fly. I believe there's even java methods out there to access these hardware functions. You can also 'lock' the key using your TPM so it cannot be accessed directly -- in effect, you simply say "Load key 0x0F and attach it to stream 0x01"... and it just craps out the decrypted data.

      It goes without saying then, that the decision not to do this was not an accidental oversight.

      --
      #fuckbeta #iamslashdot #dicemustdie
    9. 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.
    10. Re: what's odd about this? Your key is local by Anonymous Coward · · Score: 0

      And you trust this hardware AES implementation? Why?

    11. Re:what's odd about this? Your key is local by Anonymous Coward · · Score: 1

      Except who owns the TPM MASTER KEY?

      TPM is not and never will be a secure method of key storage. It's just another form of Key Escrow.

    12. Re:what's odd about this? Your key is local by DarkOx · · Score: 2

      When the method is javascript in the browser; sourced from the very same service you are sending the encrypted data off to than yes; client side encryption is BS and probably offers so much attack surface it reduces security.

      The fundamental problem here is you are running 'untrusted code' to handle sensitive information. There is a solution here. A small simple OSS program easily audited. Probably needs to be real real basic command line utility using few if any external libraries so people can post the md5sums of the output generated on their favorite platform by their favorite compiler and linker; that way everyone can compare, notes.

      This would be too difficulte for 99% of Mega's users to deal with though.

      --
      Repeal the 17th Amendment TODAY! Also Please Read http://www.gnu.org/philosophy/right-to-read.html
    13. Re:what's odd about this? Your key is local by OverlordQ · · Score: 1

      Yes, or an actual browser plugin/extension which will let you do proper sandboxing and code signing.

      --
      Your hair look like poop, Bob! - Wanker.
    14. Re:what's odd about this? Your key is local by BitZtream · · Score: 1

      There's a W3C WebCrypto spec in progress (being developed by Google and Mozilla, IIRC

      So its being implemented by the two vendors who slip in silent updates faster than my sister spreads her herpes? This really isn't any better when they can just silently send you an update to relay your keys off to them. You've been trained to accept their updates without thinking about it, good job, same problem.

      --
      Persistent Volume manager for Kubernetes - https://github.com/dwimsey/openshift-pvmanager
    15. Re:what's odd about this? Your key is local by flux · · Score: 2

      Just like your OS vendor can slip in an update that sends all your keys to them. (As Shuttleworth said, they have root.) You basically need to trust someone, as no one person is able to audit everything people typically use daily.

    16. Re:what's odd about this? Your key is local by heypete · · Score: 1

      That's irrelevant in this particular situation: the TPM is merely being to securely store a key and use that key -- entirely within the TPM -- to encrypt or decrypt data. The TPM could (and likely does) store other keys that aren't being used for this particular task, but that doesn't matter in this scenario. Although TPMs can be used for various purposes, in this case it'd be used like cryptographic smartcard or HSM.

      Are you aware of any way of retrieving a private key stored on a TPM by any means other than physically taking it apart and probing the internal bits? If not, why not use the TPM as a secure key storage mechanism?

    17. Re:what's odd about this? Your key is local by psydeshow · · Score: 1

      Or the code comes from a known-good set of files on your local drive, and only the encrypted data is transferred to and from the cloud.

      HTML + CSS + JavaScript files == open source. As long as you load them using a file:// URL you can know what exactly you're getting.

      This is preferable to an extension which is a) compiled and b) could access every page my browser visits.

    18. Re:what's odd about this? Your key is local by DarkOx · · Score: 1

      I respectfully disagree. This almost needs to be a pure C implementation and like I said use few or no external libraries. Java script and HTML renders are big beasts. You can't possibly audit them as an end user. Yea the C compiler is to big and complex for most people to practically audit as well; hence what I said about posting md5sums, so you have some verification if imperfect that your compiler is producing output that really corresponds to the input code you just audited.

      --
      Repeal the 17th Amendment TODAY! Also Please Read http://www.gnu.org/philosophy/right-to-read.html
  7. 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!

    1. Re:Summary by Joining+Yet+Again · · Score: 0

      Only if you define "someone with access to my computer" to include "anyone who runs a web server I visit".

    2. Re:Summary by Laxori666 · · Score: 2

      Well. The whole point of Mega was that not even Mega would know what you are storing on their servers. "The end to end encryption means that Mega pretty much can't narc on you, no matter how much pressure it's under. It won't know what you're storing on its servers, by design." gizmodo. Thus there's a reasonable expectation that Mega cannot find out what you are storing on its servers. Now it turns out there is a ridiculously easy way for Mega to find out what you're storing there: all Mega has to do is run some JavaScript on your computer. Which it does anyway.

      I suppose either way you'd have to trust that the website is only uploading encrypted stuff to Mega and not the file itself. But now it turns out even if they're doing that, they can still decrypt your stuff. And also any website on the internet.

      Well I suppose that the JS client could also have just sent the keys it generated to Mega as soon as it generated them.

      Ok, basically there's no way this security model can work. I just feel a bit foolish now. But I'm glad TFA made me think about it for the two minutes it took to figure out that there's no real expectation of security here. Other articles (like that gizmodo one) painted quite the misleading picture.

    3. Re:Summary by LordLimecat · · Score: 1

      Pretty sure such an attack would qualify as a cross-site scripting vulnerability.

    4. Re:Summary by JesseMcDonald · · Score: 1

      Only if you define "someone with access to my computer" to include "anyone who runs a web server I visit".

      The article doesn't say that any web site can access the key, just the browser itself (via bookmarklets or third-party extensions) and Mega. Both of which are obvious.

      The browser prevents sites from accessing other sites' local data. It would be interesting if they managed to find a way around that protection, but they didn't. The system is working as designed.

      --
      "The state is that great fiction by which everyone tries to live at the expense of everyone else." - Bastiat
    5. Re:Summary by Anonymous Coward · · Score: 0

      Yes, yes, of course, EVERYONE knew that. Except all those people who bought (and probably still buy) into these morons "WE CAN'T EVEN KNOW WHAT YOU'RE STORING" crap. Those didn't know, or care, or connect the dots, or have the technical expertise, or &c &c &c.

      This exploit is an obvious one, of course, but it's one that needed to be made, because nothing short of a publicly available easy to use exploit will ever cut through any companies bullshit about security. Often, not even that.

    6. Re:Summary by Arker · · Score: 1

      "Only if you define "someone with access to my computer" to include "anyone who runs a web server I visit"."

      That definition works, if you are foolish enough to enable javascript.

      --
      =-=-=-=-=-=-=-=-=-=-=-=-=-=-
      Friends don't let friends enable ecmascript.
    7. Re:Summary by Anonymous Coward · · Score: 0

      There's a fundamental problem in all of this generation's encrypted storage: the server should never know the key, but the software now used to transport the file to the client is also the decryption software and is made by the company operating the server, so you have to trust that they aren't just phoning home your key and reading your precious files.

      A secure solution would be open-source (do you even know what method Mega uses for transport?) and separate the transport and encryption/decryption steps into different executables. This would be a pain in the ass without some third-party integration. On the other hand, has anyone ever tried to mount an encrypted file system (like cryptofs) on Dropbox? That would help with the separation some (but does Dropbox still have some sort of root access?).

    8. Re:Summary by amicusNYCL · · Score: 1

      Indeed. If you want to store encrypted files, then encrypt them locally before uploading them.

      --
      "Our two-party system is like a bowl of shit looking at itself in a mirror." - Lewis Black
    9. Re:Summary by LordLimecat · · Score: 1

      And foolish enough to run a browser which doesnt prevent cross-site scripting attacks.

      Hey, if your browser allows random websites to pull all of your cookies, your login sessions could be compromised! Except, they do restrict that.

    10. Re:Summary by LordLimecat · · Score: 1

      That is what is happening here. Just from reading the article, I can see that the key is using local browser storage, which is used to encrypt the data and upload to Mega. Mega is NOT doing the encryption (thats the entire point of doing it in JavaScript).

    11. Re:Summary by bluefoxlucid · · Score: 1

      Yes, basically there's no way this security model works. Their promise is that they give you client side software (java script), the software does all the magic on your end, then gives them impenetrable black boxes. That's it.

      Microsoft EFS promises that Windows doesn't upload your encryption keys to microsoft.com. Apple's encryption tools, same. PGP and GPG, same. We really really promise we don't send your private keys to home base, then add back doors to your computer and come snooping your filez.

    12. Re:Summary by bluefoxlucid · · Score: 1

      Mega uses an open-source java script thing, you can check the source. It's not free, but you can see the source.

      TPM is supposed to cover this--if you can audit the TPM design and say that this model TPM is secure, and can guarantee that the TPM in there is of that model and not another model. We can narrow the threats down to hardware or software--an operating system service that manages keys, for example, and must be communicated with to act. That means that whoever wrote the service could be a bad guy--instead of DropBox and Mega supplying an encryption program that uses your keys, DropBox and Mega would access an API that says "Create a key" "Use key XXX to encrypt/decrypt this file" in a program supplied by someone else. DropBox and Mega couldn't be malicious after the fact: if they used that service for a key store, they couldn't one day transparently extract keys; and a second program could check the key store and verify that retrieved data is in fact stored with that key.

      That all gets you down to a single vendor (hardware TPM or software service) who might be evil.

    13. Re:Summary by Joining+Yet+Again · · Score: 1

      Eh, you could easily write a plugin which doesn't allow any Javascript to access its private data. It might involve platform+browser-specific implementations, but doing things right isn't always easy.

    14. Re:Summary by LordLimecat · · Score: 1

      There's a fundamental problem in all of this generation's encrypted storage: the server should never know the key, but the software now used to transport the file to the client is also the decryption software and is made by the company operating the server, so you have to trust that they aren't just phoning home your key and reading your precious files.

      Thats true, but I believe that horse has already been beaten to death.

      The claim HERE is that anyone can grab the key, which is just a stupid point to make: Its only true in situations where all security bets are off anyways (ie, youve already been rooted).

    15. Re:Summary by Arker · · Score: 1

      I dont allow cross-site scripting without whitelisting myself, but it's important to realize this is a compromise that reduces vulnerabilities but does not eliminate them. In this case, it's NOT cross-site scripting we are worried about.

      --
      =-=-=-=-=-=-=-=-=-=-=-=-=-=-
      Friends don't let friends enable ecmascript.
    16. Re:Summary by Hatta · · Score: 1

      Just from reading the article, I can see that the key is using local browser storage

      Which is about as secure as storing the key in /var/www.

      --
      Give me Classic Slashdot or give me death!
    17. Re:Summary by amicusNYCL · · Score: 1

      What I'm saying is that if you don't want your files to be seen, then you encrypt them outside of the browser before uploading them. If you're encrypting them in the browser then that's a vulnerability. The browser can encrypt the already-encrypted file if it wants to, if anyone decrypts it they're just going to get another encrypted file back.

      --
      "Our two-party system is like a bowl of shit looking at itself in a mirror." - Lewis Black
    18. Re:Summary by Anonymous Coward · · Score: 0

      I believe mega uses an asymetic key system so you don't need access to the PRIVATE key in order to encrypt data. Basically kim did a shoddy job as usual and may even be collecting people's private keys as part of a plot for his next round of self promotion. I'm sure he could find a new round of suckers who take him seriously if he claimed he was in touch with a high highly elite group of hackers who were leaking confidential information evidenced by embarrassing private data he released. He exists by constantly staying in the spotlight.

      Anything he can ever offer as evidence of his specialness.

    19. Re:Summary by JesseMcDonald · · Score: 1

      I don't disagree. My own preference would be an open-source native client with no ties to the browser, something stable which can be audited and won't be replaced every time Mega updates their web site. However, the existing system isn't exactly handing the key out to every web site you visit, just the components which are expected to have access to it. It's about as secure as can be expected of a plain web app.

      --
      "The state is that great fiction by which everyone tries to live at the expense of everyone else." - Bastiat
    20. Re:Summary by wagnerrp · · Score: 1

      The Mega site runs javascript. If you do not enable javascript, you cannot use Mega. Of course in that scenario, this whole discussion is moot.

    21. Re: Summary by Anonymous Coward · · Score: 0

      How do you audit a deployed TPM chip which is soldered to the motherboard?

      Querying the chip itself? Hah.
      Relying on a fancy diploma with a hologram? Hah.
      Reputation of the designers? Hah.

    22. Re:Summary by Arker · · Score: 1

      "If you do not enable javascript, you cannot use Mega."

      And that is indeed my point. If it wont work when you turn javascript off, it isnt a webpage, and it definitely cannot be trusted.

      --
      =-=-=-=-=-=-=-=-=-=-=-=-=-=-
      Friends don't let friends enable ecmascript.
    23. Re:Summary by Anonymous Coward · · Score: 0

      It might involve...

      So you do not know how to do it, but you know that it is easy?

      Or is it hard? Or have you made up your mind?

      ...you could easily write...

      ...but doing things right isn't always easy

      Do you have any idea what you are actually talking about?

    24. Re:Summary by Joining+Yet+Again · · Score: 1

      Do you have any idea what you are actually talking about?

      One thing that we can be sure of is that I know how to use the subjunctive mood, while you've probably not even heard of it.

  8. Setup? by Anonymous Coward · · Score: 0

    So, the gnome-underwear schematic for Kim Dotcom:

    1) Operate MegaVideo etc.
    2) Get busted by massive international intel/police operation.
    3) ???
    4) Start new Mega supposedly-über-safe filesharing system, taking advantage of your new anti-establishment credibility that you earned in step (2) to convince everyone that you're fighting for privacy against the incursions of the Man.
    5) Compromise all the accounts on Mega.

    1. Re:Setup? by LocalH · · Score: 1

      I got your 3:

      3) Call them out on their bullshit tactics and techniques

      --
      FC Closer
  9. Mega ... what? by Anonymous Coward · · Score: 0

    Not relevant. Not because it isn't timely, but because mega hasn't been important since ... megaupload.

  10. Great summary by Anonymous Coward · · Score: 0

    Mega is? A bookmarklet is? This summary reads as gibberish to me.

    1. Re:Great summary by Russ1642 · · Score: 1

      What the hell is mega, other than a prefix?

    2. Re:Great summary by interval1066 · · Score: 1

      Other people will comment, but just to run over the carcass in my new LandRover s'more; Mega is Kim Dotcom's new file storage site.

      --
      Python: 'And then suddenly you have a language which says "we're all stuck with whatever the whiniest coder wants".'
    3. Re:Great summary by cbhacking · · Score: 1

      The bright thing in front of you is called a computer monitor. It displays information from your computer. Your computer is a machine which can execute instructions, called "programs", to compute or manipulate data. The output of these programs is typically displayed on the monitor. The inputs to these programs, and most of the programs themselves, come from a variety of sources outside of your computer. These sources include yourself, other computers which your computer is connected to, and data storage devices which can be written to by one computer, moved to your computer, and then read from. Let's start with the first source, yourself. You interact with the computer via various mechanisms, typically called "input devices". The most common input devices are the mouse (usually fits in one hand, has a few buttons on one end) and the keyboard (typically placed directly in front of you, it is wide and has many buttons, most of which are labeled with letters or numbers).

      ... I could go on like this for a week without getting to bookmarklets, much less Mega.co.nz. You're on the Internet. Try acting like it (the "my web browser can access a search engine" part, not the "I am a blithering idiot, and need to share that fact with anybody who can read my drivel" part). I'd give you step by step instructions, but we haven't even gotten to the concept of the mouse controlling a little arrow (called the "pointer") on the screen (the stuff displayed by the monitor) yet; working all the way up to telling you how to perform a web search is well beyond the scope of this post.

      --
      There's no place I could be, since I've found Serenity...
    4. Re:Great summary by wagnerrp · · Score: 1

      "Mega" is a file sharing site, started in place of the now-defunct MegaUpload, purported to be secure against even themselves. This article is to show that there is exactly zero effective security against data breaches by Mega.

      A "bookmarklet" is a bookmark that rather than storing a URL, stores a snippet of javascript, which gets run in-place on the currently loaded web page, altering it in some fashion. Think GreaseMonkey, but without the framework to automatically run the scripts on certain sites.

  11. Federal Reserve creating magnittude inflation? by JoeyRox · · Score: 1

    Two back-to-back /. articles with the superlative "Mega" in the title. The next scientific discovery will need to be ÃoeberMega to reach the front page of /.

    1. Re:Federal Reserve creating magnittude inflation? by 93+Escort+Wagon · · Score: 1

      Did you hear about the Mega Man reboot?

      --
      #DeleteChrome
    2. Re:Federal Reserve creating magnittude inflation? by Russ1642 · · Score: 1

      I find it extremely annoying too.

  12. Problem is dedupe by onyxruby · · Score: 1

    The problem with storing data in the cloud with encryption from the providers standpoint is that you can't use dedupe on it. Dedupe can make an extremely large difference in the amount of storage that you have to buy and run. From an operational costs standpoint the difference between running a data repository with and without dedupe could easily be the difference between running at a profit or a loss.

    The service provider has a very strong financial incentive to use dedupe technology. The problem is that there is no way to run dedupe on crypto without having the key and being susceptible to having your data be accessed by third parties. If you don't have the key than you can honestly say that you have no idea what is in a users data set or ability to decrypt it, but you then lose the ability to dedupe the data and save a fortune on operational costs.

    In a nutshell what you really need is a cloud provider that offers dedupe free storage. Their costs (read your costs) would be higher to offer this of course, but for many people that's more than reasonable when your asking them to incur additional expenses to actually keep your data private. I can't speak for Mega of course, but the dedupe question is one that could nail this down one way or another.

    1. Re:Problem is dedupe by flux · · Score: 1

      There is a way to do dedup without having the key.

      For example: the client takes an SHA256 of the data, then encrypts the data it with the lowest 128 bits of the SHA1, uploads the encrypted data to the server saying "this data has id ". The lowest 128 bits are then encrypted with the client key and uploaded as well. This way another party with the possession of the same data gets the server to merge their data (but the key still keeps hidden from the server). Servers makes an SHA1 sum of the encrypted data so that clients can quickly check if the data they are deduping is properly stored to dwarf data integrity attacks.

      Not sure if this was the way Mega does it but it was something pretty close to it.

  13. All backup sites have this problem by Anonymous Coward · · Score: 1

    I worked for a company that wanted to offer secure cloud backup. A crucial requirement was that the company would never have the encryption key, and we went to significant lengths to do that. But the users wanted a way to download their files from the web. Well, how were we supposed to send the user a decrypted file if we didn't have the decryption key? Solution: The user must enter the key into the web app, then the server decrypts the file and sends it to them. So now, in theory, the company could simply store your key.

    Whoops!

    Ultimately, there really is no solution here other than to encrypt the files yourself. Whenever something is "secure" you have to ask "secure from whom?"

  14. Obvious by TheSpoom · · Score: 2

    So this is obvious to anyone with knowledge of encryption. I believe Mega's claim is that because the encryption is done on the client side, they don't know the key. This could be true, but you still have to take their word for it.

    But even though it's obvious, it's something to consider. Mega claims that they could not decrypt your files. This is demonstrably false. So what's to stop the government from serving them with a National Security Letter that forces them to add code to the login process, logging all keys upon login, without any advance warning to their customers?

    There's essentially no way to trust a third party on the internet now without an alternate, reliable channel of communication to exchange keys in the first place.

    --
    It's better to vote for what you want and not get it than to vote for what you don't want and get it.
    - E. Debs
    1. Re:Obvious by PRMan · · Score: 1

      So what's to stop the government from serving them with a National Security Letter

      He's not in the USA and never has been?

      --
      Peter predicted that you would "deliberately forget" creation 2000 years ago...
    2. Re:Obvious by Terrasque · · Score: 2

      > Mega claims that they could not decrypt your files. This is demonstrably false.

      Not quite.. It requires all these things to happen:

      1. Mega gets a reason to get your key (LEA for example)
      2. Mega adds new JS just for you
      3. You use the web interface
      4. You log in
      5. You don't notice the new code (Mega already have a chrome browser extension that would stop this by running its own code instead of the server's code iirc)

      So.. They have to start looking for your key, you have to use the *web interface*, AFTER they decided that, and you have to run the new code.

      None of these are a given. You can upload on an account, and then never log in again. Or use a non-web client (is for android and windows, at least). Or use a browser with the extension.

      --
      It's The Golden Rule: "He who has the gold makes the rules."
  15. So what's a "mega master" key anyway? by Anonymous Coward · · Score: 0

    It might be helpful if you told your readers what a "mega master" key is so they know what it is you're so worried about. Googling Mega Master turns up a company in South Africa that sells heating equipment, a transportation company in Houston, TX, an online radio station, but nothing seems relevant.

    1. Re:So what's a "mega master" key anyway? by Anonymous Coward · · Score: 0

      I understand when people don't RTFA, but you didn't even RTFS! It should be abundantly clear that it's referring to the user's master key to the Mega service.

    2. Re:So what's a "mega master" key anyway? by Anonymous Coward · · Score: 0

      Ha, funny. :) But that doesn't really help if someone doesn't know what "mega" means in this context does it? Mega is such a common word, it's unlikely someone could discover the specific meaning referred to this in this article by using Google. Is it a compromise of security at the MEGA millions lottery service? A problem with the Molecular Evolutionary Genetics Analysis (MEGA) tools, the MEGA android app, the Arduino MEGA, etc. Mega is not a unique term; it's used in a lot of different applications, many of which involve security and encryption. The context of a three sentence article is likely not enough to tell anyone who doesn't already know what's being talked about. A decent article would have provided an explanation of what the "mega service" is and maybe even provided a link to the service or a wikipedia site with more information about it.

    3. Re:So what's a "mega master" key anyway? by interval1066 · · Score: 1

      Its fucking Kim Dotcom's new site. If you don't know what "Mega" means in this context you don't need to know.

      --
      Python: 'And then suddenly you have a language which says "we're all stuck with whatever the whiniest coder wants".'
    4. Re:So what's a "mega master" key anyway? by Anonymous Coward · · Score: 0

      Slashdot has always been bad about providing simple contextual and background information on stories like this. For anyone else wondering, "Mega" is a cloud based file sharing service located in Auckland, New Zealand. and the URL is https://mega.co.nz/ As the previous poster notes, if you don't already know what it is, you probably don't use it and can ignore the story.

  16. Just look at his house.... by Anonymous Coward · · Score: 0, Funny

    If he was found in a dingy little basement with row upon row of servers. If he was still named (whatever he was called before dotcom) because he was too poor to afford the renaming fees, THEN I might distrust him a little less.

    But honestly anyone with that name or house is pretty obviously trying to become part of the 1 percent, not take them down. (Or at least not without taking over their position.)

    1. Re:Just look at his house.... by Anonymous Coward · · Score: 1

      Oh noes, the pestilent scourges, the one percent!!!!

    2. Re:Just look at his house.... by Em+Adespoton · · Score: 1

      If he was found in a dingy little basement with row upon row of servers. If he was still named (whatever he was called before dotcom) because he was too poor to afford the renaming fees, THEN I might distrust him a little less.

      But honestly anyone with that name or house is pretty obviously trying to become part of the 1 percent, not take them down. (Or at least not without taking over their position.)

      That's an unfair attack on Kim! He's not trying to become part of th 1%; he's obviously attempting to start up an alternate 0.1%....

  17. Fuck it by ciderbrew · · Score: 0

    my luggage number is 742. One less thing to worry about.

    1. Re:Fuck it by Anonymous Coward · · Score: 0

      Is that a `Mega Master Luggage' perhaps?

  18. is it serious? More how serious are you. by YesIAmAScript · · Score: 1

    It's not a question as to whether it's serious. It was always the case and could be assumed to be the case. If the JavaScript can get to your key to use it to encrypt/decrypt, it can also possibly upload. It's part-and-parcel of the design.

    I pointed this out when MEGA was first announced. There always is the possibility of a system squirreling away your keys. You cannot design it out in software. The software reconstructs your key at some point, you then have to trust it discards after using it only for the use you requested it be used for.

    I think the problem may be that you (and others) don't really understand what MEGA can promise and what they can actually deliver.

    Anyway, you've now entered the realm of security paranoia. The only way to survive in this area is to review all the code you are going to put on your machine and to compile it yourself because if you don't, you don't know the delivered object matches the sources you reviewed. And don't forget to review all the code in the compiler(s) or interpreter(s) in play, because you verify they aren't inserting backdoors too.

    After you get through all that, you only have to worry about whether your hardware (CPU) is inserting backdoors. There's no way to prove the CPU is actually executing the object code according to the spec unless you review every transistor in the CPU.

    --
    http://lkml.org/lkml/2005/8/20/95
  19. Yep, exactly .... by King_TJ · · Score: 1

    I'd agree that this is not really a vulnerability in the traditional sense.... but under the circumstances, Mega should (IMO) do more to convince customers the data they store there isn't going to be viewed by any 3rd. parties.

    Ultimately, I suppose a custom browser plug-in could be written which would divulge your secret personal key, too. But I'd rather see a less trivial process to upload a user's key than some basic javascript making it possible. (Otherwise, it's too easy to trick a user into visiting what he/she thinks is a landing page for Mega, but is actually a site designed to capture keys.)

  20. Wrong. Mega is doing it. by cbhacking · · Score: 2

    If you want to store encrypted files, then [you must] encrypt them locally before uploading them.

    Emphasis and clarification added. The problem isn't that the files aren't getting encrypted before upload, it's that *you* aren't doing it. Your browser, executing JS code from mega.co.nz, is doing it. You aren't even running the encryption program yourself; it's all automatic. You are handing Mega an un-encrypted file, and trusting them to securely encrypt it against themselves. Does this sound stupid yet? Let me be a little clearer: what does it matter whose actual CPU executes the crypto code, when Mega owns (and can change at any time) that code?

    While Mega's approach is very convenient, it also throws all security guarantees out the window. From the user's perspective, they are giving an untrusted site ("untrusted" here is used in the security sense, as in "we are not absolutely sure that this site will not attempt to rat us out, so we are never going to let it see the unencrypted data") access to... unencrypted data. See the problem here? Yes, the version of the site's JS that you downloaded on this visit probably doesn't contain anything that leaks your decryption key to Mega, but there's no guarantee of that unless you audited the code yourself. Even then, it could be different next time...

    Let me reiterate those points one more time:
    1) You are handing Mega access to your plain-text data. It doesn't matter whose CPU modifies the data; Mega controls the code that runs on the CPU.
    2) Because of item #1, all of Mega's guarantees are bullshit. The next time you visit their site, they could steal your keys and decrypt all your data; you can't stop them.
    3) The only way to do this securely is, as amicusNYCL points out, encrypt them yourself. That means *not* using Mega's code, or the code of anybody else you are attempting to encrypt *against*.

    --
    There's no place I could be, since I've found Serenity...
    1. Re:Wrong. Mega is doing it. by Anonymous Coward · · Score: 0

      Let me reiterate those points one more time:
      1) You are handing Mega access to your plain-text data. It doesn't matter whose CPU modifies the data; Mega controls the code that runs on the CPU.
      2) Because of item #1, all of Mega's guarantees are bullshit. The next time you visit their site, they could steal your keys and decrypt all your data; you can't stop them.
      3) The only way to do this securely is, as amicusNYCL points out, encrypt them yourself. That means *not* using Mega's code, or the code of anybody else you are attempting to encrypt *against*.

      I believe the only point of client side encryption is for Mega to be able to claim that they can't access the data thus protecting them self, not their users. This script shows for everyone that this claim is invalid, which I am sure all major TLA-agencies already knew.

      Captcha: hooked

  21. Wow... by interval1066 · · Score: 1

    ...thanks for the huge back door up my ass, Kim.

    --
    Python: 'And then suddenly you have a language which says "we're all stuck with whatever the whiniest coder wants".'
  22. I cannot be the only one by ArcadeMan · · Score: 2

    I read the title as "Software developer says Sega Master keys are retrievable".

    1. Re:I cannot be the only one by CaseCrash · · Score: 1

      I was really excited to read something about the Sega Master System and was bummed out when I realized my mistake.

      --
      No, that link you posted to a web comic we've all seen a hundred times is not "obligatory."
  23. That's why by santosh.k83 · · Score: 1

    All the files I store on the Cloud are encrypted locally on my machine by GPG before being uploaded to Google Drive, Mega or whatever. Now it is possible that a backdoor/exploit of my OS's code or GPG's code or hardware could leak my keys, but that's significantly more difficult to accomplish than simply changing a few lines of JavaScript the next time my browser pulls down the uploader's page.

  24. christopher ``ambient empire'' abad == lame by Anonymous Coward · · Score: 0

    http://redd.it/1lnun3

    I killed christopher 'aempirei' abad with my 5" dick

    Cowabunga, dude!

    And now you're going to die wearing that stupid little hat. How does it feel!?

    You got caught with the seat of your pants flying down and now everyone laughs at your little picopenis on a daily basis.

    Microchipping a fellow hacker just because you can't sniff out your own? Hilariously inept.

    Throwing a well-known, contributing veteran of the hack/trollscene into a mental institution just because you had a hangover and forgot to take your klonopin? Over the top.

    Having a wanton disregard for the history of the internet, the hackscene, trollscene and everything about humanity in general? Get a clue. Your holier-than-thou attitude can screw back off to the 1980's.

    Yes, folks, christopher 'ambient empire' abad has been bitchtagging and torturing anyone that walks by him just because, well, "I feel like it!"

    Yes, folks, christopher 'ambient empire' abad fails to understand the first rule of the U.S. system: you can always just buy people off with cash.
    '
    We've been talking to your friends, coworkers and they've been telling us what a lazy, unappreciative little shit you are. Not to mention a sociopath of the lowest order.

    You won the birth lottery and coasted your way to the top of the U.S. system on a skateboard. Now it's going to be a fun ride when we push your little deck the way back down.

    You are nothing but a barking little dog who got caught sneaking up the backstairs into the big people's club and now you're being thrown out the window.

    Your last thought as you realize nothing of value will be lost when your head cracks on the floor of a 12x12 supermax prison cell: "I like to copy from my 1337 civics textbook."

    Sayanora, sucker!

    Malaclypse the Younger

    http://pastie.org/8295259

  25. people stop complaining already by Anonymous Coward · · Score: 0

    they have developer documentation, and a c++ sdk as source code
    https://mega.co.nz/sdk.zip
    https://mega.co.nz/#dev

    now stop posting and make a client!

  26. fnord by jdimpson · · Score: 1

    The first time I read the headline it said "Software Developer says MegaMan Master keys are Retrievable" so I thought it in regards to was some kind of ROM DRM. Second time I read it, it said "Software Developer says Sega Mega Keys are retrievable". So I googled Sega Mega only find that the Sega Genesis (or some variation) was marketed with that name in some parts of the world. This made some sense, although didn't really seem to belong in YRO. Is my mind deteriorating faster than I expected or is the Illuminati **cking with me?

    1. Re:fnord by Anonymous Coward · · Score: 0

      We are **cking with you. Again.

  27. Raymond Chen's post is always relevant by Anonymous Coward · · Score: 0

    Definitely no surprise, as many others have already mentioned.

    Raymond Chen's old post is still a good read in this context:

    http://blogs.msdn.com/b/oldnewthing/archive/2006/05/08/592350.aspx

  28. What's new? by cgimusic · · Score: 1

    We knew this was an issue from when Mega was first launched. All this guy has done is made a pretty useless bookmarklet. Obviously if there is code on your computer that has access to the key and can be changed remotely then whoever can change the code can steal the key. Luckily Mega provides an API so this is a non-issue provided you use a client on your local computer.

  29. sshfs by SgtChaireBourne · · Score: 1

    I don't get why they are wasting time and money building their own client, especially when they appear to lack the will or skill to make it secure. What they could have done instead, for zero effort, would have been to support sftp with RSA keys. That would be as secure as it gets, work out of the box, and allow ease-of-use addons like sshfs. As it stands now, even their design is flawed. It runs a client but one from their server. It has access to the users' passwords and could even be swapped for a malicious client with no effort.

    --
    Beta is broken and the link to classic doesn't work. Stop wasting our time or there won't be anybody left here.
  30. Groundbreaking? I think not. by _90aT_ · · Score: 1

    Soooo, in essence, the guy managed to verify WHERE in the browser Mega stores is Master Key?

  31. Useless news by Anonymous Coward · · Score: 0

    The stuff is encrypted on the client side so of course you can see the key and obviously anyone with access to your computer can see it.
    The problem lies in Javascript, so anyone (including MEGA) can write a browser addon which can read your key and send it to him BUT that implies you agreed to install that same addon. How many developers of addons you use would be interested in getting your MEGA master key ?? I think you're pretty much safe, unless MEGA decides they suddenly want your key. But that would completely defeat the purpose of client side encryption and equalize their service with countless other file storage providers, and I don't think that's something they want to do.
    The news is useless, since any client side encryption in web browsers/javascript is vulnerable to this. The only solution is to avoid the web browser and use a desktop application for encryption and file uploads.