Slashdot Mirror


Linux Crypto Packages Demolished

SiliconEntity writes "Cryptographer and security expert Peter Gutmann has demolished several Linux security software packages in a recent posting to the cryptography mailing list. He says, 'It's possible to create insecure 'security' products just as readily with open-source as with closed-source software. CIPE and vtun must be the OSS community's answer to Microsoft's PPTP implementation. What's even worse is that some of the flaws were pointed out nearly two years ago, but despite the hype about open-source products being quicker with security fixes, some of the protocols still haven't been fixed.'"

35 of 404 comments (clear)

  1. What a great Quote by G+Money · · Score: 5, Funny

    I wish I could make this my signature (damn 120 char limit):

    "Whenever someone thinks that they can replace SSL/SSH with something much better that they designed this morning over coffee, their computer speakers should generate some sort of penis-shaped sound wave and plunge it repeatedly into their skulls until they achieve enlightenment."
    --Peter Gutmann

    1. Re:What a great Quote by stinkfoot · · Score: 5, Informative
      it's a reference to an episode of "The Brass Eye" by Chris Morris, brilliant comedian and media hacker. here's a transcript:

      http://www.glgarden.org/foreverman/brasseye.html

      (if you're impatient, click "page 2" and search for "sound wave".)

    2. Re:What a great Quote by David+Gerard · · Score: 4, Informative

      Ah, no, it was coined by makali, in a LiveJournal reply to said post.

      --
      http://rocknerd.co.uk
  2. Use the trustworthy stuff by Anonymous Coward · · Score: 5, Funny

    I only use the Cyrillic Projector code. No one ever will crack that.

  3. CIPE by dnoyeb · · Score: 5, Informative

    When I investigated CIPE for the first time two days ago, I read somewhere on the site that it didn't work yet, or that it provided no security. How can you critize a package for being insecure when they tell you it is?

    Did I miss something?

    1. Re:CIPE by cmowire · · Score: 5, Informative

      The CIPE FAQ claims that CIPE is "Industry Strength".

    2. Re:CIPE by kidlinux · · Score: 4, Funny

      But when the industry is dominated by products from Microsoft, it doesn't take much to be "Industry Strength"!

      Given that, one would think industry strength implies insecurity!

      Don't let my alias throw you off, I'm not about bashing Microsoft, but this was just too easy ;)

      --
      -kidlinux.
  4. thank you captin obvious by Anonymous Coward · · Score: 5, Insightful

    he points to CIPE, a tool which hasent been updated since jun 02 and Vtun since aug. 2001. he says TINC was just as bad but was fixed when users complained. I think the obvious conclusion is that if people use the software and email the person who maintains it, it will get fixed. if the project goes stagnent because the author doesnt maintain it or people dont use it then of corse it will be vunerable after time as more flaws are discovered and not patched.

  5. Give this man a PhD! by volkerdi · · Score: 5, Interesting

    It's possible to create insecure 'security' products just as readily with open-source as with closed-source software.

    This sentence can be reduced to "It's possible to create insecure security products" without losing any important content.

    The question should be, is it possible to create a truly secure product when there's no opportunity for public code review? My answer would be "no". I shudder to think of how many critical holes would be found in most popular closed source network products if people like Michal Zalewski were allowed to review the source code.

    1. Re:Give this man a PhD! by Asprin · · Score: 4, Insightful


      #1 - He's right.
      #2 - So are you, or better yet consider this:

      If CIPE were closed source, would he have even been able to write this article? Unless I missed something, nobody ever claimed OS was flawless, just that the flaws were open to scrutiny.

      --
      "Lawyers are for sucks."
      - Doug McKenzie
  6. GPG is also a disaster and other rants by Anonymous Coward · · Score: 4, Insightful

    All these years after Phil Zimmerman released the original PGP code, we STILL don't have anything which satisfies the need for a securing email. It would have these properties:

    1. Be under a BSD-ish license, so it could be linked in to commercial and non-commercial products.

    2. Be a LIBRARY, not a stand-alone executable, so it can be linked into anything at all.

    Let's see, the Xiph people want their protocols to be used all over the place, so they make it a BSD-license LIBRARY that anyone can link to. Hmmm, seems to be working. The PNG backers want their format to be used all over the place, so they make it a BSD-license LIBRARY that anyone can link to. Hmm, seems to be working. The PGP/GPG people want their stuff to be used by people to send mail everywhere, so they make it either a non-Open Source license (PGP) or a GPL license (GPG) and also never ever make it a library for non-existant "security" reasons. Guess what! No one uses it!

    Oh, and while I'm ranting about the horribleness of Open Source security stuff, why is it that there is STILL no well-integrated filesystem crypto in any of the Open Source operating systems, including the security-oriented OpenBSD? No, loopback crypto kludges don't count at all.

    1. Re:GPG is also a disaster and other rants by stevenj · · Score: 5, Insightful
      Be under a BSD-ish license, so it could be linked in to commercial and non-commercial products. Be a LIBRARY, not a stand-alone executable, so it can be linked into anything at all.
      Right, that's why no one has succeeded in making GPG-encryption plugins for Mozilla, Eudora, Evolution, Outlook, and so on.

      Those GNU folks are just evil; that's why they would never agree with something like the Vorbis BSD license.

      Or it could be that most people don't really understand the need for encryption, are hopelessly confused by key management, and won't use it until it is bundled with their computer and employed by default in their email program.

      --
      If a thing is not diminished by being shared, it is not rightly owned if it is only owned & not shared. S. Augustine
    2. Re:GPG is also a disaster and other rants by PureFiction · · Score: 4, Insightful

      Be a LIBRARY, not a stand-alone executable, so it can be linked into anything at all.

      If you read about GPG you would realize that the intentional lack of a library is a feature, not a bug. The GPG application relies on some cool extensions to protect memory areas used for the random pool (entropy source) the key generation algorithms, etc.

      The moment you pull that out into a simple library you open up a number of attacks. Perhaps the application using the library got 0wn3d by an LD_PRELOAD trick. Perhaps it is allocating memory poorly and it gets swapped to disk, where another rogue process picks it up. Perhaps another rogue library is scanning application memory space and writing keys to a socket over the network. etc, etc.

      There are a number of good reasons why there is no library (the current C libs are simply wrappers around exec to the gpg executable - they work fine, use them). Do you want convenience or real security?

    3. Re:GPG is also a disaster and other rants by zenyu · · Score: 4, Interesting

      Excuse me for my ignorance of how GPG is called, but isn't just loading an executable from your path subject to the same sorts of attacks (really, easier onces) than the LD_LIBRARY_PATH modification? I can just as easily sneak something somewhere in the users PATH ahead of the real GPG...

      I think the problem is that shared libraries are shared across users, so you just need to have a user account on the machine with debug access to mess with a library, while to change someone's path you need to compromise their account. The problem with this arguement is that if you have debug access you can mess with so many things that avoiding shared libraries isn't going to help much. The only thing it might do is force someone to crack X, pine, emacs or something else you are using to compose whatever you plan to GPG so while the system is compromised GPG can claim that their part of it wasn't.

      Moral of the story is don't allow security to depend on a development machine's pristine state and don't enable ptrace, or loadable modules for that matter, on a production machine that is intended to be secure.

  7. CIPE is a toy by Anonymous Coward · · Score: 4, Interesting

    He's talking about CIPE and pals...

    I remember when I installed Red Hat I went looking for IPsec .. I found CIPE thinking it was an IPsec implementation.. a quick perusal through the source code and docs made it appear to me that it was basically somebody's homebrew project designed with little regard for security. IPsec has its problems, depending how you set it up, but this was worst.

    The 32-bit CRC thing caught my eye as well. I'm no crypto export but I know enough about it to remember how CRC-32 is a weakness of the SSH 1 protocol.

    I have since set up freeswan and am happy with it even though I really don't understand IPsec that well I think it has been more closely scrutinized.

    So yeah, the author is probably right when he calls it the open-source PPTP... I don't see what it has to do with open-source or closed-source, although with open source it was easy for me (and the author) to gauge the quality of the code and avoid it.

  8. Software popularity by _iris · · Score: 4, Insightful

    The time it takes to fix software is inversely proportional to the popularity of that software. I know 0 people that use CIPE and vtun.

  9. Hot News by tarquin_fim_bim · · Score: 4, Funny

    Unmaintained software........unmaintained.

    In other news, Bear shits in woods.

  10. So some OSS crypto products suck... and? by Coryoth · · Score: 4, Insightful

    I'm pretty sure there are some pretty pathetic, sad window managers out there too. Some of the text editors are rather less than impressive as well. There are all manner of dodgy MP3 managements systems. OSS creates all manner of bad software because ANYONE can code something up and release it.

    The security and cryptography field just highlights the problem because there are so many opportunities to do something particularly stupid in those fields. Anyone can write a cryptosystem that they can't break themselves. Unfortunately a lot of people figure if they can't break it, then neither can anyone else...

    Jedidiah

  11. vtun and ssh by nilsjuergens · · Score: 5, Insightful

    Vtun is still far from being useless.
    Just turn off vtun encryption and use it via a ssh tunnel. That works very well (i use it for securing wifi) and uses a proven protocol.

    I also believe this is good practice and should be a widely accepted policy - re-use of good and proven software is not lame - it is crucial for easy, fun and secure software development. There really is no need for re-inventing the wheel.

    Now if only ssl were so integrated into the operating system that i could use select() on a ssl-socket created with socket(), and thus making writing of ssl-enabled apps as easy as non-ssl-enabled ones, that would be great!

    --
    -- Having problems sending big files over the net? Try out Efisto (http://efisto.org)
  12. So use a Linux IPSEC implementation instead by whoever57 · · Score: 4, Informative
    --
    The real "Libtards" are the Libertarians!
  13. openvpn is much better by nirik · · Score: 5, Interesting

    If you are looking for a good vpn package for linux, try openvpn:
    openvpn

    It was created a while back when all the other linux vpn products were not that great, and it seems like thats still the case.

  14. Re:Well... by Abcd1234 · · Score: 5, Insightful

    Of course it'll have a similar number of holes. After all, there's nothing about OSS that makes the software fundamentally more secure. BUT:

    1) These holes are far less likely to be in the base operating system implementation, as the OSS mantra is generally to put as much logic in user-space as possible.

    2) These holes won't be covered up and released only after the vendor has decided to let us know about them.

    3) These holes will be fixed up very quickly (in general, anyway), in individual patches or point releases, without onerous licenses attached to them, and without fear that the release might break the rest of my operating system.

    4) Because OSS products use open standards, if one particular package is simply too insecure, at least I can change to another product and have things interoperate (eg, switching from Sendmail to Qmail/Postfix/MTA-de-jour).

  15. Re:Well then, fix it! by katre · · Score: 5, Insightful

    Instead of making yourself look so great by "demolishing the security," why not offer the fixes?

    If you read the article, his advice is almost every case is "Scrap this, go learn basic crypto, and try again." I don't know crypto at all, but I'm willing to bet that's good advice. And if so, why on earth should he take the job of re-writing CIPE? I think it's great that he's getting the word out that it's insecure. These are the things that should be public knowledge.

  16. Debian to the rescue! (Re:GPG is also a disas...) by Anonymous Coward · · Score: 5, Informative

    Package: libgpgme11
    Description: GPGME - GnuPG Made Easy
    GPGME is a wrapper library which provides a C API to access some of the GnuPG functions, such as encrypt, decrypt, sign, verify, ...

    Can I hump your skull now?

  17. Talk about stating the obvious! by polyp2000 · · Score: 4, Insightful

    Open Source or Closed Source, its just as easy to write insecure software, either way.

    The point is, that with open source you can see just how insecure or secure a particular product is by looking at the code.

    Open source is inherently no more secure than closed source software. The difference is people like "Peter Gutmann" can see what is wrong and be at the ready with suggestions how to fix it.

    --
    Electronic Music Made Using Linux http://soundcloud.com/polyp
  18. I think I see why these haven't been fixed. by RealAlaskan · · Score: 5, Informative
    From Freshmeat: CIPE
    Rating: 8.35/10.00 (Rank N/A)
    Vitality: 0.01% (Rank 4941)
    Popularity: 2.72% (Rank 1001)

    VTUN
    Rating: 8.55/10.00 (Rank N/A)
    Vitality: 0.02% (Rank 2787)
    Popularity: 2.69% (Rank 1017)

    Neither of these projects are dead, quite, but neither is terribly active, either. Sourceforge shows one developer for CIPE, for example.

    As an earlier post said, crypto demands skills which aren't generally available, in an unusual combination. Many competent eyes make bugs shallow. Many competent coders make bugfixes quick. It looks as if those packages haven't drawn the competent eyes and coders yet.

    Maybe Mr. Gutman's post will draw some good folks who are able to do the work to these projects. Or maybe it will inspire the maintainers to simply let them fade away. Either way, we're better off for his efforts.

    A third possibility is that folks will just not care. Gutman tells us:

    - These programs have been around for years (CIPE goes back to 1996 and vtun to 1998) and (apparently) have quite sizeable user communities without anyone having noticed (or caring, after flaws were pointed out) that they have security problems.
    This kind of thing needs to be fixed or abandoned; bad security is worse than no security
  19. False by malaba · · Score: 5, Informative

    VTun has been updated
    in 2002 and 2003.
    Check their homepage:

    http://vtun.sourceforge.net/

    Maybe only small update.

  20. Re:Well then, fix it! by cmowire · · Score: 4, Interesting

    I'd go one step farther.

    Sometimes the best thing a programmer in this situation can do is to just declare a piece of software broken beyond repair and just retract the sucker.

    I mean, CIPE might have made sense before the widespread availablity of open-source, carefully crafted IPSec software. Now, your best mileage is to provide easy directions for how to build an existing, functional IPSec setup.

  21. the conclusions mostly do not follow by fermion · · Score: 5, Interesting
    I think what this shows is that security is very hard to do. It is very hard to come up with a good protocol. It is very hard to code that protocol so it is secure. It is very hard to deploy the code so it is secure. The author is of course correct that security code should be left to those that are competent.

    The first big difference between OSS and commercial products is often that commercial products want to either invent a new proprietary protocol, or, for marketing reasons, push an obsolete protocol as a new innovated protocol. Both of these leave end users insecure. However, since everything is proprietary, there is no way for the user to know the level of insecurity. And, if we may drop names like in the article, Scheier lists a new company nearly every month who tries to push crap as security, though he has gotten so annoyed that he has skipped months of late.

    And to drop the name again, Schneier, has spent his time of late trying to convince people that security is so much more than protocols. The protocols must be implemented in code correctly and deployed correctly. Unless one is a huge national agency with a classified budget and decades of security experience, it is unlikely that one can create a secure product. It is much better to make the code public so that interested parties can investigate. It doesn't mean they will.

    The two of these combine in interesting ways in closed software. There are claims of 1,000,000 bit keys. There are situation in which security by obscurity is used as the first line of defense. There are situation in which the DCMA is used as the first line of defense.

    Which is just to say that conclusion #1 and #2 does not follow from the text. Just because one finds a few packages that are out of date in OSS, does not mean that finding a few updated packages in closed source software are more secure. Conclusions #3 and #4 are trivially valid, and applies to anyone writing software in any model. All programmer should take the advice to heart, especially if they want to design a right management system using closed protocols.

    --
    "She's a scientist and a lesbian. She's not going to let it slide." Orphan Black
  22. Re:Arm chair security experts by HidingMyName · · Score: 4, Insightful
    This is open source, figure out where to submit your patches or else you are nothing but an arm chair security expert.
    This is a very unfair characterization of Gutmann's work. I read the posted article, and in it Peter Gutmann gives thoughtful analysis and cogent suggestions about how to fix the problems (although the complete rework of vtun sound's it will take a lot of time). I would much prefer Gutmann to do his analysis than have him doing package maintenance, he is far from being an arm chair security expert. I don't think it is an issue of his skill, it is an issue of how he should be allocating his time, and I think he is doing the right sorts of things for the community.
  23. The Real Problem by Effugas · · Score: 5, Interesting

    First of all, I've got a tremendous amount of respect for Peter Guttman, and not just because he's the author of the coolest quote relating to computer security of all time (if you can't find it in that essay, you're not paying attention). But...he misses the point.

    We do not have an effective method of running a stateless cryptosystem, but IP actually does require stateless operation. All these mini-systems that have sprouted up exist because of this.

    SSH(which, incidentally, violates Guttman's rules by using "the same key for encryption and authentication") and SSL(which utterly falls apart when the cert gets compromised) both run over TCP. TCP is not IP. TCP adds reliability, through error detection, correction, order management, and congestion management. That's all well and good, but sometimes I really don't care when I drop a packet. Voice traffic is a fantastic example -- by the time the retransmission is complete, the data is stale and irrelevant. But TCP will not only stop to retransmit, it'll hold up everything else while it does so, and even slow down the connection to be sure a dropped packet doesn't happen again.

    There are _many_ protocols which can accept these semantics. But there are many that cannot, and there's a bigger problem: By supporting those protocols that do not share the connection semantics of TCP -- DNS, VoIP, etc -- we end up being forced to carry either GRE or PPP packets over the SSL/SSH tunnel -- and inside these PPP packets, that are being carried by TCP, is more TCP.

    This doesn't work very well at all -- effectively, both sockets attempt to simultaneously adjust to changing network conditions, and since neither knows about eachother, they both screw up badly.

    All because we do not have a stateless cryptosystem that works. It may very well be that such a demand is impossible. Stateless cryptosystems can send a message and not only not prenegotiate a session key, but tolerate large number of dropped packets. Replay attacks need to be suppressed, but packets need to be able to survive high latencies. CPU load needs to be kept reasonable, but no message can rely on the asymmetric results of another.

    In short, normal cryptosystems are built to be inflexible to attackers; we do not know how to make them simultaneously flexible for networks. The reasons why should be obvious -- anything that can go wrong on the network, will go wrong because of an attacker. So telling everybody to use SSH/SSL is ultimately code for, "We just don't have the crypto to secure IP." And we know IPSec is a failure; if it hadn't been for VPN's, it'd be as rare as multicast and a hundred times more expensive.

    Solutions? I suspect short signatures will ultimately make the difference, as will better time-based protocols (at least for intra-admin-domain work.) But no matter how high my opinion is of Guttman, I cannot ignore he considers solved problems that fundamentally refuse to go away.

    Yours Truly,

    Dan Kaminsky
    DoxPara Research
    http://www.doxpara.com

    P.S. There is an immediately available VPN solution that's free and doesn't suffer from TCP-over-TCP effects. Look up Dynamic Forwarding for OpenSSH ... TCP is terminated at the forwarder, addressed using SOCKS4 or SOCKS5(>3.7.0), and forwarded to the appropriate destination on the other side of the tunnel. It's TCP _only_, but it operates completely in userspace.

  24. Re:Debian to the rescue! (Re:GPG is also a disas.. by tqbf · · Score: 4, Informative
    GPGME is a wrapper library... Can I hump your skull now?

    No, because GPGME is GPL, not LGPL, and all it does is make calls to the (GPL) GPG binary.

  25. Re:Arm chair security experts by kfg · · Score: 4, Interesting

    The problem with Einstein is that he was just an armchair physicist.

    Why didn't he just shut up and do something?

    Can someone tell me when expertise, perception and wisdom became "worthless"?

    "Excuse me sir, but did you know that your door lock is faulty?"

    "Hey, don't give me none of that talk mister. Just shut the hell up and fix my lock. OK?"

    "Listen. . . asshole. I didn't design the lock, I didn't make it and, more to the point, I'm not the jerk who put it in your door. It's your design, your lock and your door. You fix. Now FOAD."

    Open source is about sharing, not about making the other guy responsible for your cockups.

    KFG

  26. Re:Arm chair security experts by Halo- · · Score: 4, Informative

    Peter Gutmann is a serious expert. I write security code for a living. (For IBM) Peter Gutmann has writen a few seminal papers such as "A Layman's Guide to ASN.1" which is required reading for anyone coming on the team.

  27. Peter Gutmann and tinc by gsliepen · · Score: 4, Interesting

    Peter Gutmann contacted us (the tinc developers) on September 15th, quoting the part of his writeup relevant to tinc. We exchanged a few emails since then. There are some points where tinc could certainly be improved (some of it already planned for 2.0), but we don't believe the "real problem" he mentions actually exists. We have told him our objections to his writeup, and asked if he could prove or make it more plausible that an attack on the authentication protocol is possible. He still hasn't convinced us.

    In some more detail: the 32 bit predictable IV might make the other 32 bits of the first encrypted block more vulnerable, but the other 32 bits of that block only contain part of a MAC address which does not reveal any important information. It does not compromise the other blocks AFAIK, and in fact a sequence number instead of an unpredictable random number is more secure according to Jerome Etienne, who has done a much more detailed security analysis of tinc in the past.

    The messages encrypted with RSA are indeed not padded, but padding is, AFAIK, only necessary when the message is shorter than the RSA key. In our case, the message is exactly as long as the RSA key.

    Peter Gutmann believes there is a possible MITM attack ("Chess grandmaster attack"), but hasn't shown us how, just that he believes it's there.

    Peter Gutmann also believes tinc has to be configured identically on each endpoint, but that is not true at all.

    We're still in discussion, and if we believe there is really a problem we will fix it. In his conclusion Peter says that everyone should be using SSL or SSH. We could, but I don't believe SSL is necessarily the be-all and end-all of encryption.