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

404 comments

  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 noahm · · Score: 1

      You're right. In fact, it's good enough that taco would probably lift the 120 char limit just to let it through!

      noah

    2. Re:What a great Quote by charon_on_acheron · · Score: 3, Funny

      Only if you post anonymously though. See....

      Anonymous Signature to follow
      --
      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

    3. Re:What a great Quote by jared_hanson · · Score: 1

      As soon as this is lifted, I'm gonna get a comment modded up to +5 and then change my signature to the entire text of War & Peace.

      I can't wait to force everyone to hold the down widget on their scroll bar for hours just to read the comments below mine.

      --
      -- Fighting mediocrity one bad post at a time.
    4. Re:What a great Quote by Anonymous Coward · · Score: 1, Informative

      Except that JWZ already has made a similar comment on this page:

      Whenever a programmer thinks, "Hey, skins, what a cool idea", their computer's speakers should create some sort of cock-shaped soundwave and plunge it repeatedly through their skulls.

    5. Re:What a great Quote by Anonymous Coward · · Score: 0

      Or we could just disable signatures.

    6. Re:What a great Quote by tempest303 · · Score: 1
    7. Re:What a great Quote by Arrgh · · Score: 1

      The quote was coined by JWZ, in the original version of his famous post on the state of Video in Linux, now redacted, alas.

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

    9. Re:What a great Quote by Anonymous Coward · · Score: 0

      It says that comment is from makali.

    10. 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
    11. Re:What a great Quote by Pharmboy · · Score: 1

      "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


      Reminds me of the bathroom scene in the original "Scary Movie", where the the guy takes a penis all the way through one ear and out the next. Laughed my ass off. Both times.

      --
      Tequila: It's not just for breakfast anymore!
    12. Re:What a great Quote by Jeremiah+Cornelius · · Score: 1
      Besides, it's EASY to use SSL - over arbitrary ports.

      Stunnel lets you do exactly this for almost any socket communications.

      Sneaky is to have a wrapper script that invokes PPPD over stunnel, with x.509 PEM certs to mutually authenticate the 'left' and 'right' sides of the communication.

      In the past, I have set this up to answer on port 443, via xinetd. You can guess just how useful that has proven at some times, in some locations! ;-)

      Traffic analyzers and HTTP proxies see this as HTTPS traffic... Something you can't say for SSH listening on a funny port.

      --
      "Flyin' in just a sweet place,
      Never been known to fail..."
    13. Re:What a great Quote by Anonymous Coward · · Score: 0

      Not necessarily. But that's pretty disturbing.

    14. Re:What a great Quote by Anonymous Coward · · Score: 0

      The original was from a rant about skinnable interfaces by Matt Robinson, I credited him as the inspiration for the comment in my writeup.

      Peter (author of the original article, which seems to have had a wider audience than I was expecting :-).

    15. Re:What a great Quote by arivanov · · Score: 1

      Nope it is not.

      Once you use SSL for a VPN protocol you will get into most of the problems which G describes anyway due to the excessive amount of well known predictable plain-text in the message. SSL is good for what it was designed for - as means of securing TCP with arbitrary contents.

      You will also get a severe performance hit because every datagram will have to be ACK-ed.

      CIPE is one of the best infrastructure VPN packages out there for the solely reason that it uses an un-acked protocol and offers the notion of interface to both end. As a result you can run a routing protocol on it.

      CIPE has its failings, it can be improved, but if you think that IP or PPP in SSL are any better think again. Hit yourself with the aforementioned soundwave a few times if needed.

      --
      Baker's Law: Misery no longer loves company. Nowadays it insists on it
      http://www.sigsegv.cx/
    16. Re:What a great Quote by Jeremiah+Cornelius · · Score: 1
      Well known, predictable plain text messages? What do you use a VPN for - transmitting copies of the OED and Shakespeare's Sonnets? It'd be easier by a factor of 10,000:1 to land a key-logger than perform cryptanalysis on replayed SSL session traffic.

      My VPN usage is about as arbitrary as any collection of web pages and SSNs. Much of the data in transit isn't even text. Binary, rather.

      So, I don't get TCP window benefits ACK-ing everything. This is one of 'ye olde tradeoffes'. Security is a matter of compromises and negotiations - window performance is one of these.

      --
      "Flyin' in just a sweet place,
      Never been known to fail..."
    17. Re:What a great Quote by arivanov · · Score: 1

      PPP sends keep-alives if you do not use the link. These contain well known and often predictable plaintext.

      Any protocol encrypting these with the data encryption key is offering a free ride for a known plaintext attack. Also, depending on your cypher you are offering free ride on the PPP header and IP header fields which do not change enough between frames. This is is the usual case for links without proper protocol field compression. So on so forth ad naseum until you puke and some more to boot.

      --
      Baker's Law: Misery no longer loves company. Nowadays it insists on it
      http://www.sigsegv.cx/
    18. Re:What a great Quote by Anonymous Coward · · Score: 0

      Or laugh at you as the "Read the rest of this comment link" comes up fairly early.

  2. Use the trustworthy stuff by Anonymous Coward · · Score: 5, Funny

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

    1. Re:Use the trustworthy stuff by NeverReminder · · Score: 0, Redundant

      Yes, because in Soviet Russia, Cyrillic cracking you

    2. Re:Use the trustworthy stuff by Anonymous Coward · · Score: 0

      will ever*

      "No one ever" will literally means no one named "ever" will ever crack it. ie No one John will ever score with her. Thus saying, no ONE john, not NO ONE.

      you get the drift, retard.

    3. Re:Use the trustworthy stuff by Anonymous Coward · · Score: 1, Funny

      Did I miss something? I don't think any one Ever broke the code yet. So what he says stands.

      Who's on first?

    4. Re:Use the trustworthy stuff by ZZane · · Score: 1

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

      The original poster must be a /. editor. :)

      --
      This sig is worse than my last.
    5. Re:Use the trustworthy stuff by Anonymous Coward · · Score: 0

      Dear Sir or Maddam,

      Reading your post to slashdot made me stupider.

      Sincerely,
      An Anonymous Coward

    6. Re:Use the trustworthy stuff by Anonymous Coward · · Score: 0

      both are valid

      no one ever - implies little belief that any person is capable of that, relates to the subject of the sentence

      will ever crack - implies little belief in this action, relates to the predicate

    7. Re:Use the trustworthy stuff by hafniOum · · Score: 2, Informative

      Update here :..

      http://tinyurl.com/ob52

    8. Re:Use the trustworthy stuff by Wolfrider · · Score: 1

      Naw, that be just plain unpossible. Don't never make them kinda claims, bwah!

      --
      .
      == WolfriderV6 == I'm willing to admit that *I just might* be wrong... Are you??
  3. Arm chair security experts by Anonymous Coward · · Score: 0

    This is open source, figure out where to submit your patches or else you are nothing but an arm chair security expert.

    1. Re:Arm chair security experts by Codeak · · Score: 2, Insightful

      Oh lovely.... so now because these are OSS components, people can't be critical unless they actually code the changes? Informing those that are suppose to care isn't enough? The author made a good faith effort and freely shared his knowledge but instead of saying thank you we'll get someone right on it... it's code or shutup?! *sniff* *sniff* me thinks me smell an ungrateful, eleetist something in the wind.... *Blech*

    2. Re:Arm chair security experts by Anonymous Coward · · Score: 0

      Yep, instead of wasting time writing useless diatribe one should instead note the problem, produce a fix and submit it. To yammer about a problem is pointless. To do it twice is a stupid waste of time that could have best been spent on coding a solution. People like this Peter guy are your typical manager types, they know a lot, but when it comes down to actually doing real work they have to depend on others to get the job done. I'd rather see a Microsoft paid for study point out Open Source flaws, at least then I know that (1) Microsoft had to spend some money, (2) no body will compain if someone flames the article on /. and (3) Microsoft had so spend some money.

    3. Re:Arm chair security experts by mythosaz · · Score: 1

      Arguing with AC's isn't exactly productive, but here goes.

      The simple fact of the matter is that some of us are experts in one technological field or another, yet lack the ability to debug other people's code, or re-code our own solutions. Were we all able to produce high-usability cryptological software ourselves, nobody else would ever need to write any.

      This is why software developemnt shops have seperate QA and developement branches. Testing software and finding bugs takes skills that aren't necessarily the same skills programmers have.

      Enjoy.

    4. Re:Arm chair security experts by Rock+Ridge · · Score: 1

      Did you learn to write before you could read? Could you debug another's code if it was in your own area of "expertise?"

      You can program but can't test and debug?
      Where did you go to school? Just so we'll know ;-)

    5. 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.
    6. Re:Arm chair security experts by mythosaz · · Score: 1

      Who said I could program?

      I don't claim in my post to be a programmer. Despite my ability to script the bare essentials for my real job, programming (at all) is not my area of expertise.

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

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

    9. Re:Arm chair security experts by Anonymous Coward · · Score: 0
      Open source is about sharing, not about making the other guy responsible for your cockups.

      Hi. I use viagra. Some other guy is respsonsible for my cockups!

    10. Re:Arm chair security experts by Anonymous Coward · · Score: 0

      I do too.
      I write and rewrite rot13 with a zeal undiscovered
      in sane men. Every one of my applications is protected by my newest implementation.
      If you are ever in need of inspiration I'll
      send you the source.

    11. Re:Arm chair security experts by Anonymous Coward · · Score: 0

      You sir are the reason Linux will always have a 1% market share. Until elitist morons like you go away, Linux will never make a dent. By the way - instead of posting a rant, why don't you practice what you preach and go fix some code, genius?

    12. Re:Arm chair security experts by Anonymous Coward · · Score: 0

      I once slept with a security coder I brought home from a karoke bar. He could suck like nobody's business but his asshole was way too loose for my liking.

      Obviously an IBM man.

    13. Re:Arm chair security experts by eidechse · · Score: 1

      Debugging taught in school?

      Where did you go to school? ;)

    14. Re:Arm chair security experts by Anonymous Coward · · Score: 0
      You are an idiot if you still haven't understood the point: cryptologists are more mathematicians than coders.

      Until you (or any common programmer) can *prove* me how elliptic curve crypto works in full detail, I will not expect any (common) cryptologist to code any C++.

    15. Re:Arm chair security experts by Anonymous Coward · · Score: 0

      Then why are you commenting in a dialog about programming security applications?

    16. Re:Arm chair security experts by 0x0d0a · · Score: 1

      Parent post is a bit trollish, but it isn't too bad, so what the hell.

      You do realize that there's a good reason well-known-cryptographers don't fuck around implementing what they write? It's because their analysis work is far more valuable (and more highly paid) than implementing said code is.

      Gutmann did a lot of useful work for several OSS projects in his post. He's vaguely pissed because nobody responded to any of his analyses. Bashing him for making the same effective use of his time that an employer would is ridiculous.

    17. Re:Arm chair security experts by Anonymous Coward · · Score: 0

      Peter has already done that. Look at this home page to find Cryptlib (A very good product).

    18. Re:Arm chair security experts by mythosaz · · Score: 1

      Christ this gets repetitive -- to remind people that not everyone can program.

      Being able to find faults and being able to fix them are two very different skillsets.

    19. Re:Arm chair security experts by eric76 · · Score: 1

      Although the code might fixable, at least in theory, it is sometimes more practical to throw it away and start over for scratch and do it right.

      Not everything that can be fixed should be fixed.

    20. Re:Arm chair security experts by Jim+Nugent · · Score: 1

      This is open source, figure out where to submit your patches or else you are nothing but an arm chair security expert.

      A restaurant manager once told me I should'nt complain if I hadn't tried running a restaurant. I replied that managing a restaurant was not on my resume, but presumably was on his. If he culdn't do it properly, perhaps he should get a job driving a bus.

    21. Re:Arm chair security experts by Kynde · · Score: 1

      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.

      Serious experts make mistakes too.

      1) Cipe is not dead, on the same page as there was the specification is a link to the mail archives. Far from dead if you look in there.

      2) Ranting about Cipe being vulnerable to replay attacks shows that he's missed the point. Cipe was designed to be _stateless_ protocol over UDP, so that it has the exact characteristics that IP has. There are quite enough crypto streams out there, but disregarding IPsec, we don't have that many packet based solutions.

      3) Heck, even IP is is vulnerable to replay, and to state the obvious it can actually do that witout being attacked against. There are no guarantees that you wouldn't get duplactes, over and over again even. Thus all protocols that plan on being invulnerable to replaying provide such mechanisms _OVER_ ip.

      --
      1 Earth is warming, 2 It's us, 3 it's royally bad, 4 we need to take action NOW
  4. Oh no! by Compact+Dick · · Score: 3, Funny

    Demolished? Where am I now gonna get my SSH and GPG from? :-(

    1. Re:Oh no! by inode_buddha · · Score: 1

      Try AES, now in the kernel and officially by NIST.

      (sorry bout that, Blowfish was just getting *so* boring...) (also intended as "funny")

      --
      C|N>K
  5. POPTOP by fmlug.org · · Score: 3, Interesting

    What about the poptop project at http://www.poptop.org/. There is also a really good client package at for pptp servers at http://pptpclient.sourceforge.net/ I use both and they seem to be much better then vtun and cipe.

    1. Re:POPTOP by onomatomania · · Score: 1

      Just remember that the most common reason for using PPTP is to interface with a Microsoft product... And MS's PPTP is ripe for the attacker and calling it secure is pretty laughable.

    2. Re:POPTOP by Huge+Pi+Removal · · Score: 3, Informative

      I thought the whole point of poptop was that it used PPTP, which is inherently insecure.

      L2TP replaces it, and MS seems to have got it right this time.

      --
      - Oliver

      The right to bear arms is only slightly less stupid than the right to arm bears...
  6. 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.
    3. Re:CIPE by Anonymous Coward · · Score: 1, Insightful

      "Industrial strength" is an alternative way of saying "snake oil"

    4. Re:CIPE by antiMStroll · · Score: 1
      Of course the full quote in its proper context is:

      While it is possible that there are specific attacks against the protocol (see next question), to date I know of no such attack which could fatally undermine the security of the CIPE system. If this is a meaningful classification, I would count it as "industry strength".

      Nice disengenuous editing.

    5. Re:CIPE by Huge+Pi+Removal · · Score: 1

      That's a little like all those early sound-cards claiming to be "CD-quality", when actually they meant "we have 16 bit converters". The fact that the converters sounded like they were made from soggy paper didn't seem to occur to anyone...

      --
      - Oliver

      The right to bear arms is only slightly less stupid than the right to arm bears...
    6. Re:CIPE by Anonymous Coward · · Score: 0

      Cipe has worked for years, and in fact is one of those rare things that will work for years with literally no attention. There may be specific attacks that would work against it but you have to balance that against the alternatives. For one thing I trust my ISPs to not let anyone but the government sniff the wires and I suspect that they can crack ipsec if they want anyway. The other thing is that cipe works behind NAT. If you can get udp packets back and forth between the endpoints you can run CIPE even if other devices are doing the NAT.

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

    1. Re:thank you captin obvious by cmowire · · Score: 3, Informative

      Aye, but the webpages for CIPE have been updated in 2003.

    2. Re:thank you captin obvious by linuxelf · · Score: 1

      As ESR writes in "The Cathedral and the Bazaar," it is important for a project manager to know when they're no longer interested in maintaining a package, and hopefully find someone to turn it over to. Perhaps that is the case here, maybe the author is not interested in the project any more, and no one has stepped up.

      --
      - "That's just the kind of fuzzy-headed liberal thinking that leads to being eaten."
  8. 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 fishbowl · · Score: 0

      "is it possible to create a truly secure product when there's no opportunity for public code review? "

      My answer would be "yes" but, nobody should be interested in buying it. It should fail in the marketplace.

      --
      -fb Everything not expressly forbidden is now mandatory.
    2. Re:Give this man a PhD! by monkeydo · · Score: 0

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

      Your answer is false, and obviously so. It can be shown that all security vulnerabilities which are found in any code will be found by a finite number of people. Assuming the correct set, only this number of people need to see the code. The difficulty with closed source is not the number of eyes, but which eyes those are since the vast majority of the people who look at source find nothing of value. While open source security software may be appealing from a market perspective it is by no means a requirement to write secure code.

      --
      Si vis pacem, para bellum
      The only thing more annoying than a Libertarian is an (un|mis)informed Libertarian
    3. Re:Give this man a PhD! by Anonymous Coward · · Score: 2, Informative

      Dude: he already has a PhD in cryptography from university of auckland

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

      Peer Review != Open Source (Hint: 99% of the programming population don't count as peers for cryptography.)

    5. 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. Re:Give this man a PhD! by Minna+Kirai · · Score: 1

      Your answer is false, and obviously so.

      No, what do you think "security" is? It's the knowledge of safety.

      If the public can't review something, they can't know it's safe. The proprietary code reviewers may have been smart enough to catch any flaws- but that's not enough. They'd also have to be trustworthy enough to reveal them, and not just keep them as a personal backdoor.

      The sanely paranoid won't take anyone's word on security, they need the ability to check it personally.

    7. Re:Give this man a PhD! by kahendricks · · Score: 0

      yeah anything is "possible", being realistic or having greater odd than two people with the same dna living on earth at the same time... well I would go that far.

    8. Re:Give this man a PhD! by kahendricks · · Score: 1, Interesting

      There is no such thing as secure software, there never will be. Accept that now and you won't be disappointed when your foolproof app is cracked. For software to be "secure" it need only be difficult enough to break into to make the average teenager spend more than 5 minutes on it and give someone a "sense" of security. Security is an illusion, it's one that many of us cannot have without seeing the code OURSELVES. I can't use your product if I can't review it to make sure you don't have any back doors or spyware. The single entity I'm most concerned about breaking through the security is YOU. Am I just supposed to take your word that the code is good? Is there anything else you evaluate that way? Do you go about saying head and shoulders is good stuff without checking the active ingredients to see if it in reality will slowly fry your hair and strip it of all natural oils?

    9. Re:Give this man a PhD! by ceejayoz · · Score: 2, Insightful

      If the public can't review something, they can't know it's safe.

      No, but they certainly can (and will!) assume. Look at Windows users, and look at the Linux zealots who'll gleefully tell you that Linux is invulnerable.

      If there truly are zero vulnerabilities, security holes, bugs, etc., it's secure - whether the users trust it to be or not doesn't change that. It just changes whether they're likely to use it.

    10. Re:Give this man a PhD! by ceejayoz · · Score: 2, Funny

      If CIPE were closed source, would he have even been able to write this article?

      Yeah, 'cuz Windows being closed source prevents people from finding security vulnerabilities and writing articles on them...

    11. Re:Give this man a PhD! by Anonymous Coward · · Score: 0

      Keep up the great work Pat!

    12. Re:Give this man a PhD! by Anonymous Coward · · Score: 0

      "having greater odd than two people with the same dna living on earth at the same time" ... So you're telling me twins don't really exist then? Hm. They must be a figment of my imagination.
      Either that or it's a huge conspiracy.

      -- Kamilion

    13. Re:Give this man a PhD! by monkeydo · · Score: 3, Insightful

      No, what do you think "security" is?

      In this context I think "security" is a process of minimizing risks to acceptable levels for an arbitrary application.

      If the public can't review something, they can't know it's safe.

      So? 99.999% of the population can't determine good programming even if the source is open. I guess by your theory there is no secure software in use at the CIA or the NSA because "the public" hasn't seen the code.

      The sanely paranoid won't take anyone's word on security, they need the ability to check it personally.

      "The sanely paranoid" != "The public"

      Only those using the software need to know it is secure. This can be accomplished whether the software is Open Source or not.

      --
      Si vis pacem, para bellum
      The only thing more annoying than a Libertarian is an (un|mis)informed Libertarian
    14. Re:Give this man a PhD! by iabervon · · Score: 1

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

      The need is actually for peer review, not public review. Of course, getting most security-expert peers to review something usually requires public review (since most peers wouldn't bother). But the NSA has been able to develop cryptosystems without outside review (by employing half of the experts at the time), and MS might have been able to do it if their codebase weren't too unwieldy to review.

    15. Re:Give this man a PhD! by 1lus10n · · Score: 3, Insightful

      "Only those using the software need to know it is secure. This can be accomplished whether the software is Open Source or not."

      i responded instead of modding you. Let me just point out that if the public is using it then it should be open source so that the neccasary non-corporate people (hackers) can take a look at the code and fix what is needed, in the case of microsoft they are saying "trust the people who we employ, and who depend on our products to make money" which is a very very bad thing to rely on.

      The open source community might not be perfect, but its one hell of alot closer than any proprietary setup. (not to mention that the larger the OSS community gets the more people will be looking at the code, hence more security.)

      the CIA and/or the NSA are bad examples of security in software. (as is anything in gov't) because politicians decide what gets done, and politiks do not mix well with software.

      --
      "Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe." --Albert Einstein
    16. Re:Give this man a PhD! by Minna+Kirai · · Score: 2, Insightful

      In this context I think "security" is a process of minimizing risks to acceptable levels for an arbitrary application.

      To minimize you must first know. To know you must see.

      So? 99.999% of the population can't determine good programming even if the source is open.

      They can, if they care to, hire an arbitrary number of reputable cryptologists and software engineers to give independent opinions on the safety. The original authors can't have inserted secret backdoors for fear of being found out by these 3rd party reviews (and then being revealed as either untrustworthy or incompetent)

      If the source is closed, that review process is either much more expensive, or impossible (if the country has forbidden reverse engineering).

      For example, Microsoft today can get the data from any of their users. They simply have to release a "security patch" which instead of removing a buffer-overflow, inserts one in a way they know how to exploit.

    17. Re:Give this man a PhD! by Minna+Kirai · · Score: 3, Insightful

      If there truly are zero vulnerabilities, security holes, bugs, etc., it's secure

      I thought I just explained the definition of "security". It's different from "safety". Check your local dictionary for more info: security is an assurance of safety.

      You might be safe, but if you don't know it, you're not secure.

    18. Re:Give this man a PhD! by Sivaram_Velauthapill · · Score: 1

      But the NSA has been able to develop cryptosystems without outside review (by employing half of the experts at the time)...

      How can you be sure of that? Since very few people even have access to the stuff, they may think they are secure. For all we know, they might have been compromised and some foreign govt might actually be accessing everything.

      What you are saying is akin to how government departments or corporations always say how their stuff is all secure and safe. Yet it always turns out that some stuff is compromised here and there, your credit number is on the net all of a sudden, the so-called private highly secure customer database doesn't seem to be secure all of a sudden, etc. Granted, these guys don't really do any serious cryptology (unlike NSA) but still...

      Sivaram Velauthapillai

      --
      Sivaram Velauthapillai
      Seeking the meaning of life... @slashdot of all places ;)
    19. Re:Give this man a PhD! by stoborrobots · · Score: 1
      From what I understand, Open Source means that the source is available, and can be used (relatively) un-restricted.

      Closed Source means that the source is not available.

      Security requires not(Closed Source), but not necessarily Open Source.

      PS: most open-source things require source to be provided to the user, not to the world. I develop software. I sell it to my clients. Then I give them the source. They have security, because they can examine the source. I am GPL compliant because I don't stop them from re-distributing the source. But that doesn't mean that I have to give it to YOU...

    20. Re:Give this man a PhD! by Anonymous Coward · · Score: 0

      > The question should be, is it possible to
      > create a truly secure product when there's
      > no opportunity for public code review?

      No, the question should be...

      Why do we keep having to listen to this horse-shit
      fucking FUD from the open-source community about
      how only open-source code is truly secure.

      So many eyes... Then why do you keep producing
      broken code?

    21. Re:Give this man a PhD! by Anonymous Coward · · Score: 0

      The issue is more along the lines of how do these people get to think they're capable of creating a security product in the first place? The mistakes pointed out in this article, as well as the mistakes in Microsoft's original PPTP and many other examples (e.g. WEP) are all well-known and more or less obvious. Anyone who is going to make that kind of mistakes shouldn't be trusted to design a security product, even with peer-review.

      It shouldn't be a matter of "make them crappy first, then have somebody point out obvious flaws,", it should be a matter of "have knowledgeable people design the system, have other knowledgeable people point out unobvious, complicated, often not even practically exploitable flaws".

      Avoiding simple mistakes is not that hard. There are a lot of more subtle mistakes that these people are not going to be able to avoid if they can't even be bothered to understand the basics.

      The state of security software isn't abysmal because it's hard, but because people who don't know what they're doing are permitted to design products.

      Good security is also hard, meaning that even the better products designed by knowledgeable people are occasionally found to have flaws. But at least they aren't completely broken in multiple ways...

    22. Re:Give this man a PhD! by blibbleblobble · · Score: 1

      "So? 99.999% of the population can't determine good programming even if the source is open."

      Could we implement a slashdot filter to detect any percentage figure above or equal to 99?

      "Error: please only use statistics which exist, and not ones you obtained from /dev/ass"

    23. Re:Give this man a PhD! by ceejayoz · · Score: 1

      Dictionary.com gives many other, more relevant definitions. Only 4 and 7 fit your definition - 1, 2, 3, 5, and 6 fit mine.

      1. Free from danger or attack: a secure fortress.
      2. Free from risk of loss; safe: Her papers were secure in the vault.
      3. Free from the risk of being intercepted or listened to by unauthorized persons: Only one telephone line in the embassy was secure.
      4. Free from fear, anxiety, or doubt.
      5.
      a. Not likely to fail or give way; stable: a secure stepladder.
      b. Firmly fastened: a secure lock.
      6. Reliable; dependable: secure investments.
      7. Assured; certain: With three goals in the first period they had a secure victory, but somehow they lost.
      8. Archaic. Careless or overconfident.

    24. Re:Give this man a PhD! by WNight · · Score: 1

      Most security related bugs in crypto apps are going to be standard buffer overflows and such. The sort of thing any programmer can help with. As for the algorithms themselves, sure people without math degrees aren't going to be able to help analyze them, but that's why even if you roll you own crypto app you use an existing algorithm and accepted key handling practices, etc.

  9. 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 Anonymous Coward · · Score: 1, Interesting

      The Reiser4 filesystem is supposed to allow for encryption plugins once it is released (later this year?).

    2. Re:GPG is also a disaster and other rants by Anonymous Coward · · Score: 2, Interesting

      You could make the argument that it should be GPL so that vendors can't silently change the implementation.

      I don't feel comfortable using crypto products without source code, I don't know about you.

      cipe has been on my shitlist for a long time for instance.

    3. Re:GPG is also a disaster and other rants by Anonymous Coward · · Score: 0

      Hey, when it gets compression, it'll be just like NTFS!

    4. Re:GPG is also a disaster and other rants by Sloppy · · Score: 1
      No, loopback crypto kludges don't count at all.
      Why not?
      --
      As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
    5. Re:GPG is also a disaster and other rants by AxelTorvalds · · Score: 2, Informative
      That has nothing to do with the license. It has to do with end users and the ease of using it. It needs to be integrated into the mail client and it needs to be easy to see and use.

      Most clients now spawn an exec and pipe data to PGP or GPG. Nothing in the GPL prohibits that.

    6. Re:GPG is also a disaster and other rants by RedBear · · Score: 2, Interesting
      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.

      My loopback crypto filesystems, set up on Mandrake Linux 9.0/9.1, don't seem all that kludgy to me. It was easy enough to set up and very easy to use. Except that I still have to mount my encrypted filesystems via the command line, what's up with that? If anyone knows of any GUI mount programs that are smart enough to detect a password prompt and bring up a dialog for the user, I'd really like to know about it. Actually, if anyone knows of any good GUI mount programs *period*, I'd like to see them.

      Other than that, my crypto filesystems are very easy to use. All I did to set it up initially was check a box and fill in a passphrase.
    7. Re:GPG is also a disaster and other rants by Anonymous Coward · · Score: 0

      So then BSD with that md5/source-code-comparer?

    8. Re:GPG is also a disaster and other rants by mmol_6453 · · Score: 1

      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.

      I find that whenever I say "Why can't such and such be easily done?" I get blasted with "Because you can. you ... and .... .... then ..."

      That's either Open Source software policy, or the personal nature of many of the open source keystones.

      --
      What's this Submit thingy do?
    9. 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
    10. Re:GPG is also a disaster and other rants by Rock+Ridge · · Score: 1

      And when it preserves metadata, too.
      We patiently await Reiser 6.0

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

    12. Re:GPG is also a disaster and other rants by Tom7 · · Score: 1

      That might be an argument against a shared library, but not a static one. If you don't have this stuff shared between processes then all the arguments you give don't hold. Also, since most operating systems provide an in-kernel randomless pool, there doesn't seem to be any good reason to share data across different programs that all use the library. That seems to suggest that you could also make a good shared library implementation that consisted only of code, if you care about minimizing the amount of duplicated code in memory.

    13. Re:GPG is also a disaster and other rants by SuperKendall · · Score: 3, Insightful

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

      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.

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

      --
      "There is more worth loving than we have strength to love." - Brian Jay Stanley
    14. Re:GPG is also a disaster and other rants by Anonymous Coward · · Score: 0

      god you're retarded.
      If you don't know why please go back to being a linux weenie, your pizza is getting cold.

    15. Re:GPG is also a disaster and other rants by Lord+Maud'Dib · · Score: 1

      Try kwikdisk for KDE. Companion of kdiskfree.

    16. Re:GPG is also a disaster and other rants by kahendricks · · Score: 0

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

      Gee let me take a wild shot in the dark, you need a good crypto system for a mail app your writing. You either are too lazy, don't have the skill or can't afford the development time to write one yourself. So you want to fscking LEECH of the blood and sweat of other coders, stealing and closing up their code. But alas, the only thing you can find for free out there isn't in library form and is under a license which would require you to give your sweat back in turn instead of taking everything for yourself.

    17. Re:GPG is also a disaster and other rants by Anonymous Coward · · Score: 0

      I thought that the upcoming version will support the files-as-directories method of storing metadata.

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

    19. Re:GPG is also a disaster and other rants by aminorex · · Score: 1

      If the computer is not trusted, you can't use
      GPG, period. This is an incredibly stupid excuse
      to make crypto unusuable.

      --
      -I like my women like I like my tea: green-
    20. Re:GPG is also a disaster and other rants by Wumpus · · Score: 1

      cipe has been on my shitlist for a long time for instance.

      Why? Surely not because its source is not available?

    21. Re:GPG is also a disaster and other rants by SilentMajority · · Score: 1

      I think what the guy was suggesting was that if GPG used a more corporate-friendly license like BSD, MIT, etc. that it would have much more wide-spread adoption. Sure, there'd be a few leeches feeding off of that but it would be worth it if it means 25% of computer users have GPG rather than 0.1% of users.

      Apache uses a BSD-style license and doesn't seem to have suffered much as a result.

      Which do you prefer when it comes to GPG? Smaller marketshare and fewer leeches? Or much larger marketshare and more leeches?

      Also keep in mind that Linux didn't need BSD-style license to get popular so his point shouldn't be assumed true for all software.

    22. Re:GPG is also a disaster and other rants by Anonymous Coward · · Score: 0

      So that means you don't know yourself?

    23. Re:GPG is also a disaster and other rants by Anonymous Coward · · Score: 0

      Why don't just lock all your memory (including code) so that it will be in the memory always or fail if call to memory locking fails.

      It needs root privileges at least in Linux, so it's a small security risk. Maybe capabilities (which I don't know so well) could be used to give just access for memory locking?

    24. Re:GPG is also a disaster and other rants by PureFiction · · Score: 1

      True, and I suppose in some point this is splitting hairs. If someone has root, you are screwed. The details I was trying to get at are centered more around non root user applications.

      The reasons I cited are a bit broad and overstated. The devil is in the details, and the rational for no library has a lot more to do with increased vulnerabilities in larger systems sharing an address space and using network communication, etc.

      My understanding of the situation is that the GNU GPG developers felt that the use of GPG is primarily designed around a user doing specific things with specific data, and that the command line mode suited this type use, and protected (somewhat) against sloppy integration into large potentially insecure applications.

      Performance of the exec method obviously sucks in high usage scenarios, but this is not the problem GPG is aimed to solve. If you need a high performance library for serious bulk crypto work, there are a vast majority of libraries out there that provide public and private key ciphers, representation and marshalling wrappers, bindings to sockets and files. Pretty much whatever you want.

      If you are interfacing with GPG you are potentially accessing your secure keyring, private keys, etc. You trust the GNU binary, which has been under development and scrutiny for a while, to access these files. You trust in the way it allocates memory and prepares the entropy pool. Etc.

      Would you place the same amount of trust in a network app with a GUI and other linked libraries? Would you trust this app to use the interface properly, and not circumvent robust features in exchange for speed? I.e. calling some lower level methods directly and passing in entropy from a rand() source, so that its faster? While you are correct that a compromised system is compromised, regardless of linking or executing a command line, the details are different and significant (to me at least).

      Command line invocation separates the GPG app from the invoker by limiting the communication to ARGV, ENV. This is a much more limited interface than the full range of address space sharing of both heap, text segment and symbols that shared library linking implies.

      GPG and the small set of libraries it uses can be configured for watch under tripwire and other such systems. It is very hard to circumvent in this situation. A network app with lots of libs can be compromised on the fly, perhaps an exploit in a rendering engine of a page download over the net. Who knows. This would affect the application, but leave gpg intact (communication to and from the child process could be subverted, but there would be some visibility to this that would not be present otherwise)

      There are convincing arguments against everything I have just stated, and indeed, perhaps it would be worthwhile to have a library with the caveat prominently displayed that security is only as strong as the weakest link in your application, and for a large, GUI, networked app, there could be many, many links.

      You could argue for a library that would invalidate every point I have just made, and I would probably agree. But I see where the GPG developers are coming from, and their rational and resistance against a shared lib (when the C libs that wrap the command line work well) seems reasonable.

      I may change my mind next week...

    25. Re:GPG is also a disaster and other rants by ComputerSlicer23 · · Score: 1
      Yeah, and it's so trivial to upgrade those statically linked binaries every time there is a security problem. Shared libraries are very tricky to do absolutely securely. I'd much prefer running the GPG binary directly as a matter of security. Then as long it is sane in what it statically links in, and what it dynamically links in, and is pretty anal about what environmental hacks it enables/disables (think LD_PRELOAD, or linking with -rpath/-r), or refuses to load.

      Besides, forcing you to lock in memory, and doing other various tricky bits, might be difficult to accomplish in multi-threaded/multi-process. Just the concept of having to hook the cleanup into my cleanup doesn't make me feel warm in fuzzy in the case where a signal gets sent. Making it threadsafe, and removing the races. Doing fun stuff like changing your default umask for when it wants to save a key to your key ring. All kinds of nasties get done. It has special requirements, leave it as an external problem. fork() and exec() are good for you. It keeps you at arms thing. Besides, a buffer overrun, or another flaw in your program could then enable the attacker to read your private key because it's decoded in your memory space now, not in the seperate GPG space. That's not a huge win, but it's a win.

      Kirby

    26. Re:GPG is also a disaster and other rants by chuck · · Score: 1

      So that means you don't know yourself?

      Of course a true zen crypo master must know one's self, before one knows why loopback crypto kludges don't count.
    27. Re:GPG is also a disaster and other rants by iangoldby · · Score: 1

      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.

      While I agree with your insightful comment, I think if encryption was bundled with my email system and enabled by default, I'd just turn it off unless it was completely invisible to me and to everyone with whom I corresponded.

      I understand that anyone can read my emails in transit, and I really don't care. What I do care about is a) the person I'm sending an email to can read it, b) I can read any email I receive, and c) I don't get hassled with warnings about unverified keys etc.

    28. Re:GPG is also a disaster and other rants by Anonymous Coward · · Score: 0

      In Linux, and most variants of Unix, there are two types of libraries. There are the static archives (.a) and the shared objects (.so) (or shared libraries (.sl)).

      Creating an archive will produce the desired library and will have no more "attacks" than a set of objects linked together.

    29. Re:GPG is also a disaster and other rants by Tom7 · · Score: 2, Insightful


      > Besides, a buffer overrun, or another flaw in your program could then enable the attacker to read your private key because
      > it's decoded in your memory space now, not in the seperate GPG space. That's not a huge win, but it's a win.

      And your passphrase, passed over IPC to GPG, isn't? That's just as good as having the private key.

      I don't see any reason why the issues you list can't be addressed in a library. GPG.so can do its own page locking transparent to the client, it can ignore whatever environment variables it wishes, and it can use mutexes to make it thread safe. It doesn't need to change a default umask (??) when writing to a file that exists, and can simply set the file mode itself when it creat()s the file.

      I'm all for OS-enforced abstractions like processes, but I think the issue here is in the design of GPG, not in its basic requirements.

    30. Re:GPG is also a disaster and other rants by kaisyain · · Score: 1

      Who said the library has to be dynamically loaded? I know this is kinda of a big secret that maybe I'm not supposed to be sharing but it is possible to statically link against a library.

    31. Re:GPG is also a disaster and other rants by WNight · · Score: 1

      Open Source is a hobbyist movement. If you say "I can't do X" you'll get a hobbyist level answer. It's somewhat like ham radio. If you say "I can't setup a ham->phone bridge" you'll get people who say "Buy X, Y and Z, wire them together like this, connect to this, and viola."

      You might have wanted a three word answer, but you're in the wrong place. If you want it easy, you don't want a ham radio, you want a cell phone.

      Ditto with open source. It's not intentionally hard, but people aren't wasting time making encrypted filesystems trivial enough for Grandma to use. Grandma is using the cellphone equivalent, Xandros or some other hand-holding distro and doesn't even know crypto exists.

      As long as the community is primarily hobbyist, which the bleeding edge always will be, you'll get this sort of answer. No matter what the community is, ham radio, overclocking, car modifications, etc. Eventually that'll trickle down to your consumer level product and you won't even have to read anything to figure out how to use it.

    32. Re:GPG is also a disaster and other rants by gpinzone · · Score: 1

      What are you worried about? Microsoft is patching their OS to allow Trustworthy computing. That way, only the right version of GPG will run. Let the hackers try to run unregistered software on your box. They won't get very far. Oh wait...

    33. Re:GPG is also a disaster and other rants by ComputerSlicer23 · · Score: 1
      No, it can't enforce the environment variables. Using say LD_PRELOAD, would mean, that I could load my GPG.so from /tmp/hackersTools/GPG.so or by altering LD_LIBRARY_PATH. Can't stop that if you are not the person doing the comiling and linking.

      There are things in UNIX that if you do them in a library, no one will use your library. Setting signal handlers, setting your umask, setting up third party libraries, overriding malloc, fooling with the environment, having limitations on how the things is linked and compiled, a handful of other things, essentially tweaking any settings that are process wide libGPG.so can't do. I'm betting some of them they want to do in the name of security. I'm reasonably sure that GPG has to do some of them as a measure of security (writting handlers to ensure that close down is clean), and a library that does those is useless. Flat out, I'd refuse to use it if it was doing any of those, and I'll bet it does (now I'm going to have to strace the damn thing). It's a library that restricts what I can do, and I wouldn't use it. I'd much rather fork and exec to deal with it.

      I've never compiled GPG from source, so I'm not sure if they do anything special in their build process. It's very easy to know you are running the right GPG, it's the one you get either from the hardcoded path in the config, or it's the one that is in your path. Ensure it's the real "GPG" is pretty easy. Ensuring that everyone who uses libGPG.so is using the right one is tricky, because you never know what sneaky things someone did to get you to load a different library (it doesn't have to be named libGPG.so, ths soname just has to be correct. Now if you modified ld.so to only load libraries signed with a private key, now your talking (of course that is easy to subvert if you can overwrite ld.so, but at that point, you are screwed anyways).

      How you get your password to your GPG is tricky. You are right they could capture it there. It might be a bit tricker to do with way securely.

      Kirby

    34. Re:GPG is also a disaster and other rants by Anonymous Coward · · Score: 0

      Check out the work that is being done on trustedbsd.org, which is based on (and being backported into) FreeBSD 5.X. Also, although not as well documented, FreeBSD 5.X has a storage abstraction layer called GEOM, upon which is built GBDE, "GEOM-Based Disk Encryption". A status report is located here but the FreeBSD email archives are currently the best place to find this information.

    35. Re:GPG is also a disaster and other rants by Tom7 · · Score: 1

      > No, it can't enforce the environment variables. Using say LD_PRELOAD, would mean, that I could load my GPG.so from
      > /tmp/hackersTools/GPG.so or by altering LD_LIBRARY_PATH. Can't stop that if you are not the person doing the comiling and
      > linking.

      Yeah, but so what? I can also take the application binary and mess up its bits. I can change the hard-coded path to the GPG executable so that it executes hacked_gpg. It's only a problem if another user is tricked into running the application with a bogus environment and then types their password into it. But the application has exactly the same problem anyway--once the user types his passphrase into a compromised app, it doesn't matter if it's linked to GPG or communicating over a pipe. Linking with GPG gives you no extra exposure.

      Such a library wouldn't need to "override" malloc. It can use its own implementation that allocates pages (through regular malloc) and then locks them before using them. Insisting that the application turn off core dumps and clean up at exit are pretty benign, especially since the application is handling secure data itself (passphrases), so you'd hope that it is equally careful.

    36. Re:GPG is also a disaster and other rants by ComputerSlicer23 · · Score: 1
      Yeah, and Tripwire will tell me every time you twiddle my bits, you might also have an exploit that doesn't allow you root access, at which point, you can twiddle my bits, but not bits in /usr/bin. I've never actually forced my users to have their .bash_profiles in my tripwire db before, that's a little anal even for me. It won't tell me that you have naferiously changed my environment unless I track down every file that gets source during the login process (I could by keeping track of the appropriate files in /etc/ and ~/.bash_*, but it'd be a real pain unless I had a backup from the last tripwire run to compare the changes).

      I'm not surprised they don't need to override malloc, but you can override a lot of stuff besides just malloc (I'm not familiar enough with GPG, I just know that in C++ code, the only guy who should get to override the new allocator is the guy who wrote int main(), I've had to skip using a lot of great libraries, because they felt that best way to do something was overriding the default allocator, which is why I picked malloc as my example). Hence, signal handlers, the implementation of coring (I'd really like to get my cores while debugging a problem thanks). I've found/diagnosed a number of bugs from the cores of Mozilla via gdb and reported them, I'd be plenty pissed if it had a copy of my private GPG when I shipped it off to the public bugzilla database. I don't use their mailer anymore, but I previously used it with the GPG plugin. It's not terrible hard to ensure that you clear the memory buffer, or write it directly to the tty to ensure your key isn't there (read it one char at a time in raw mode only displaying the stars, never actually having a buffer with the entire string in it). I'm mildly less parinoid about that, assuming the backtrace doesn't show me being in the password reading routine in the stack trace.

      I suppose I should keep track my environment, otherwise they can use my attack on your installation, to create your attack (ie, fiddle with my environment to the point that exec( "/usr/bin/gpg", ...), gets remapped to exec( "/tmp/.hacker_files/gpg", ... ) via a LD_PRELOAD), that still requires a lot of access (ability to create new files, and modify existing files as a local user). At that point, neither way is more secure then the other from the perspective I've been attacking it. However, I still feel more secure about getting my cores and knowing that I can safely send them off to Mozilla.org and they don't have my key in them when I push them out to a public mailing list. I trust them to keep my password reasonable safe. Either via, never keeping the entire password in memory (the best idea, but also the least flexible), or clearing it immediatly after checking it (common practice). Then I only have to worry about cores during the actual password reading process.

      Kirby

    37. Re:GPG is also a disaster and other rants by zenyu · · Score: 1

      Who said the library has to be dynamically loaded? I know this is kinda of a big secret that maybe I'm not supposed to be sharing but it is possible to statically link against a library.

      This doesn't solve the entire problem either. Whatever statically links in GPG would also have to lock pages, which might mean it needs SUID. It is also considered a bad idea in security to have a program any bigger than the absolute minimum size. As OpenSSH has shown lately, even when you do make a program tiny it can still have a flaw. And, as portable OpenSSH has shown, making the program any bigger can introduce even more flaws. If you statically link GPG you have to ensure that not only is GPG perfect, but so is whatever you are linking it into. It is safer to write small programs each of which is robust and then use them together in such a way that you meet your overall security goals. On a workstation it maybe sufficient to ensure that whatever you send out to the internet is encrypted, but you do not need to keep the swap file clean, so you use Mozilla mail to compose your messages and GPG to encrypt them. On a corporate server Mozilla mail + an encrypted swap file may be sufficient. On your NSA server you may want to only allow nano to compose the messages, with mail to send them, and you use a MAC enforcing OS over a 9600 baud terminal to ensure the least information leakage you can get away with.

      BTW The GNU linker is not so good at static linking, you end up with entire object files in your executable for one function, and if you break up your code into one function or global per object file it often forgets to link in some stuff. Dynamic linking is the way to go unless you want to write a better linker...(Remember how slow linking used to be in the Borland days "when things were done right"TM ?) Note MSFT Fanboys: MSFT's linker blows too, I'd be rich if I had a dollar for every time I implemented my VC++ link algorithm "reorder functions in .c file, rebuild all, if no new internal compile error, see if link got further")

    38. Re:GPG is also a disaster and other rants by Paul+Crowley · · Score: 1

      GPG has been adequately defended here. What's wrong with the loopback approach? It has several security benefits - see the first paragraph of my paper proposing a (broken) cipher for this purpose:

      http://www.ciphergoth.org/crypto/mercy/html/intr od uction.html

    39. Re:GPG is also a disaster and other rants by Anonymous Coward · · Score: 0

      With BSD, they don't have to give you source. So, what are you going to compare the accepted source with when a company decides to hide changes ?

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

    1. Re:CIPE is a toy by jpc · · Score: 3, Informative

      hmm, not so sure.

      First, the CRC32 problems only put it on par with ssh 1. Which is still in use by many people I suspect. ok it should have been fixed.

      The padding iisue just means that aes cant be used. afaik cipe doesnt let you change ciphers anyway. Its not that bad - the algorithms it uses are probably safe for a few more years. Plaintext size leaks small amounts of information, so it is not best practise, but not fatal. aes would be nice though.

      The message sequence issue (replay etc) is on the face of it rather bad, except that cipe is designed for carrying ip traffic. Repeating or removing udp messages is fine, and tcp messages do have sequence numbers. So I fail to see how that is a problem.

      And the key exchange is fairly irrelevant as it is basically a private key protocol. They key exchange stuff was an afterthought and I doubt if anyone uses it. Designing public key encryption is much harder and cipe should have stuck to private key.

    2. Re:CIPE is a toy by plcurechax · · Score: 1


      First, the CRC32 problems only put it on par with ssh 1. Which is still in use by many people I suspect. ok it should have been fixed.


      Whether someone else is naked on the Internet does not matter. Insecure software should not be used when better, secure, solutions exist, including free software solutions, e.g. OpenSSH.

      CIPE was poorly designed, the author(s) ignored known failures in similar protocols (e.g. ssh v1, ssl v1), I don't see why anyone should try to defend these problems. Fix them, or if you are a user - ask that they are fixed. Actual security should be a priority in any "security" software.

    3. Re:CIPE is a toy by Miniluv · · Score: 1
      "The message sequence issue (replay etc) is on the face of it rather bad, except that cipe is designed for carrying ip traffic. Repeating or removing udp messages is fine, and tcp messages do have sequence numbers. So I fail to see how that is a problem." This is because you are dumb. Reread the posting to the mailing list to see the sort of attacks that replaying allows, especially in conjunction with the CRC-32 vulnerabilities that allow arbitrary packet insertion, packet modification, etc.

      A quick example is a financial transaction system using CIPE. With no message sequencing I can replay packets that comprise a sequence of transactions which debit and credit accounts (whether they are accounts I want those transactions on, or just random ones is irrelevant), causing these transactions to repeat an arbitrary number of times. Obviously there'd be some additional safeguards that ought to be there to prevent this, but it is a failing of the protocol to not prevent message replay at a lower level. This is fairly basic protocol design.

  11. You can't just slap together a security package. by Meat+Blaster · · Score: 3, Insightful
    Cryptographic programming is one of those disciplines that comingles heavy mathematics, electrical engineering, and programming in the same field.

    One can browse a manual on the topic and write an implementation that technically works (when paired with a similarly shoddily-designed decoder), but be fully unaware that the pseudorandom generator is just that. Or that the ones-complement portion of the crypto engine fails when X=0, weakening the whole thing by sixteen bits while not producing garbage.

    Unlike a crappily-designed game, it's a lot harder to spot when crypto goes wrong. And most of those thousands of eyes supposedly peering over the code aren't looking that hard.

    I'd still contend that commercial crypto has had more and bigger flaws overall, but he's right that the open source process alone isn't going to give you good crypto.

  12. Denied, lame by fire-eyes · · Score: 1

    Nice posting a denied link.

    --
    -- Note: If you don't agree with me, don't bother replying. I won't read it.
  13. D'oh by charon_on_acheron · · Score: 3, Funny

    I checked the wrong damn box.

    I hate Mondays.

  14. Well then, fix it! by coinreturn · · Score: 1, Insightful

    Instead of making yourself look so great by "demolishing the security," why not offer the fixes? Yes, open source can be insecure, but at least it will be public knowledge what those insecurities are, and concerned individuals can make the mods themselves.

    1. Re:Well then, fix it! by Anonymous Coward · · Score: 0

      All you need is one quick easy visit to linuxsecurityupdate.com and you're sorted...

    2. Re:Well then, fix it! by Anonymous Coward · · Score: 2, Insightful

      RTFA. He gave a list of what needs to be done to fix them.

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

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

    5. Re:Well then, fix it! by Anonymous Coward · · Score: 0
      If you read the article, his advice is almost every case is "Scrap this, go learn basic crypto, and try again."


      That's not his advice. His advice is "Stop trying to reinvent the wheel and use the stuff that we already know works, like SSL and IPsec."


      The problem is that there are too many people out there who think that these standards are too complex and so they go and try to make something simpler. But it's the complexity that makes them secure. It's like deciding that 3DES is too complex, so you'll just go use ROT-13 since you can wrap your head around it.


      Now, what WOULD be useful is for someone to refactor OpenSSL into a library that people could actually use. If they could just change a couple function calls, edit their makefile, and it would magically work, we'd see a lot more people using really secure protocols.

    6. Re:Well then, fix it! by ljavelin · · Score: 1
      Whoa! Don't be such a generalist!

      These are the things that should be public knowledge...

      ...unless it's a violation of the Patriot act, HIPAA, Trade Secret protections, or the DCMA.

      ---

    7. Re:Well then, fix it! by switcha · · Score: 1
      Instead of making yourself look so great by "demolishing the security," why not offer the fixes?

      Listen, buddy if everyone in the world actually tried to do something about the things they bitch about, the world would be a much, much better

      *BZZZT* [Ashcroft-o-nator//activate]: Resp: Sense/keyword/'better'
      Calling lib: 'terist/alredi/won'
      Sanitizing: output_'scarier'
      [Ashcroft-o-nator//deactivate]
      scarier place!
      --
      You know what? ... A little club soda *did* get that out!
    8. Re:Well then, fix it! by coinreturn · · Score: 1

      If you read the article, his advice is almost every case is "Scrap this, go learn basic crypto, and try again." I think it's great that he's getting the word out that it's insecure.

      Perhaps, but my point still stands - if he has the knowledge to determine it is insecure, and knows basic crypto (which by the quote he must claim he does), then instead of criticizing, he should offer a solution instead of putting down open source efforts.

    9. Re:Well then, fix it! by coinreturn · · Score: 1

      I would hardly consider "Scrap this, go learn basic crypto, and try again," to be useful advice on how to fix problems. That is just plain ivory tower I'm-smarter-than-you attitude.

    10. Re:Well then, fix it! by Anonymous Coward · · Score: 0

      And the original point of the original article is that the DESIGN is so broken, that it should be scrapped. A simple "a bit of code here, patch that over there" won't work when the underlying principles are what he claims are broken. You can't offer a solution without writing the whole program for them.

    11. Re:Well then, fix it! by Anonymous Coward · · Score: 0

      He went into a lot more detail than that. Or did I read a different article to the one you read?

    12. Re:Well then, fix it! by Anonymous Coward · · Score: 0

      And you find it an advantage that it's public knowledge what the insecurities are?

      It says that some of them were reported two years ago, and still not fixed. It took only two weeks for a certain MS exploit to pop up, after the insecurity became public knowledge.

    13. Re:Well then, fix it! by Simon+Garlick · · Score: 1

      if he has the knowledge to determine it is insecure, and knows basic crypto (which by the quote he must claim he does)

      Are you telling me that you're trying to contribute something to a crypto-oriented discussion, and you don't know who PETER fucking GUTMANN is?

    14. Re:Well then, fix it! by LilJC · · Score: 1
      I agree - the huge advantage of OS is being reviewed by people like Gutmann in addition to others learning from him. If the community takes the stance that they'll take a shot at something and when it's found to be in inadequate to let whoever found it fix it, then we're worse off than closed source because our developers will never learn.

      Personally, I think his review is invaluable, and if anybody who read it didn't learn something, maybe they should have been working on the solutions or at least have made the same post at an earlier date.

      OTOH, I don't want to say it's the sole responsibility of the original authors to pick up the slack - that levels the playing field between OS and closed to a large extent.

      His advice plays well out well in my head. Anyone polishing their crypto skills? You've got some very good guidance right now on some important projects. Run with it.

      --

      The only thing more dangerous than a file named -rf is renaming it -rf\ /
    15. Re:Well then, fix it! by plcurechax · · Score: 1

      His advice is "Stop trying to reinvent the wheel and use the stuff that we already know works, like SSL and IPsec."

      The problem is that there are too many people out there who think that these standards are too complex and so they go and try to make something simpler. But it's the complexity that makes them secure. It's like deciding that 3DES is too complex, so you'll just go use ROT-13 since you can wrap your head around it.


      Good insight. SSL in commonly useage is version 3 (1995) the first version (1994) being seriously broken, and version 2 (also 1994) had serious flaws, and there is TLS (RFC 2246) 1.0 is a standard and recommended extensions are available. It has taken a lot of experts a long time to get it right, and it needs minor maintance from time to time.

      Now, what WOULD be useful is for someone to refactor OpenSSL into a library that people could actually use. If they could just change a couple function calls, edit their makefile, and it would magically work, we'd see a lot more people using really secure protocols.

      The reason OpenSSL is so complex is that it tries very hard to be the highest performance (read: platform and processor specific assembly) on a wide variety of processors and OSes, attempts to implement things correctly and includes tests to verify the library.

      OpenSSL is not that hard for the application developer to actually use, but I am afraid that cryptography (and computer security in general) demands that the implmenter has a bit of a clue, and cannot simply #include and have it magically secure everything.

      There is no silver bullet, even in cryptography.

    16. Re:Well then, fix it! by coinreturn · · Score: 1

      Are you telling me that you're trying to contribute something to a crypto-oriented discussion, and you don't know who PETER fucking GUTMANN is?

      No reason to use nasty language. Actually, I was contributing to the discussion based on the Open Source and slamming instead of fixing aspects, regardless of the fact that it is about crypto.

  15. Issues... by dnotj · · Score: 2, Informative

    #1 Links to URLs not on standard ports stink. I'm stuck behind a very strict http proxy.

    #2 Links to message lists stink to. The location of the content is not obvious. Maybe the offport link contains some valuable information.

    #3 I did find the message that is the topic of this post. The material in the message seem very "dated".

    .dn

    --
    No more Micro$oft bashing from me. Its like bashing at the special olympics.
  16. inherently flawed! by Anonymous Coward · · Score: 0

    Humans created computers.
    Humans are inherently flawed.
    Humans created the software
    Then it makes sense that software would be herently flawed.

    My .5 cents :)

    1. Re:inherently flawed! by jeremiahstanley · · Score: 0, Offtopic

      This is suffers from the Existential Fallacy. What makes you think that humans even exist? Sheesh! Kids these days with their purple unicorns...

    2. Re:inherently flawed! by Zerikai · · Score: 0, Offtopic

      Your logic is flawed. The creations of flawed entities are not necesarily flawed.

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

    1. Re:Software popularity by Yottabyte84 · · Score: 1

      I use vtun for monitring equipment behind NAT and getting log messages from it. Also administering it from time to time.

    2. Re:Software popularity by chill · · Score: 1

      Exaclty!

      I don't know anyone running Linux using anything other than SSH/SSL or IPSec tunnels for VPNs.

      Demolishing a house of cards isn't exaclty a difficult task.

      Hell, the beta's for Red Hat Enterprise AW3 have IPSec tunnel wizards. IPSec is probably where it will all be at for a while -- it is lower down on the stack than SSH and while can be a bitch to configure, once done is pretty transparent to applications.

      --
      Learning HOW to think is more important than learning WHAT to think.
    3. Re:Software popularity by Anonymous Coward · · Score: 1, Interesting

      How about OpenVPN?

      It's usually used to tunnel IP, using UDP datagrams on port 5000 to get there. The encryption and authentication happens with OpenSSL.

      You can also make it go over TCP if necessary, and it can bridge Ethernets if you need more than just IP.

      All of this happens in userspace, since it uses the universal TUN/TAP driver which is already in the mainline Linux kernel. It lets you avoid a bunch of evil things like the complexity of IPSec or the TCP over TCP problems with a PPP-SSH tunnel.

      It's obviously written by someone with a few clues, since it will drop root and become a specified user and group if you like. It'll also chroot into some empty directory beforehand if you put that in the config file.

      I first heard about it here, so I'm giving back by mentioning it again.

    4. Re:Software popularity by pivo · · Score: 1

      vtun over SSH 2 (they only sane way to use vtun over the internet) isn't a bad option, though FreeSWAN is probably better.

    5. Re:Software popularity by Anonymous Coward · · Score: 0

      Hello ... glad to meet you. Now you know 1 person using vtun. If you and I were to travel to meet a couple more of my aquaintances you would know 3. We're out there ... just not alot of us.

  18. Ah.... reminds me of the early days. by solios · · Score: 3, Insightful

    Back in the day, whenever I'd bitch about how window managers lacked basic functionality, how the default IP tools didn't do multiple hot-switchable configurations, about the lack of decent documentation in the distro, about some aspect of the application that didn't work, shouldn't work that way, or had TOO MANY OPTIONS.... the response was ALWAYS "dude. The source is THERE. FIX IT YOUR OWN DAMNED SELF." With "That's a FEATURE, not a BUG." being a close second. To which I'd usually reply "I'm an ARTIST, not a CODER," resulting in a flamewar about the quality of the Gimp, but that's a different story.

    Things like this will get fixed when the people maintaining the packages start doing the gruntwork that gets those little bits enterprise grade- in other words, doing the hard, annoying, pain in the ass shit that you pretty much have to get paid to do, because nobody wants to do it in their free time. Big bonus points to open source software companies for making a BIG effort to do exactly that. :D

    1. Re:Ah.... reminds me of the early days. by Tony+Hoyle · · Score: 1

      Fine, except the guy who wrote the article *is* a programmer - he produces a semi-commercial rival to openssh (cryptlib, which was Windows only last time I used it 6 months ago).

    2. Re:Ah.... reminds me of the early days. by Anonymous Coward · · Score: 2, Funny

      The fact that you refer to "back in the day" as a time when the Gimp was available makes me feel very, very old.

    3. Re:Ah.... reminds me of the early days. by solios · · Score: 1

      Awww. :(
      Well, if it's any consolation, I've only been Aware of Linux since 1998, and didn't start attempting to use it until 2000. Now it's a daily thing for me, and a critical part of my network operations. :)

    4. Re:Ah.... reminds me of the early days. by Anonymous Coward · · Score: 0

      Cryptlib has been multi platform for many years.

    5. Re:Ah.... reminds me of the early days. by Anonymous Coward · · Score: 0

      Your girlfriend's ass is a critical part of my network operations. :)

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

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

    In other news, Bear shits in woods.

  20. Remember. by Anonymous Coward · · Score: 0

    The key to secuity is G(3X/J^G)

    Where G is the speed of the computer, X is the length of the key and J is the time it takes to encrypt it.

    For maximum security at low cost
    G = 10 Gigaflops
    X = 25 bits
    J = 10 minutes.

  21. Re:Well... by Anonymous Coward · · Score: 0, Offtopic

    Erm, no. Linux is considered more secure than Windows because it DOESN'T LEAVE THE RPC PORT OPEN BY DEFAULT, and a billion other things.

    Look, we're not talking about Syllable or OpenBeOS or something here. Linux has 20 to 30 million users worldwide, and yet it never has anything like the massive problems Blaster and SoBig etc.

  22. Re:Well... by Geopoliticus · · Score: 0, Offtopic

    Do you read Slashdot!?! Since when are we anti-monopoly or anti-Microsoft for that matter? Troll.

    *giggle*

  23. Of course, the more obscure package, the more bugs by Kjella · · Score: 1

    Maybe not the bugs that are found, but I think all code on average starts out with pretty much the same amount of bugs, quite simply because programmers aren't perfect. In time, they iron out the bugs and it gets better.

    That's why I hate it every time there's an exploit in a major package and some people go "Switch to our pre-alpha sourceforge package that's *so* much better and safer". Maybe because a bunch of crackers/hackers/developers (usually in that order) haven't looked it over and found the subtle exploits yet?

    Kjella

    --
    Live today, because you never know what tomorrow brings
  24. Re:I think... by dnoyeb · · Score: 1

    Thats true but it does not matter.

    The quality of open source software is directly related to its desirability / popularity, in general.

    things like ssh, pgp, and mozilla are pretty high quality, and have fast turn arounds on bugs. Not perfection, but quite efficient.

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

    1. Re:So some OSS crypto products suck... and? by tarquin_fim_bim · · Score: 1

      "OSS creates all manner of bad software because ANYONE can code something up and release it."

      As we well know, all shareware is subjected to the most stringent of audits by the proprietary software community prior to release.

    2. Re:So some OSS crypto products suck... and? by AntiOrganic · · Score: 3, Insightful

      I don't think it's fair to say that "OSS creates all manner of bad software because anyone can code something up and release it" because they're perfectly capable of doing that without giving you the source too. At least here we have the ability to see the problems and avoid that software rather than taking the author's word that it's SUPAR 1337, which is much better than finding out much too late that our new IP tunneling solution that we've deployed on a 10,000-machine corporate network needs to be replaced with something else, like some people probably discovered with the PPTP issue.

      Like is highlighted in the article, these problems with "dodgy" software tend to arise when the author decides to reinvent the wheel, but neglects the tire and the axle grease.

      Everyone wants to make a name for themselves by being the next Richard Stallman, rather than working on the established products with comprehensive peer review and years of code history. Why write new protocols that are doing the same thing that SSH is doing? It's nonsensical.

      There's usually very little real reason to create these abominations. If an existing project doesn't have a feature you want and you're capable of coding it, for God's sake, code it to work with the existing product. I'm willing to bet that the guys behind these protocols got flat-out laughed at by anyone doing real cryptography work, but still somehow felt that they were right all along.

    3. Re:So some OSS crypto products suck... and? by Coryoth · · Score: 1

      "As we well know, all shareware is subjected to the most stringent of audits by the proprietary software community prior to release."

      Sorry, I should have been clear. I wasn't trying to imply that this was something bad about OSS, merely that just because you found some bad OSS doesn't mean all OSS sucks. Just because you found some particularly poor text editor doesn't mean OSS doesn't produce good text editor. Just because you found poor Crypto doesn't mean that OSS sucks at Crypto.

      As you point out, I'm sure if we looked at the shareware world we could find plenty of equally shoddy crypto products - in fact I KNOW we can, I've seen some. I've seen some very shoddy payware crypto products.

      My point was simply that the existence of bad Crypto products doesn't really mean much of anything.

      Jedidiah

    4. Re:So some OSS crypto products suck... and? by plcurechax · · Score: 1


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


      And if it does fail, it may not be obvious. The failure controlled by an attacker is not random, and may never be seen by the user.

      You notice when your server crashes, you notice then the power goes out, but do you notice when the attack uses the "grandmaster chess attack" against an insecure VPN solution? In most cases not until after money is missing from the user's bank account (or whatever the VPN was protecting).

  26. my two cents by jeffy124 · · Score: 3, Insightful

    Linux in general is more popular than this project. That popularity gives it more eyes to keep watch on it, and shorter turnarounds when problems are found.

    As for this project (CIPE), I personally have never heard of it. Indeed, neither has the poster from that mailing list: A friend of mine recently pointed me at CIPE, a Linux VPN tool that he claimed was widely used but that no-one else I know seems to have heard of.

    --
    The One Rule Of Chess You'll Ever Need: Don't play someone who carries a kit in their bookbag.
    1. Re:my two cents by rjamestaylor · · Score: 1
      Linux in general is more popular than this project.

      The problem is that RedHat is more popular than Linux :)

      What I mean is that people install and use RedHat Linux without understanding the technology they're using -- which is wonderful since Hacker-only OSes are as useful and pervasive as GNU Hurd. But RedHat's VPN offerings are limited (at least on the 7.x through 9 series) to CIPE. No support for IPSEC is included -- if you want IPSEC you'll have to look outside of RedHat's offerings.

      This means RedHat users who want to VPN over insecure networks are using CIPE by default.

      If CIPE is broken, architecturally or implemenationally, then RedHat is broken w/r/t VPN implementations.

      This is a big deal.

      --
      -- @rjamestaylor on Ello
  27. Funniest quote from the e-mail by Anonymous Coward · · Score: 0

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

    Don't hold back, Peter. Tell us what you really think!

  28. Re:Well... by Anonymous Coward · · Score: 0

    20 - 30 million users? Thats all?

    Windows has about 20 - 30 BILLION users and about 20 - 30 million PIRATED USERS....

    Let me know when Linux starts to add about 3 more zeros onto their numbers.

    Thanks.

  29. One word: by bersl2 · · Score: 1

    What's even worse is that some of the flaws were pointed out nearly two years ago, but... some of the protocols still haven't been fixed.

    Unacceptable.

    There's no other way of putting it.

  30. Re:Well... by noahm · · Score: 2, Insightful
    Linux is only considered more secure than windows because it has less attacks. Not to mention the script kiddies don't bother to learn Linux, they learn Windows which is on their systems at school, work, home, at the library, at kinkos, at their friends houses.... etc...

    This crap got modded up??? I felt sure when I first saw the comment that it would it -1 at mach 3. Especially in light of articles like this one.

    Not only that, but if you think about it, blaster and slammer and all those thing... They were only single "attacks", writen presumably by one single person. The nature of the insecurities is what allowed these worms to be as disruptive as they were. You imply with your post that the security of a system is inversely proportional to the scale of the deployment of that system. I'd love to see some evidence of that.

    noah

  31. 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)
    1. Re:vtun and ssh by TheCrazyFinn · · Score: 2, Informative

      vtun+SSH Port forwarding is the standard for quick+dirty+secure VPN's. vtun is simply a tunneling protocol with some basic security, it is not a secure product in it's own right. Add SSH and it's actually reasonably secure.

      It also offers a couple of other advantages. Combined with SSH, it's actually secure when punching through a NAT'ing firwall (IPSec isn't since AH and NAT don't co-exist) and it's capable of tunneling at layer 2, so you can tunnel non IP network protocols (It can emulate a serial connection or an Ethernet connection)

      --
      "You've got an invalid haircut" -Warren Zevon - Life'll Kill Ya
    2. Re:vtun and ssh by vadim_t · · Score: 2, Interesting

      You should try Perl.

      You set up a socket, via either IO::Socket::INET, or IO::Socket::SSL (which of course requires a bit more mess to pass the keys, etc)

      Whatever method you use, you can use IO::Select on it.

      If this works in Perl, it can't be impossible to make some wrapper to make SSL as transparent in C as it is in Perl.

    3. Re:vtun and ssh by Anonymous Coward · · Score: 1, Interesting

      Except, gee whiz, setting up an SSL connection is not identical to setting up a TCP connection. For one thing, you're supposed to check the certificate chain, which is something that requires your application to throw some logic behind. This is not functionality that can be automagically subsumed into the operating system (at least, not without inventing another API to do it). While OpenSSL may not be pretty or particularly well-documented, the API does cover all the bases.

  32. So use a Linux IPSEC implementation instead by whoever57 · · Score: 4, Informative
    --
    The real "Libtards" are the Libertarians!
  33. Re:Well... by Anonymous Coward · · Score: 0
    When (and i'm sure it's only a matter of time) Linux becomes a valid second choice for the home user, then you will start to see way more vulnerabilities being brought into the light and Red Hat will have security updates every week much like "the dreaded M$".

    You guys keep on bringing up the same point, though I don't think you know what you're saying. If you aren't trolling, please provide light and further understanding instead of what seems to be an unfounded assertion.

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

    1. Re:openvpn is much better by Anonymous Coward · · Score: 0

      Is it really that good (secure), or is it just that nobody who knows what he's talking about ever took a good look at it?

      This isn't meant as criticism on OpenVPN, but a question because I'm seriously considering starting to use it.

      I'm asking because I have a test setup running, and in less than a week after setting it up, I already had two hacking attempts that went straight to the correct port number (it's not running on the standard OpenVPN port), without trying to access any other port.
      What kept them out and logged the attempts is a firewall that allows only one certain IP address onto the tunnel's port.

      I hope it was just somebody who looked over my shoulder while I was setting it up on the remote side (there were a few technicians at work there).

    2. Re:openvpn is much better by plcurechax · · Score: 1

      If you are looking for a good vpn package for linux,

      So how do we know it's secure?

      It doesn't look like snake oil, but how do we attempt to verfiy its security claims?

      I don't see any documents descripting its protocols and security model in detail.

    3. Re:openvpn is much better by cdyson37 · · Score: 1

      Well, its as secure as the technology it uses, and it uses the OpenSSL library. So if you buy online with your credit card (on linux/other os'es with openssl) you've already taken for granted that it is. As far as I can tell that's pretty secure.

      FreeS/WAN looks good too, but a bit more complicated (anything mentioning custom DNS records is offputting in my book - especially since I can't have custom and web redirection - damn pity).

  35. 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).

  36. Re:Arm chair security experts--great point by Anonymous Coward · · Score: 0

    This is one of the biggest flaws in the OSS mentality, this "shut the hell up and fix it yourself" nonsense. I've seen it countless times, as I'm sure almost everyone reading /. has, and it's one of the reasons why mainstreamers don't like Linuxites. It's also one of those things people here do that makes Bill Gates grin like the star quarterback getting a hummer from two cheerleaders after he's won the big game.

  37. Karma whoring and a gross misrepresentation by Anonymous Coward · · Score: 2, Interesting

    If you ignore automated worms and mail viruses, Linux/Unix has traditionally had far more attacks than Windows. Even a few short years ago, you could put a unpatched Windows box on the Internet and would be largely ignored. Not the case with something like RedHat Linux, which would be scanned and hacked within hours.

    The "skript kiddies" like hacking Linux & Unix because it's "elite" and has usually has tons of tools like compilers installed. (Also, the Unix community was far ahead of Windows people with "open disclosure", which meant it was really easy to create hacks.)

    Anyone else remember the t-shirt "My other computer is your Linux box". Little joke at the expense of the n00bness of most Linux users.

    Oh, and RedHat already does nearly weekly security updates and has done so for years.

    1. Re:Karma whoring and a gross misrepresentation by Anonymous Coward · · Score: 0

      Hi Mr. Troll.

      "you could put a unpatched Windows box on the Internet and would be largely ignored."

      Unpatched 2000/XP lasts about 10 minutes before it's infected to the point of needing to be slapped with a large penis-sound-wave.

  38. vtun by FrostedWheat · · Score: 1

    vtun was never designed to be totally secure. It even says so on the website. Still I admit, two years is a lot of time for someone to come up with something. Shame, cause it's a really nice program.

    Anyone out there up for the challange? (I'd try, but I'd have no idea where to even start!)

    1. Re:vtun by gl4ss · · Score: 1

      from the vtuns faq ** 1.19 How secure is VTun ?
      Well. VTun doesn't try to be the MOST secure tunneling software in the
      world, it tries to be fast, stable, rich of features, easy to use
      and secure enough instead.
      VTun uses Challenge Based Authentication and doesn't transfer passwords
      in clear text. Encryption module uses MD5 for 128 bits key generation
      and BlowFish algorithm for actual data encryption.
      There could be some weaknesses in key generation method, we will try
      to address them in future releases.

      1.20 Who has developed so nice and cool software ?
      Thanks :). You can find list of VTun team members on the web site or
      in the 'Credits' file in VTun package.

      1.21 I don't like VTun. Where can I send complains ?
      You can send them to /dev/null. **

      obviously the guy 'demolishing' linux security never bothered to read either 1.19 or 1.21 on it.

      --
      world was created 5 seconds before this post as it is.
    2. Re:vtun by Anonymous Coward · · Score: 0

      Did you read the code snippets in the article?

      Using libc rand() in any crypto product for anything is just...1.19 is not an excuse, it's not a matter of being "perfectly secure" vs. "secure enough", it's a matter of having half a clue about crypto.

    3. Re:vtun by gl4ss · · Score: 1

      they also tell you to tunnel over ssh if you want security.

      --
      world was created 5 seconds before this post as it is.
  39. Well put by indole · · Score: 1, Redundant

    One particular quote:

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

    pretty much sums up the rest of the post.

    --
    (2,3-Benzopyrrole)
  40. Windows is Not Attacked More by repetty · · Score: 0, Troll

    Sorry, dude, the news is pretty much out on this... per installation, *nix is attacked more than Windows.

    Maybe you were on vacation or you trashed the news with the rest of your Windows virus-infected email.

    BTW, troll, troll, troll.

  41. Re:Well... by Anonymous Coward · · Score: 0

    Mods, please keep in mind that this fellow is a known troll.

    Evidence here:
    http://slashdot.org/comments.pl?sid=78966&c id=6995 224
    http://slashdot.org/comments.pl?sid=78128&cid =6936 234

  42. Re:Well... by Anonymous Coward · · Score: 0

    30 BILLION? I think not, you fucking moron. Go look up the estimated population of the world.

  43. Well duh? by miffo.swe · · Score: 1

    Many projects arent aimed at production at all and thats all dandy in my book. If every piece of open source became mysteriously secure by accident and voodoo i would be much surprised. Ofcourse there will be insecure and shoddy apps but you know what?

    With open source the users can migrate without a penny to something more secure. The difference as i see it is that you can choose what authentication/web/shadowing/crypt you want by yourself and you are not in the hands of someone else. You are responsible for the security, not someone else that you just put the blame on. A frightening thought to some but a bliss to the likes of me.

    I am a grown up and i can make my own decisions.

    --
    HTTP/1.1 400
    1. Re:Well duh? by Acidic_Diarrhea · · Score: 1

      You bring up a misconception about what it means to be "open source" when you say "with open source the users can migrate without a penny to something more secure". This is not inclusively correct. A commercial product may be open source and still cost a great deal of money - the only neccescary condition is that the source code is freely available to the end user.

      --
      I hate liberals. If you are a liberal, do not reply.
    2. Re:Well duh? by Anonymous Coward · · Score: 0

      "With open source the users can migrate without a penny to something more secure."

      Such a migration is never free, as it always requires man hours. As the number of computers increases, the cost becomes very non-trivial.

  44. What a big waste of time by pbcaston · · Score: 1

    What a big waste time of so Peter Gutmann found two programs that are not secure. Gotta ask your self is anyone maintaining them ? Does any one care ? There are few M$ programs that have paid programmers that aren't secure XP, w2k. Need I say more.

  45. Re:So use a Linux IPSEC implementation instead by Anonymous Coward · · Score: 0

    or: ISAKMPD

  46. from the VTUN page : by painehope · · Score: 3, Interesting
    1.19 How secure is VTun ? Well. VTun doesn't try to be the MOST secure tunneling software in the world, it tries to be fast, stable, rich of features, easy to use and secure enough instead. VTun uses Challenge Based Authentication and doesn't transfer passwords in clear text. Encryption module uses MD5 for 128 bits key generation and BlowFish algorithm for actual data encryption. There could be some weaknesses in key generation method, we will try to address them in future releases.
    ...
    1.23 Can I use vtun over SSH ? Yes, via the port forwarding feature of ssh. Don't enable vtun's encryption as ssh does its own encryption. Also, make sure to select the tcp protocol as SSH can forward tcp but not udp. An example session might look something like this: home$ ssh -L 5000:localhost:5000 work.megacorp.com (authenticate if necessary) work$ vtund -s home_tunnel_config ... home$ vtund home_tunnel_config localhost

    Now, having said that, I use VTUN and haven't had any problems. But then again, I also have the boxen firewalled to hell and back, no services allowed but SSH from a few known hosts, no root SSH, etc. So even if you do crack my key, you're not getting much that will get you anywhere.
    While I don't consider it the most secure tool, it does the trick well enough for now. Kudos to the VTUN team, and kudos to Peter for his examination.

    --
    PC moderators can suck my White pierced, tattooed dick. If you think pride == hate, s/dick/Aryan meat mallet/g.
    1. Re:from the VTUN page : by BLAG-blast · · Score: 1
      Now, having said that, I use VTUN and haven't had any problems. But then again, I also have the boxen firewalled to hell and back, no services allowed but SSH from a few known hosts, no root SSH, etc. So even if you do crack my key, you're not getting much that will get you anywhere.

      That's the spirt, I like to see people with faith in the software they use and the way they configured it!

      So go on, post your IP address. Please!

      --
      M0571y H@rml355.
    2. Re:from the VTUN page : by Binestar · · Score: 1

      That's the spirt, I like to see people with faith in the software they use and the way they configured it!

      So go on, post your IP address. Please!


      Mine is 127.0.0.1 and I havn't had a breakin yet! But I did break into your computer and just to prove it, I set my password to the same password you use and copied all your files down only my machine! Feel free to connect and look around.

      --
      Do you Gentoo!?
    3. Re:from the VTUN page : by plcurechax · · Score: 1

      Now, having said that, I use VTUN and haven't had any problems. But then again, I also have the boxen firewalled to hell and back, no services allowed but SSH from a few known hosts, no root SSH, etc. So even if you do crack my key, you're not getting much that will get you anywhere.

      Security failures are typically not obvious. They are not like a normal (accidental) failure which tends be random and uncontrolled so it is apparent to the user. An attacker that does not what her attack known, you likely won't know if they gain unauthorized access to your VPN or internal network.

      Note that the attacker does not need your VPN keys, they simply bypasses the VTUN attempt at security, and can possibly gain direct access into your VPN or internal network.

      While I don't consider it the most secure tool, it does the trick well enough for now.

      How can be certain that an attacker is not breaking into your network?

  47. Original of quote by David+Gerard · · Score: 2, Informative
    The original of this is on http://www.jwz.org/doc/linuxvideo.html:

    "Whenever a programmer thinks, "Hey, skins, what a cool idea", their computer's speakers should create some sort of cock-shaped soundwave and plunge it repeatedly through their skulls." - Makali.

    --
    http://rocknerd.co.uk
  48. 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?

  49. vtun security: ssh by kwerle · · Score: 1

    I've used vtun for years and years. It's always been a nice, easy system to set up.

    I also always turned off security on it - it's primary purpose was always to be a tunnel solution, not so much a security tool. What's more, I don't open any more ports on my server than I need to - I bet there are buffer overruns in vtun...

    I always tunel vtun over ssh. Problem solved.

    I need to look into openvpn (http://openvpn.sourceforge.net/).

  50. Re:Well... by Anonymous Coward · · Score: 0

    yeah but he's a really GOOD troll

    http://www.slashdot.org/~greymond

  51. Re:Well... by Anonymous Coward · · Score: 0

    Linux is only considered more secure than windows because it has less attacks.

    Troll.

    Your statistical analogy is based on an irrational premise. Having more or fewer Linux systems does not alter their vulnerability to attack. Security relates to design, not demographics.

  52. 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
    1. Re:Talk about stating the obvious! by anubi · · Score: 2, Interesting
      Its frustrating to be out of mod points. My parent post hit the nail on the head.

      I, for one, feel a helluva lot more comfortable when not only me, but others well-versed in the technology are privy to its inner workings and have verified its core paradigms are valid.

      This reminds me of those old mechanical G&S security locks we used on top secret stuff. You could examine the lock all you wanted. You could take it apart and reassemble it. You could know exactly how it works. And still be helpless if you found yourself on the wrong side of a locked lock.

      I have some of those old G&S locks on my house that I bought from Surplus at the Aerospace contractor I used to work at. I know nobody's coming through the back door without first destoying the door, but in the event I lock myself out of the house, I can go around back and dial myself back in.

      To me, Top Security is security that everyone has looked at, yet has no idea how to crack given they know every detail of its implementation, and find themselves helpless if they are "locked out". You can rest assured that on any "security based on obscurity" paradigm, someone out there will know the "obscurity" part and will have free reign.

      The open-source system is working. Now everyone, not just the crooks, know where the vulnerabilities are, and those vulnerabilities should be addressed post haste. "Faith" is for religions, not for assurance you are running a secure system.

      There is no reason why just the crooks will know how to compromise a secure system. NO-ONE should know how to compromise a secure system.

      --
      "Prove all things; hold fast that which is good." [KJV: I Thessalonians 5:21]

    2. Re:Talk about stating the obvious! by Anonymous Coward · · Score: 0
      Right, and if this was an article about insecurities in Microsoft (sorry, "M$") products, everyone would be raving about how the open source crypto implementations are "the perfect alternative" or, more commonly, "teh bomb", and posting links to these very same projects. The classic "yeah, we have that - your search is over" egocentrism becomes evident when someone asks about alternatives to "evil" commercial software. More often than not they know nothing about the projects, but Google tells them they're a close match. So clueless noobs get a life-saving link and open source looks fantastic because it has 174 different alternatives for the same thing. Weeee. The problem is they're always abandoned or in the "1 - Alpha - Looking for a graphics designer" stage.

      Sometimes reality sucks, but rationalizing that "all software has bugs" when open source turns out to be not so fantastic and bashing everyone else for the same reasons is the epitome of stupidity.

    3. Re:Talk about stating the obvious! by Anonymous Coward · · Score: 0

      Then how come so many vulnerabilities are discovered in closed-source software, hmm? There's more than one way to skin a goose, and if you don't have the source code for your goose, you have to skin it!

  53. Re:Well... by Anonymous Coward · · Score: 0

    uh those links didn't work for me?

  54. Paragon of good crypto design? by Anonymous Coward · · Score: 0
    From the e-mail:

    ...paragon of good crypto design.

    Wouldn't it be less redundant to say "paragon of crypto design"?

    1. Re:Paragon of good crypto design? by Hatta · · Score: 1

      Are you implying that it's not possible for someone to be a paragon of bad crypto design?

      --
      Give me Classic Slashdot or give me death!
  55. Re:Well... by E-Rock · · Score: 1

    Of course when no one applies the patches, you'll get some nasty events.

  56. Re:Here's a little security script I run by Anonymous Coward · · Score: 0

    Use File::Find instead. And don't forget the -w switch!

  57. 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
    1. Re:I think I see why these haven't been fixed. by apankrat · · Score: 2, Interesting

      Freshmeat activity level is not necessarily a good indicator for CIPE, which comes bundled with some linux distro. I know quite a few people who were aware of CIPE weaknesses and still used CIPE for exactly that reason - it came bundled.

      --
      3.243F6A8885A308D313
    2. Re:I think I see why these haven't been fixed. by albanac · · Score: 1
      Freshmeat activity level is not necessarily a good indicator for CIPE, which comes bundled with some linux distro. I know quite a few people who were aware of CIPE weaknesses and still used CIPE for exactly that reason - it came bundled.

      Which says a great deal about the efficacy of simplicity in software acquisition. If we still needed it pointed out since the mid-nineties. It is nice to see, however, that some of the 'commercial' entities in the Open Source world are learning from their much more experienced brethren; and it's also nice to see that reality bites, and OS users are just as inclined to be under-informed and inadequately energetic as their Windows-using counterparts.

      ~cHris
  58. Security Disasters vs. UI Ugliness Messes by billstewart · · Score: 1

    The main article here isn't about security packages that are uglier than dirt, it's about "security" packages that are insecure. I'm not aware of significant security problems with GPG (as long as your trust models and operating environment are compatible with its requirements and capabilities), and you appear to be ranting about how ugly it is to use. Well, we all *knew* that...

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
    1. Re:Security Disasters vs. UI Ugliness Messes by Onan · · Score: 1

      The fact that no one uses it significantly alters the amount of security it provides.

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

  60. fs crypto in openbsd by Anonymous Coward · · Score: 1, Informative

    here

    so whats wrong with loopback?

  61. Frankly, CIPE is crap by Anonymous Coward · · Score: 0

    CIPE is junk. It isn't worth the code that is written to amke it up.

  62. Re:Well... by Anonymous Coward · · Score: 0

    Its quite obvious what he's saying to anyone who approaches these issues with an open mind.

  63. Wow by Anonymous Coward · · Score: 0, Funny

    Two crypto tools, wanna-be PPTP alternatives, demolished. That leaves Linux with at least 6234234342372589255787895478 more.

  64. +5 Insightful? by Sanity · · Score: 0, Insightful
    Lets conduct a little case-study on what is wrong with /. moderation:
    Cryptographic programming is one of those disciplines that comingles heavy mathematics, electrical engineering, and programming in the same field.
    How much electrical engineering was required to create GPG? Are my emails less secure because I haven't got my GPG PCI board plugged in? Still, he did use the word "cryptographic" so +1 Insightful.
    One can browse a manual on the topic and write an implementation that technically works (when paired with a similarly shoddily-designed decoder), but be fully unaware that the pseudorandom generator is just that.
    A pseudorandom generator is pseudo-random? Give that man a cigar. Still - he did say "pseudo" so another +1 Insightful.
    Or that the ones-complement portion of the crypto engine fails when X=0, weakening the whole thing by sixteen bits while not producing garbage.
    Ooh! X=0 - why thats an equasion! +1 Insightful!
    Unlike a crappily-designed game, it's a lot harder to spot when crypto goes wrong.
    Brings gaming into it - we all like games - and we like the word "crap" - +1 Insightful!
    I'd still contend that commercial crypto has had more and bigger flaws overall, but he's right that the open source process alone isn't going to give you good crypto.
    Wow - criticizes the established doctrine of Open Source, what a rebel! +1 Insightful!
    1. Re:+5 Insightful? by DeltaSigma · · Score: 2, Funny

      Oh my god! Which ones the intelligent one?! Which one's questioning open source!? Who's the troll?! I need an adult!

    2. Re:+5 Insightful? by Anonymous Coward · · Score: 0

      Fields in Electrical Engineering:
      - Analog circuits
      - Digital signal processing
      - Computer architecture
      - Control theory
      - Electromagnetics
      - Power electronics
      - Semiconductor design ...

      Question: How many of those involve circuit boards?

    3. Re:+5 Insightful? by inode_buddha · · Score: 1

      Uhhh... I'll go with you on the "insightful" comment, but most of this happens in software, for us mere mortals. Also, I just took a crap that didn't require any sort of interpretation. Nor, for that matter, did I need a spell-checker to type the word "equation" properly.

      GTG now, enough free beer already...

      --
      C|N>K
    4. Re:+5 Insightful? by Meat+Blaster · · Score: 2, Insightful
      Friend, your complete and utter misunderstanding of the pitfalls of cryptography implementation only reinforces my:

      • Extreme depression with the level of technical expertise demonstrated on Slashdot in particular and within the computer industry in general
      • Sincere belief that Freenet is nothing more than two ROT13s and a Caesar cipher (using original Roman) fed by a PRNG believed by all to be a RNG
      • Renewed dedication to feed only well-decorated bullshit into this site, because I'm sick of wasting hard-earned knowledge on schmucks like you who already think they know it all
      You don't use a pseudorandom number generator (such as that provided by rand() under C or the device /dev/random under Linux) because it's predictable and the measure of a good cipher is how random the output seems (a poor man's way of testing either closed or open ciphers is to try compressing the output -- generally good ciphers compress very poorly, but that's just one criterion).

      Electrical engineering comes into play when you're having a discussion about what to base a solid random number generator on. One such interchange I witnessed was regarding using entropy from network devices to feed into /dev/urandom (Linux's 'secure' random number generator, which attempts to gather 'randomness' from various sources that are unlikely to generate a recognizable pattern) -- it isn't necessarily a good idea, because on some machines network traffic is very periodic. There is a tradeoff consideration in determining which sources of entropy to use within computer hardware: how quickly do you want to be able to draw on the sources of entropy vs. how secure do you want the final entropic stream to be?

      I mention the 1's complement because it's an example of a problem I personally encountered. I had a 16-bit 1's complement checksum I implemented that worked quite well, except for the fact that the software it interfaced to used a zero value to indicate no checksum was present on the packet. However, there were cases where the checksum would really BE zero, and the thing to do was to subtract one in that event (leaving 0xFFFF, which pulled double-duty for values checksumming to 0xFFFF or 0).

      I have it on good authority that similar errors have happened and are easy to make particularly in cryptographic implementations, while not necessarily making themselves evident to the implementor in the output. Feeding data through an encrypt -> decrypt phase isn't proof-positive your implementation is correct just because data comes back out unscathed -- maybe you forgot an XOR in two spots or are only putting blocks through 7 of the 8 S-Boxes because of an off-by-one error. Testing is non-trivial.

      I mention games because they also combine several disciplines, and the evidence of poor design and implentation is much easier for the layperson to notice. If you think closer attention is paid to cryptography, you haven't been reading Crypto-Gram.

      In conclusion, I don't normally give a sizeable rebuttal because that's usually the work of a terminal trollbiter, but frankly I'm kind of shocked at your response given your impressive choice of field in school and Open Source projects (going by your Slashdot description) and think maybe you'll benefit from the details.

  65. YOU ARE SO FULL OF SHIT by Anonymous Coward · · Score: 0

    When all else fails and the bullshit starts pouring out you ears, and you just can't masturbate ONE MORE TIME, start your stupid pathetic blathering with "Erm..." or "Umm...", and then correct the poster's spelling, making sure to use "[sic]".

  66. CIPE is nice... by hey · · Score: 1

    ... to use.
    I hope the flaws are fixed.

    1. Re:CIPE is nice... by Anonymous Coward · · Score: 0

      If I read the link properly, CIPE traded security for ease-of-use. Fixing it would, more than likely, make it not so easy to use.

  67. Freeswan? by SCHecklerX · · Score: 1

    So what does he have to say about the freeswan IPSec implementation, especially when combined with iptables?

  68. GNU exists to promote free software, not crypto by Tom7 · · Score: 1

    The GNU project does not exist in order to get people to use their software. It exists in order to promote "free software." To that end, they *do not* want their code inside "commercial" (by that, I mean "proprietary") software, so the BSD license isn't a good choice.

    Nobody uses PGP on windows, either. I don't think it has anything to do with licenses, but rather with the fact that it's not automatic to tell if someone (a) has PGP/GPG (b) cares and wants you to use it to send mail.

    OTOH, I do agree that "open source" security stuff is pretty crappy.

  69. Re:Well... by brkello · · Score: 1

    You imply with your post that the security of a system is inversely proportional to the scale of the deployment of that system. I'd love to see some evidence of that.

    I would like to see evidence of that too. Well, other evidence than already exists (e.g. Windows has more attacks and is more deployed...that's evidence, right?). In any case, I am not sure why this seems like some huge shock. It's not really that security is worse on OSs that are less common...it's that if you have a million boxes running one OS, and 2,500 running a different OS, if you are a hacker, which target are you going to gun for? There was an article posted a week ago (sorry I don't have the link) that said that linux web servers were more hacked than windows web servers (more evidence of the more prolific, more attacked). Though it was a bit of a questionable article, it wouldn't surprise me if it was the case. One thing Linux has going for it is its strong seperation of user and administrative priveledges. That doesn't exist on *most* windows boxes out there hence they ARE inherently less secure (there are other factors of course). Why doesn't windows do this? It caters to the ease-of-use first. su isn't a complicated concept to us, but it isn't so accepted to joe the user who would get pissed if for some reason he couldn't install his new p2p program. I can almost guarantee you, if Linux (one flavor of it anyways) gained market dominance, and they all ran the same apps (like windows office, etc) you would see a larger number of attacks that did more damage. It would have a lot to do with unpatched systems, and let's face it, when it comes to patch security holes, Windows has a better method of notifying and distributing the patches. I hope Linux will have something similar soon. In any case, an OS is an OS, use your favorite one for moral, technical, gaming, whatever reason, just don't be so defensive about Linux that you blindly accept that security is already perfect. Linux users should not be surprised to see more attacks that are more significant scale as it gains marketshare and has more comonly used apps.

    --
    Support a great indie game: http://www.abaddon360.com
  70. Executive Summary by Rock+Ridge · · Score: 1

    Open source crypto has vulnerabilites.
    Closed source crypto has vulnerabilities.

    Can't these problems be solved by using STL?

    1. Re:Executive Summary by yomegaman · · Score: 1

      How would flying to St. Louis help anything?

      --
      ...wearing a skin-tight topless leather jumpsuit, with cutaway buttocks and transparent crotch panel.
  71. Chalk one up for the "Closed System" model by Anonymous Coward · · Score: 0

    One wonders how many Open Sourced OS/Apps installations are delayed or due to the FUD about security, privacy, etc. Too bad there's enough politics to prevent the protocol fixes. I suppose some open source firms need ways to differentiate themselves...

  72. 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
  73. Re:CIPE & PPTP by Anonymous Coward · · Score: 0

    Uh, when the industry standard was Microsoft's PPTP implementation, they were speaking truth.

  74. "Linux" Packages by pete-classic · · Score: 3, Informative

    It is eminently unfair to call these "Linux" packages.

    Of course, none of them are GNU packages, either . . .

    OTOH, tinc does have a linux.org homepage, but then it seems to not be "Demolished" by any reasonable definition. He says "This is a terrible way to use RSA, and usually compromises the key." and I'm no crypto geek, but I think what he means by "compromises" is "provides and avenue of attack that is mathematically simpler than brute force against the key" not "reveals the secret".

    So, two seemingly abandoned projects are suspect, and one relatively arbitrary (but Open Source!) package has a theoretical weakness.

    All that said, my question is: What has been demonstrated (or demolished)?

    -Peter

    1. Re:"Linux" Packages by amorsen · · Score: 2, Informative

      One of them happens to be the only VPN-solution supported by Red Hat.

      --
      Finally! A year of moderation! Ready for 2019?
    2. Re:"Linux" Packages by pete-classic · · Score: 1

      Red Hat != Linux

      I wish I could mod myself redundant on that one.

      -Peter

  75. ssh for tunnels is a bad idea by David+Jao · · Score: 2, Informative
    Now seems like a good time to point out why any scheme using TCP over TCP is a bad idea.

    Of course, the author of that article went on to write CIPE, which is one of the problem protocols under discussion.

    I use freeswan IPsec for securing wifi. The biggest problem with IPsec is that it suffers from "committee bloat" and is very complicated to use. Freeswan partially mitigates this complexity by implementing only a narrow subset of the RFCs (in fact, it is not even RFC compliant, because they deliberately removed some required features that might compromise security).

    The good thing about IPsec, and freeswan in particular, is that they were openly developed with actual expert input and nobody has yet cast any doubt on the security of either.

    1. Re:ssh for tunnels is a bad idea by zm · · Score: 1

      The only thing is that ssh tunneling is not TCP over TCP; the tunelled TCP connections terminate/start on the two sides of the ssh connection.

      zm

      --
      Sig ?
    2. Re:ssh for tunnels is a bad idea by David+Jao · · Score: 1
      ssh tunneling in and of itself is not tcp over tcp, but the subsequent running of a VPN over the ssh tunnel does usually involve running tcp over tcp.

      The whole point is that by running a tunnelled tcp connection on top of the ssh connection, where the latter is almost always implemented over tcp, you do end up running tcp over tcp.

  76. Chicken Little by Anonymous Coward · · Score: 2, Informative

    Good lord. If he googled a bit more about vtun he would have seen responses in defense of it, as well as asking to go beyond theoretical garbage to proving the insecurity.

    He says nothing new.

    The key to using encryption with vtun is to use a strong password and to change it now and then. There's really nothing wrong with vtun's encryption approach otherwise.

    Any potential software issues not relating to encryption do not make vtun any less secure than, say, SSH (see the latest patches).

    1. Re:Chicken Little by frost22 · · Score: 1
      Good lord. If he googled a bit more about vtun he would have seen responses in defense of it, as well as asking to go beyond theoretical garbage to proving the insecurity.

      If you call that a defense, you know zilch about cryptography.

      If you know zilch about cryptography you are not qualified to offer an informed opinion about the topic at hand.

      If you can not offer an informed opinion, you should shut up. Or post anonymously.

      q.e.d.

      He says nothing new.


      Which speaks volumes about vtunnel author's qualities.
      --
      ...and here I stand, with all my lore, poor fool, no wiser than before.
  77. This is open source working, people by ikekrull · · Score: 3, Interesting

    This guy, obviously with more than a few clues about security, is able to examine the products, right down to the source level, analyse the security provided, freely publish his findings and suggest improvements (even if all he suggests is 'scrap it', and something about skull-fucking with sound-waves.)

    This is great information, and while it might not reinforce the 'open source uber alles' message, it is very useful to anyone who might be considering working on these or similar projects, as well as anyone that uses them.

    Even if Mr. Gutmann says these products can't be completely fixed, at least the authors can improve them now based on his comments, and just because this guy says it can't be done, doesn't mean it is gospel.

    I say a big thank you to Peter Gutmann (a fellow kiwi, alright!) for taking the time to write this and help to improve the state of open source security products.

    --
    I gots ta ding a ding dang my dang a long ling long
    1. Re:This is open source working, people by Morologous · · Score: 1

      Hear, hear!

      I know this is probably redundant (and thus knowing should bother posting), but the advantage of the open source projects is that the flaws can be exposed before they are exploited, and in doing so, repaired by interested parties.

      This evaluation of the projects in the domain is an important part of the development process.

      Determine requirements, Design, develop, debug, evaluate (lather-rinse-repeat).

      So, this is a natural part of the open source process. On with the show, I say.

      -jason

  78. GBDE by quantum+bit · · Score: 2, Informative
    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.


    Check out FreeBSD 5's GBDE system. It's still relatively new and needs some polishing, but is improving rapidly. It's already quite usable.
  79. Karma Troll: "Yeah, but...." by NineNine · · Score: 0, Offtopic

    Yeah, but....

  80. Re:I HATE MAC'S by unconfused1 · · Score: 0, Offtopic

    This is totally an exaggeration. Of course the card doesn't fit in the PC-card slot. The Airport Extreme doesn't even look like a PC-card at all.

    The PowerBook G4's are indeed cramped, and do not lend themselves to be tinkered with...but that doesn't conclude "tragedy of design".

    The Airport card install isn't that difficult. Remove the battery, take out 7 screws to remove cover, plug in card, plug in antenna....put cover back on, and insert battery....done.

    If you had read the customer-installable parts procedure, it explains it very simply:

    http://www.info.apple.com/usen/cip/pdf/pbg4/pbg4dv i1ghz-apc-cip.pdf

  81. Re:POPTOP - Out of date report. by ashitaka · · Score: 1

    Right, quote a 1998 report on Windows NT's PPTP waeknesses, many of which were addressed in Win2K.

    On that topic, could someone suggest a good Linux-based PPTP server that can use Active Directory for authentication/access rights or an IPSEC server that works with XP/Win2K's native IPSEC client?

    --
    If you don't want to repeat the past, stop living in it.
  82. Oh the Irony by dtrent · · Score: 2, Informative

    1. Make good point that open and closed source software can both be insecure.

    2. Demonstrate point by showing out insecurity in some open source software.

    3. Someone notices the good point and fixes the insecure open source software.

    4. Close source software gets no such notification, still has holes.

    5. Point one nullified.

  83. 185 Comments Categorized by Anonymous Coward · · Score: 0

    83: I don't know anything about crypto but my cousin uses Linux 57: Hey! Get him! He said something bad about Linux! 21: He should try the X system. I've never found any theoretical holes in it! 23: Oh, yeah? Well why don't he quit whining and write his own?? 1: Insightful, informed comment on the subject, modded to (-1 Offtopic)

  84. what an inane analysis by penguin7of9 · · Score: 1

    It makes no sense to perform that kind of comparison between "Microsoft" and "open source". Microsoft is a company with a product line. Open source is just a license. It's not even an "apples" vs. "oranges" comparison. I mean, if Microsoft releases a broken piece of software under an open source license, does open source quality all of a sudden decrease? The question of whether there exist insecure open source packages corresponding to some Microsoft package has a trivial answer: of course.

    The proper comparison is to ask whether there exists highly secure open source packages comparable to Microsoft's package in functionality. And the answer is usually, "yes".

    The difference between open source and Microsoft is that among the hundreds of open source systems, people can find a collection of open source tools that is secure. Because they are open source, they tend to interoperate and use open standards, and that means that you can more easily mix and match. Users and companies can audit and verify those tools themselves if they care to, they can fix bugs that they discover, and they can share their discoveries openly. No, the open source process doesn't guarantee security, but it makes it possible.

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

    1. Re:The Real Problem by Kynde · · Score: 1

      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


      Dead on! Tcp itself is one such protocol. It assumes unrealiable medium underneath and for that reason tcp over tcp (which is a case when ssh, ssl or other crypto stream is used to mediate ip packets) behave poorly over medium with some packetloss. Say, GSM data for an example of such modern medium, cable modems, random early detection routers, over crowded ISPs.

      Claiming replay issues a problem with cipe is same as saying the same about udp.

      --
      1 Earth is warming, 2 It's us, 3 it's royally bad, 4 we need to take action NOW
    2. Re:The Real Problem by Effugas · · Score: 1

      The problem isn't that TCP is assuming an unreliable medium underneath; TCP is as happy to operate over a perfectly reliable IP network as it is to operate over a somewhat unreliable one (significantly unreliable networks outstrip TCP's ability to compensate, mandating solutions like Airhook). The problem is that, when packets are dropped, the nature of the network changes, because both the external and the internal networks move to compensate.

      It's the dual adjustment that breaks everything.

      --Dan

    3. Re:The Real Problem by Kynde · · Score: 1

      The problem isn't that TCP is assuming an unreliable medium underneath; TCP is as happy to operate over a perfectly reliable IP network as it is to operate over a somewhat unreliable one (significantly unreliable networks outstrip TCP's ability to compensate, mandating solutions like Airhook). The problem is that, when packets are dropped, the nature of the network changes, because both the external and the internal networks move to compensate.

      It's the dual adjustment that breaks everything.


      You're absolutely right, although what I meant about TCP assuming unreliable medium underneath is the dual adjustment you mention there. I was dead certain you knew all about this already, but my point basically was that if current TCP implementations had a way of informing TCP that the medium underneath is indeed reliable, we wouldn't have this dual adjustment situation.

      (Not to mention how nice it would be just to be able to configure it a little bit less humble when it comes to assuming the slightest packet loss being caused by congestion. I'm not saying we should fall back to Reno, but what I'm saying is that we could do better than Vegas...)

      --
      1 Earth is warming, 2 It's us, 3 it's royally bad, 4 we need to take action NOW
    4. Re:The Real Problem by Omnifarious · · Score: 1

      *chuckle* I should've known that you'd be the one to come up with the most realistic and cogent response to this.

    5. Re:The Real Problem by Anonymous Coward · · Score: 0

      Your statement:

      SSH(which, incidentally, violates Guttman's rules by using "the same key for encryption and authentication")

      is misleading.

      The secsh draft for protocol 2 states that:
      "The key exchange produces two values: a shared secret K, and an exchange hash H. Encryption and authentication keys are derived from these. The exchange hash H from the first key exchange is additionally used as the session identifier, which is a unique identifier for this connection. It is used by authentication methods as a part of the data that is signed as a proof of possession of a private key. Once computed, the session identifier is not changed, even if keys are later re-exchanged."

      This indicates that the encryption and authentication keys are *not* the same. The draft continues and explains that the hash function associated with the key exchange method in use is used to generate 4 keys, an encryption key for the client, one for the server, and an integrity (authentication) key for the client, and one for the server. This indicates there are four keys generated, not one used for both authentication and encryption.

      Also, the ssh1 protocol uses crc32 for integrity/authentication of packets sent between the two hosts. Since crc32 doesn't use a key, you can't be referring to ssh1.

    6. Re:The Real Problem by Effugas · · Score: 1

      Hmmm. Looks like I misread the OpenSSH source code. You're quite right, set_newkeys for SSH2 modifies different contexts depending on whether the mode is set to MODE_IN or MODE_OUT.

      SSHv1, by dint of depending on the validity of the encryption to secure the CRC, does sort of use the same key for both. But, yeah.

      Incidentally, this is really useful knowledge (it means my SSL hack now works for SSH).

      --Dan

    7. Re:The Real Problem by Paul+Crowley · · Score: 1

      I can't make any sense of your assertion that we don't have working stateless cryptosystems. There is no problem with encrypting many packets independently; that's what modern modes of operation are designed to do.

      Gutmann knows what he is talking about, and is right on every point.

    8. Re:The Real Problem by Effugas · · Score: 1

      Paul,

      We have many stateless cryptosystems, none of them good. They all struggle with replay attacks (it's hard to detect a replay when you're not keeping track of a session) and dropped packets (it's hard to synchronize keystreams when there is no inherent stream at work).

      Gutmann does know what he's talking about, and is mostly right. He just didn't really express that there's a *reason* people aren't using SSL and SSH, and I moved to correct that.

      --Dan

    9. Re:The Real Problem by Paul+Crowley · · Score: 1

      Any protocol based on IP has to handle out-of-order, missing, and duplicated packets. Using IPSec, you know that you do not have to deal with fabricated packets, and that an attacker cannot directly know anything about the content of the packets, only the timing and length.

  86. You made a typo by Anonymous Coward · · Score: 0

    Shouldn't that be "suckland"?

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

  88. Winrar encryption by Anonymous Coward · · Score: 0

    Someone let me know when they've managed to crack Winrar passwords... I'm getting sick of people posting passworded porn to USENET.

  89. MOD up PARENT! by Anonymous Coward · · Score: 0

    [s]he has some good points!

  90. Re:POPTOP - Out of date report. by onomatomania · · Score: 1
    Some were addressed with MS-CHAPv2, some were not, see <http://www.counterpane.com/pptpv2-paper.html>:
    These changes do correct the major security weaknesses of the original protocol: the inclusion of the LAN Manager hash function and the use of the same OFB encryption key multiple times. However, many security problems are still unaddressed: e.g., how the client protects itself, the fact that the encryption key has the same entropy as the user's password, and the fact that enough data is passed on the wire to allow attackers to mount crypt-and-compare attacks.
  91. Re:POPTOP - Out of date report. by tzanger · · Score: 1

    Uh, Super FreeS/WAN? I use it over the stock FreeS/WAN because it includes the nat-traversal, Delete SA, and x.509 certificate patches. Mind you, I also prefer SSH Sentinel over the braindead Win2k/XP IPSec stacks. Here's a link to a nice howto if you insist on using Windows builtin, even though SSH Sentinel's under $60 a head.

  92. Re:You can't just slap together a security package by Valar · · Score: 1

    ones-complement portion of the crypto engine fails when X=0
    Some conversions for the interested, of zero into four bit binary of various types: 0000 (1's complement), 0000 (signed magnitude), 0000 (2's complement)... Uh, what was I doing again?

  93. Re:I HATE MAC'S by Anonymous Coward · · Score: 1, Funny

    It's not Macs that you hate, but your own incompetence. I would like to sympathize with you but that's beyond my own competence I'm afraid.

  94. Not Linux only! by jrockway · · Score: 1

    It runs on WinNT, too. So it sucks more.

    --
    My other car is first.
  95. About cipe... by Anonymous Coward · · Score: 0

    That really sucks.
    I've used deslogin and cipe for years because
    I hate having to patch every two months against the
    latest ssh exploit.

    Oh well..if this guy can bring Olaf Titz to his
    knees in just a few paragraphs I guess I'd better
    go ahead and look at that buggy marvel of secure computing known as ssh.

  96. funny author wont write one himself by Anonymous Coward · · Score: 0

    Its funny how theres always a critic who
    first off can find multiple problems but
    cant write one him/herself.
    Anyway more power to opensource !

  97. Oh the pain by xant · · Score: 1

    GPG exists to Give Users a Tool to Use Crypto. Insofar as both ends of a communication channel must both use the same kinds of crypto, crypto projects should be trying to put their output in as many hands as possible; to put it more generally, the more people who have crypto, the stronger it gets. GPG's goal should be to put GPG in the hands of as many different applications as possible.

    The GPL is not a means to that end. It is in fact contrary to the project's goal, because it discourages commercial adopters.

    This is yet another example of the GNU project sacrificing usefulness in favor of principles. I like that they're there, promoting their principles, but in the meantime I won't expect gpg to ever be popular or useful for communicating with the general population.

    --
    It's rare that you're presented with a knob whose only two positions are Make History and Flee Your Glorious Destiny.
    1. Re:Oh the pain by Tom7 · · Score: 1

      GPG is part of the GNU project, which exists to promote free software.

      The GPL is not a means to that end. It is in fact contrary to the project's goal, because it discourages commercial adopters.

      If you mean the GNU project, then I think that's just wrong. Encouraging the use of free software in commercial software is *against* the goals of GNU. If you mean the GPG project, well, I think you mistake the reason for its existence.

  98. -1 Asshole by Anonymous Coward · · Score: 0

    If you don't understand why he included EE, you won't understand his point about a pseudorandom generator, or why most people have false conceptions about using it.

    Cutting the post of another person to pieces because you're a jackass? +1 Funny!

  99. Not when there's better answers... by Svartalf · · Score: 1

    Considering OpenVPN, FreeS/WAN, and TunnelVision are available, much more secure, etc. I doubt that anyone will step up to the plate for these. VTun's usable as it currently is for establishing quick and dirty SSH based tunnels- and that's about all I'd ever use it for (not that I'd use it, like I said, there's better and still OpenSource...).

    --
    I am not merely a "consumer" or a "taxpayer". I am a Citizen of the State of Texas
  100. Re:Arm chair security experts--great point by Anonymous Coward · · Score: 0

    Oh lord, just when I had completely lost faith in slashdot, you restore it. I nearly pissed my pants. Thank you!

  101. BZZZzzt - Wrong by pVoid · · Score: 1
    Sure, if I close my source to anyone and live on an island off of the Fiji coast, maybe...

    But I'm pretty sure the top paid engineers at microsoft aren't the script kiddies you see running around on this site. In fact, I'd be surprised if this guy himself hasn't consulted at one point or another for microsoft.

    This is a very essential point most people never consider: Microsoft has the money to hire just about *anyone* on the planet who would be willing. And, yeah, maybe none of the linux zealot script kiddies would work (although I'm sure many would succumb to money when flashed a $1000 in their faces), most leading industry experts would. Why do you think Microsoft is getting involved so closely with Universities? Do you think it's just to get programmers using their products? Or do you think they actually intend on getting scientific reasearch collaboration?

    In fact, if I recall correctly, some educational institutions have access with NDAs to Microsoft windows source code.

    1. Re:BZZZzzt - Wrong by router · · Score: 1

      Microsoft may have the money to hire the best. Your argument is flawed of course, because:

      1. You assume (thinly) that the best (in any field) will work for microsoft.

      2. You assume that "Microsoft" listens to the "best" and does whatever they recommend, regardless of the consequences.

      3. You assume that MS will take suggestions from edus when the edu finds something of note in the MS source.

      Because you can't independently verify the quality of the source code or have access to the development process, you are limited to trying to claim the limit of liability from MS, namely new media, in the event that the software fails to perform.

      The only reason science works is open peer review. Hell, the only reason anything works is open peer review. Would you honestly base your life's work one something without verifying it yourself? At least having someone you personally trust look at it? Why, given this choice, do you continue to support closed software development?

      If some company, sole purpose in life to increase shareholder value, tells you that their product is better because they say so, do you believe them?

      Do you take drugs (legal or illegal) without some sort of peer review process (legal, FDA, or illegal, a buddy who verifys that its good sh**)?

      I mean, how hard is this to understand? Honestly....

      andy

    2. Re:BZZZzzt - Wrong by pVoid · · Score: 1
      Thank you andy, for pointing out the obvious fallacies in my reasoning. I think I will go home now and start working on logic 101 again...

      Now onto the real business: where's the peer review in Intel's patented die processes? And how come you trust your computer, and probably some very important files to this un-peer reviewed technology?

      I mean, how hard is this to understand? Honestly....

      Let me tell you how hard it is to understand who you are: "Your argument is flawed of course". You sound exactly like what I would call a zealot. In fact, there's an article on slashdot right now that has the exact description of what you sound like:

      So of course that day I got hundreds of emails about it. Every Linux apologist in the world wanted to make sure I was fully informed of their opinion. The replies were roughly in the following groups:

      ...

      "You're clearly an idiot, Linux is too sophisticated for you, you clearly are incapable of understanding anything, you should go back to kindergarten and/or use a Mac." (Oddly, all of these messages used the word `clearly' repeatedly.)

      ...

      Now. I tell you: how hard is this to understand? Do you not realize you sound stupid? You actually *sound* stupid.

      Derisive laughter as I walk away...

  102. Still not convinced by SuperKendall · · Score: 1

    You don't need to mess with the users path, just drop a PGP executable ahead of the one that is in thier path... it seems like if you have the kind of debug access that would let you update a shared library you would also have permission enough to drop something in /usr/bin or the like!! Or perhaps enough permissions to just overwrite the original PGP with a wrapper script.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  103. +5 Funny? by Temporal · · Score: 2, Insightful

    Apparently your posting strategy went something like this:

    1. Quote parent poster.
    2. Ignore good points made by parent poster.
    3. Invent bogus theory for why the moderators modded the guy up.
    4. Declare that this was a stupid reason for him to get modded up.
    5. +5 Funny!

    Ironically, your post made for the better demonstration of the problems inherent in the Slashdot moderation system.

    A pseudorandom generator is pseudo-random? Give that man a cigar. Still - he did say "pseudo" so another +1 Insightful.

    Do you have any idea at all what he was talking about? Lots of cryptographic algorithms depend on random numbers. A common mistake by newbie cryptographers is to use a pseudo-random number generater which gives predictable values, leading to encryption which is easily broken. Real cryptography software must work very hard to find sources of unpredictable randomness in a system (like, say, the timing of a sequence of keypresses, if the computer has a keyboard). He was making a good point.

    Ooh! X=0 - why thats an equasion! +1 Insightful!

    Do you even know what ones-complement is? Again, he was making a point, but either you intentionally ignored it for the sake of your reply or if flew right over your head.

    Brings gaming into it - we all like games - and we like the word "crap" - +1 Insightful!

    He made a good point: If a programmer produces a buggy game, it's not a big problem, even if millions of people play it. But if a programmer produces a buggy cryptography library, and millions of people use it, that IS a problem.

    Wow - criticizes the established doctrine of Open Source, what a rebel! +1 Insightful!

    Wow - criticizes someone else's post without having a clue what it means! +5 Funny!

  104. Re:Well... by Anonymous Coward · · Score: 0

    A lot of people are trying to defend OSS development processes against the article author's comments. You just happened to be nearby.

    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.

    And this has absolutely nothing to do with anything.

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

    Closed-source holes aren't covered up anyway; if someone wants to talk about them, they get talked about. OTOH, you could claim that CIPE's holes were covered up, since the CIPE team obviously didn't release any information after they were notified 2 years ago!

    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.

    This is precisely the kind of idiotic hand-waving that the article was about. These projects were not fixed up quickly, or at all for that matter!

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

    CIPE and vtun use open standards? Bullshit.

  105. Solution: use vtun with SSH by go-nix.ca · · Score: 1
    Well, given this situation I guess it's a good thing I've been using vtun over an ssh channel.
    Using ftp.ssh.com version of ssh:

    /usr/bin/ssh -l <user> -n -x -f -e none -S -g -L 5000:127.0.0.1:5000 <host_running_vtund>
    /usr/sbin/vtund <connection> 127.0.0.1

    This way, you get the security of ssh with the convenient P-t-P interface of vtund.

    Problem solved.

  106. screw that by commodoresloat · · Score: 1

    You want security, just display your secret text in the Symbol font.

  107. Re:You can't just slap together a security package by oo_waratah · · Score: 1

    On that thought I was paid by work to look over sudo. I looked through it, declared it safe and the very next day there was an upgrade for buffer overflow conditions. Many eyes travel the first half carefully, then get bored. Start at the bottom and work backwards.

  108. Re:POPTOP - Out of date report. by ashitaka · · Score: 1

    OK, now tell me an easy way to roll this out to 20+ lawyers home machines without paying a home visit or having them bring in their machines.

    I can give them a quick HowTo to set up a PPTP connection to the current Win2K server I'm trying to get rid of, they can handle that. But installing a custom IPSec client, running MSC and importing certificates? No way.

    --
    If you don't want to repeat the past, stop living in it.
  109. "Linux" security packages??? by Anonymous Coward · · Score: 0

    Funny, I looked all through the Linux source code and didn't find any of these packages, then I went to their sites and all of these packages run on multiple hardware and software platforms, including windows with cygwin installed.

    So... where did these fellows get "Linux" from?

    Well, I'll tell ya... first you have one microsoft employee write up an article and post it someplace on the web... then you have another microsoft employee post a "news" item onto slashdot and wait for it to be posted.

    These are not now, never have been and never will be "Linux" security packages. They stand or fall on their own merits and failings and have _nothing_ to do with Linux.

    Why would someone do such a thing? Well, they work for MS and MS just had 100 million virus and worm infections, from the exact same hole that the last 6 viruses have all exploited, so they have to tear down the only other OS that is gaining on them, Linux.

    Quick Quiz: How many viruses has Linux ever had? Why none. How many servers did the most successful internet worm ever infect? Why less than 5,000. How many web pages have been hacked by defacers on Windows sites? I can't count that high. On Linux sites, less than 20,000 ever.

    Personally, I run OpenSSH. (Notice that I did not say Linux OpenSSH.) Although I do wish that they would carefully audit their code base to eliminate all buffer overuns once and for all. And then reaudit the code base before accepting any checkins to ensure that no new buffer overruns get introduced.

    It is easy to pick out 3 projects on the net that are being developed by a small group of people, or even one person who is still learning, and who has not yet learned how to attract the support they need from the community. Either from their own inexperience or through personality problems that make it hard for them to work with others. It is easy to pick out these projects and belittle them. but the thing is, the stronger the ecology of things out there then the harder it is to exploit everything. Sure there are weak protocols, but if you look, almost nobody uses them. Strong protocols like openssh and lsi are in use by millions of people.

    These protocols serve a very useful purpose, as teaching aids on how _not_ to implement a security protocol. I am sure they also got a few thing correct as well.

    And the 2 people trying to talk to each other are _always_ Bob and Alice. The person _always_ trying to easedrop is Eve. This is security 101.

    In my studies of security issues, I keep seeing the same themes over and over, and the same failings over and over. It would be interesting to develop a security framework that everything else plugged into, so that the parts and pieces could be individually upgraded without the rookie mistakes made by accidently pluging things in the wrong way. This way you could implement a new block cypher and just drop it into the framework. The framework could use it correctly, because it knows how to securely use a block cypher. Same way with all the various parts and pieces.

    And I am sure that each of these 3 packages that were criticize unjustly got some things correct as well as the few things wrong that were noted.

  110. Re:POPTOP - Out of date report. by Anonymous Coward · · Score: 0

    In the newer protocol the key is renegotiated every few minutes.

  111. The twisted brain wrong of a one-off man-mental by replicant108 · · Score: 1

    Chris Morris is a genius. Check out "The Day Today" and "Brass Eye" for inspired and disturbing media satire. Check out his radio show "Jam" for inspired and disturbing um... er... stuff...

    "In "Brass Eye" Chris Morris managed to produce what is easily the most explosive and challenging comedy series yet seen on television. Co-written with Peter Baynham and co-produced with Caroline Leddy, each episode was structured as a serious documentary, only the centre of its study was a plausible but completely fabricated source of media panic, from killer drugs to plans to 'get tough' on young offenders. To add weight to the glorious fabrications of "Brass Eye", Morris undertook innumerable interviewer disguises to persuade dozens of publicity-hungry celebrities to decry the damage that was being done to society.

    One such individual, MP David Amess, was so totally taken in by the 'rise' of a non-existent drug named 'Cake' that he brought the matter up in Parliament. This sparked a wave of panic inside Channel 4, who pulled the series from its intended November 1996 transmission slot for 'further consideration'. A concerted campaign by Morris' fans and his many admirers in the media ensured that the series resurfaced in early 1997, although by then it had been tainted by Channel 4's uncharacteristically cowardly editing. Debates over cut material raged right up until each actual transmission, and a last-minute spat over a sketch intended for the final episode resulted in a caption card likening Channel 4 head Michael Grade to a moist area of the female anatomy being inserted in its place."

    Cook' d and Bomb'd

  112. Gutmann deserves kudos, you twit by 0x0d0a · · Score: 3, Insightful

    This is open source, figure out where to submit your patches or else you are nothing but an arm chair security expert.

    Absolutely absurd. I can't believe you wrote this. People who are good at writing code donate code to free software projects. People who are good artists donate art to free software projects. Yet, somehow, when a noted cryptographer does a (somewhat acerbic) security analysis of *three* open source packages and lists fixes, somehow you feel that he hasn't contributed anything.

    Incidently, I'm curious if you're aware exactly how much it would cost in consulting fees to get someone like him to sit down and review a given product. This guy contributed a lot more in terms of intellectual value to those three projects than the forty-five people that sat down and wrote five-line patches to remove gcc warnings (not that their work isn't appreciated, but still).

    He deserves our thanks, not scorn.

    1. Re:Gutmann deserves kudos, you twit by mwood · · Score: 1

      Hear, hear. Clearly pointing out a problem is always useful. My thanks, Mr. Gutmann.

  113. Re:POPTOP - Out of date report. by 0x0d0a · · Score: 1

    Make your home visit and install remote management software. It'll be a significant savings in the long run, regardless of whether it's relevant this time or not.

  114. Debunking by 0x0d0a · · Score: 1

    1. You assume (thinly) that the best (in any field) will work for microsoft.

    Pretty hard to quantify the "best" person in cryptography, but you could probably get a list of the fifty or so best-known players. I suspect that most of them would be more than happy to work with Microsoft. My own experiences say that even that folks that are generally dislike MS practices aren't willing to throw away a good contract to work with them. It's only the most extreme fanatics -- RMS might be willing to do so, for instance, but he's definitely the exception to the rule, and a radical.

    2. You assume that "Microsoft" listens to the "best" and does whatever they recommend, regardless of the consequences.

    *Snort*. This is true of any company. Plenty of good engineering advice gets ignored. Same thing happens on open-source projects, for political or NIH or what-have-you reasons.

    3. You assume that MS will take suggestions from edus when the edu finds something of note in the MS source.

    Depends on how significant it is. If it's "we can break the VPN you're billing as secure badly and trivially, then yes, MS will act. May take some PR exposure, but they'll do it.

    Two of the mentioned OSS projects so far have not taken action, it's also interesting to note.

  115. E-mail reply re: IPSec by MikeBabcock · · Score: 1

    I felt I should fill Peter in w.r.t. IPSEC and the amazing FreeS/WAN implementation thereof. I sent him the following by PGP-signed E-mail (cut-down for posting):

    I'm sure you've received a million replies to your message now that it has been Slashdotted, but for the record, please use IPSec for your VPN needs.

    [...]

    Sure, there are OSS *nux programs that attempt to implement the protocol, mostly to connect to MS servers that only support it, but the *real* player in the VPN world is the IPSEC protocol.

    [...] IPSEC inter-operable and standardized but it has an *amazing* and well-maintained Linux implementation. FreeS/WAN, from http://www.freeswan.org, is very well documented, well-maintained, and written by people with a wonderful level of attention to security.

    They may not be perfect, but I've been watching and using the product for years now with very good success. [...] the project is now moving forward with 2.2.x, 2.4.x and 2.6.x Linux kernel compatible versions.

    --
    - Michael T. Babcock (Yes, I blog)
  116. Yavipin by Anonymous Coward · · Score: 0

    Do someone know if yavipin ( http://yavipin.sourceforge.net/) has similar security problems? The author claims he made it after a security analisys of vyun, tinc and others. Looks like it's been abandoned though.

  117. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion

  118. but the reality is... by Kynde · · Score: 1

    "The fix for this is to scrap the key exchange portion completely and replace it with an SSH or SSL management tunnel"

    that even those protocol contain flaws every now and then, thus for example we use those ontop of cipe or openvpn like mechanisms to achieve double layering in cases were even ssh cannot be fully relied on. And don't I feel good about doing so now. Sadly cipe needs quite a bit of repairing it seems.

    Fabulous article nonetheless.

    --
    1 Earth is warming, 2 It's us, 3 it's royally bad, 4 we need to take action NOW
  119. Why not just use IPSec? by oohp · · Score: 1

    FreeS/WAN isn;t in the stable kernel yet (i heard it was integrated 2.5 tho), but the BSDs have solid IPSec implementations already. Why would anyone use some lousy user space crypto thingie with more bugs? VPN tunnels with Windows? Maybe. And then again, there is OpenVPN.

  120. Lesson learned... (was Re:Issues...) by keller · · Score: 1

    You are not supposed to RTFA, this is /.

    --

    Enig? Det alt for hot det smor!

  121. On Peter Guttmann and security by Anonymous Coward · · Score: 0

    While I deeply respect Peter's analysis, I do recall that many years ago he distributed open source implementations of strong encryption libraries only to subsequently produce new and improved versions but with a price tag attached.

    I think, therefore, that it is a little unfair for him to merely criticise open source implementations whose authors wrote the software for the public good. Instead, Peter might want to re-think his decision to move away from the open source community and contribute some well-engineered software to it, in order to plug these holes, rather than exploit his undoubted talents purely for commercial reward. In any case, as I recall, he holds academic tenure. Morally, contributing solid code to the open source world would, in my opinion, count for more than mere criticism.

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

    1. Re:Peter Gutmann and tinc by plcurechax · · Score: 1

      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.

      Beautiful. Bloody beautiful.

      You, with no real security experience, seem to think you know more than Peter Gutmann, who has been working on cryptography and computer security since the mid-1990s. That's rich.

      He still hasn't convinced us.

      Newsflash: That's not how security works. He has no obligation to convince people who are ignorant of security that there software is flawed. Security needs to demostrate why it is provable and verifiably secure.

      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.

      I doubt Peter was imagining things. If you cannot follow his comments, I am seriously concerned about how prepared you are to write any security software. I found his writing quite clear, though perhaps you do not understand it is not a flaw in a number of lines of code, but a flaw in the entire protocol being used, a protocol you (your group) created.

      We're still in discussion, and if we believe there is really a problem we will fix it.

      Wow, I'm now inspired to never to use your software.

    2. Re:Peter Gutmann and tinc by gsliepen · · Score: 1
      You, with no real security experience, seem to think you know more than Peter Gutmann, who has been working on cryptography and computer security since the mid-1990s. That's rich.

      So, I'm not allowed to take a defensive stance if I believe he claims it's worse than it is? I should readily accept everything someone with has been working longer with encryption than I did?

      He has no obligation to convince people who are ignorant of security that there software is flawed.

      Of course it has to be convincing in order to be taken seriously.

      Wow, I'm now inspired to never to use your software.

      You are free to let Peter's analysis weigh more than everything we say. It just seems to me you are overreacting if you dismiss our work outright when we merily take some of his remarks in question. We don't dismiss Peter's analysis, we just want to make sure what is right and what is wrong.

    3. Re:Peter Gutmann and tinc by plcurechax · · Score: 1

      So, I'm not allowed to take a defensive stance if I believe he claims it's worse than it is? I should readily accept everything someone with has been working longer with encryption than I did?

      Well, frankly I rank his opinion above yours when it comes to cryptography.

      If you have any facts to back up your assertions that his claims are flaws, please feel free to share them with us. Show me the protocol design, and how is resists the attacks Peter mentions.

      It just seems to me you are overreacting if you dismiss our work outright when we merily take some of his remarks in question. We don't dismiss Peter's analysis, we just want to make sure what is right and what is wrong.

      Then make some effort to clarify away any confusion. Why can the chess grandmaster attack not succeed with tinc? How does tinc resist all the attacks mention in his letter/essay/comments? Protocol and related attacks against used on SSH (v1 and v2, implmentations from SSH Inc. and OpenSSH), SSL (all versions), PGP (incld. OpenPGP and GPG)?

      To make it clear: Security software is assumed insecure by default. Through careful design, implementation, and auditing security / crypto software gains a reputation for being secure. No one is trying to personally attack you or your work, I think more than 99% of all software is insecure.

    4. Re:Peter Gutmann and tinc by gsliepen · · Score: 1
      If you have any facts to back up your assertions that his claims are flaws, please feel free to share them with us.

      Sure. Each side sends the key used for encryption of the TCP connection to the other side, encrypted using the public RSA key (which is known beforehand) of the other side. Noone except the owners of the private part of the RSA keys can decrypt this. So there is no way to determine the keys used to encrypt the rest of the TCP connection for a man in the middle.

      Show me the protocol design, and how is resists the attacks Peter mentions.

      The protocol design has been part of the documentation for a long time.

      [Tell me how tinc resists every attack we know of!]

      Although it would be very nice to prove and document this, we do this in our spare time, for free. We want to create perfect software, but it won't happen tomorrow. At the moment we're just dealing with the things Peter mentioned.

      To make it clear: Security software is assumed insecure by default.

      Of course, we have never mentioned otherwise (see the README of tinc).

    5. Re:Peter Gutmann and tinc by plcurechax · · Score: 1

      Sure. Each side sends the key used for encryption of the TCP connection to the other side, encrypted using the public RSA key (which is known beforehand) of the other side. Noone except the owners of the private part of the RSA keys can decrypt this. So there is no way to determine the keys used to encrypt the rest of the TCP connection for a man in the middle.

      So, Alice wishes to establish a connection with Bob, and Mallory is the active attacker who can insert, delete, and modify packets on the network.

      Alice encrypts the session key with Bob's public key, and sends it across the network. Mallory takes the packets and deletes it. Mallory encrypts his own session key with Bob's public key, and sends it to Bob. Mallory then creates a second (possibly different) session key and encrypts it with Alice's public key and sends it to Alice. Mallory sends Bob a encrypted challenge string, and Bob replies with hashed results. Mallory repeats this with Alice.

      Mallory can now carry out his man in the middle attack with these new connection. He cannot read what Alice is sending Bob, since he cannot decrypt the session key encrypted with Bob's RSA public key, but he can pretend to be Alice when communicating to Bob, and Mallory can pretend to be Bob when communicating with Alice.

    6. Re:Peter Gutmann and tinc by gsliepen · · Score: 1
      Alice encrypts the session key with Bob's public key, and sends it across the network. Mallory takes the packets and deletes it. Mallory encrypts his own session key with Bob's public key, and sends it to Bob. Mallory then creates a second (possibly different) session key and encrypts it with Alice's public key and sends it to Alice. Mallory sends Bob a encrypted challenge string, and Bob replies with hashed results. Mallory repeats this with Alice.

      Sure. But Bob also sends an encrytped challenge string to Mallory, which he has to decrypt, hash, and send it back to Bob. He can't do that because he doesn't know the right key. He can't forward it to Alice and forward Alice's reply back to Bob, because he can't decrypt and reencrypt it. So, because he cannot answer either challenge, Bob and Alice will both cut the connection.

    7. Re:Peter Gutmann and tinc by plcurechax · · Score: 1

      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.

      So which flaws do you plan on fixing?

      the 32 bit predictable IV

      This is simple to fix, just fix it. Don't waste your time on whether or not it may or may not be a problem in the "real world", computer security is like programming Satan's Computer, always expect the unexpected and preempt any possible attack.

      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.

      Sigh. Why do you think that? RSA should not be used "raw" -- that is without padding for either encryption or signing.

    8. Re:Peter Gutmann and tinc by plcurechax · · Score: 1

      But Bob also sends an encrytped challenge string to Mallory, which he has to decrypt, hash, and send it back to Bob. He can't do that because he doesn't know the right key.

      Mallory created the session key, so of course he can decrypt using it, hash the challenge and send the hashed challenge back to Bob.

      He can't forward it to Alice and forward Alice's reply back to Bob, because he can't decrypt and reencrypt it.

      Mallory does have to splice together two channels together to make the attack work, but I do not see why this would not work.

    9. Re:Peter Gutmann and tinc by gsliepen · · Score: 1
      Mallory created the session key, so of course he can decrypt using it, hash the challenge and send the hashed challenge back to Bob.

      Mallory only created the key that is used to encrypt traffic TO Bob. He can't use it to decrypt the challenge he gets FROM Bob. The key Bob uses to send messages to Mallory is sent to Mallory encrypted with Alices public key.

      Mallory could forward the challenge from Bob to Alice, and she would send a correct reply back to Mallory, but Mallory cannot decrypt that one either (because the key used to encrypt the challenge is sent encrypted with Bob's public RSA key), so he cannot forward it to Bob.

      There is also no way for Mallory to make sure the same key is used for traffic from A to M and from M to B, unless he does not create the key used to encrypt traffic M to B himself, but forwards the encrypted key (which M can't decrypt) from A to B. But then he can't send anything to B anymore himself. The same goes for the traffic from B through M to A. So, he can splice the two channels together, but only if he does not create the keys himself. If he doesn't create them himself, he cannot know them.

    10. Re:Peter Gutmann and tinc by gsliepen · · Score: 1
      So which flaws do you plan on fixing?

      The key exchange will be improved to make sure we have really perfect forward secrecy.

      This is simple to fix, just fix it.

      We won't, because it is not a problem. Many parts of the packets that are sent are predictable, because there is a lot of redundancy in them (think MAC, IP and TCP headers and trailers). That doesn't matter for the rest of the packet, or symmetric ciphers in general would be pretty worthless. You send many predictable things via SSL as well (think HTTP requests).

      Sigh. Why do you think that? RSA should not be used "raw" -- that is without padding for either encryption or signing.

      Again, padding is necessary when sending short messages, where improper termination might compromise RSA. We don't encrypt messages shorter that the key with RSA. In fact what we send using RSA has more entropy than any padded message encrypted with the same key could ever have. I'm not going to "fix" this, not even if someone with more experience in this field only says: "I don't think you should do that", unless I get a decent explaination why it is bad.

      As a matter of fact, we're doing this on purpose, and searches about this matter have not revealed any document claiming that what we do is bad, just that sending shorter, unpadded messages is bad.

    11. Re:Peter Gutmann and tinc by plcurechax · · Score: 1

      Mallory only created the key that is used to encrypt traffic TO Bob. He can't use it to decrypt the challenge he gets FROM Bob. The key Bob uses to send messages to Mallory is sent to Mallory encrypted with Alices public key.

      So the protocol docs is wrong when it says:

      From now on:
      - the client will symmetrically encrypt outgoing traffic using S1
      - the server will symmetrically encrypt outgoing traffic using S2


      Mallory could forward the challenge from Bob to Alice, and she would send a correct reply back to Mallory, but Mallory cannot decrypt that one either (because the key used to encrypt the challenge is sent encrypted with Bob's public RSA key), so he cannot forward it to Bob.

      Mallory simply forwards the reply (CHAL_REPLY 816a86) from Alice to Bob, no need to decrypt.

    12. Re:Peter Gutmann and tinc by Fruit · · Score: 1

      The challenge is encrypted with one key and the challenge reply is encrypted using the other key. If Mallory switched out a key then either the challenge or the challenge reply is going to be encrypted with a key that the first side didn't expect and the challenge will fail (after decryption, only garbage remains).

    13. Re:Peter Gutmann and tinc by Fruit · · Score: 1
      The problem here seems to be that what is called an "IV" in this instance isn't really an IV in the sense that it usually has with CBC ciphers.

      This counter is prepended to packets to provide the necessary perturbation that is enough to make packets different. In fact, this is preferable to using random numbers because you avoid the birthday paradox.

      As for the RSA argument: assuming you're referring to the problem of page 236 of Practical Cryptography by Ferguson and Schneier: tinc uses the 0xFFFF value for the rsa e value, a string would have to be as short as 2048^(1/65535), which means 1 bit, to be vulnerable. Needless to say that the keys that are sent like this are a little longer than that.

    14. Re:Peter Gutmann and tinc by plcurechax · · Score: 1

      The challenge is encrypted with one key and the challenge reply is encrypted using the other key. If Mallory switched out a key then either the challenge or the challenge reply is going to be encrypted with a key that the first side didn't expect and the challenge will fail (after decryption, only garbage remains).

      So is the documentation is wrong or not? If 6.3.1 Authentication protocol is correct, then the attack I described works.

      I did miss that there is two symmetric keys, S1 and S2, but I don't think that doesn't matter in this case.

    15. Re:Peter Gutmann and tinc by gsliepen · · Score: 1
      I did miss that there is two symmetric keys, S1 and S2, but I don't think that doesn't matter in this case.

      Well check again, that is exactly why the attack you describe won't work.

    16. Re:Peter Gutmann and tinc by Fruit · · Score: 1
      Alice encrypts the session key with Bob's public key, and sends it across the network. Mallory takes the packets and deletes it. Mallory encrypts his own session key with Bob's public key, and sends it to Bob. Mallory then creates a second (possibly different) session key and encrypts it with Alice's public key and sends it to Alice. Mallory sends Bob a encrypted challenge string, and Bob replies with hashed results. Mallory repeats this with Alice.

      The challenge that Alice sent is encrypted using the original session key. Bob decrypts it with Mallory's fake key and gets garbage. The hash of this garbage is not what Alice expects and Alice drops the connection.

      Vice versa, Bob sends Alice a hash, encrypted using Mallory's fake session key. Alice decrypts it with her real session key and gets garbage. When she returns the hash of this garbage, Bob rejects it and closes the connection.

      In your scheme you also subvert the other session key. This only makes the mess worse for Mallory, because now the challenge replies get garbled as well.

      The reply that Bob returns to Mallory's challenge is simply the hash of Mallory's challenge, decrypted using Mallory's own session key. No information is leaked here.

    17. Re:Peter Gutmann and tinc by plcurechax · · Score: 1

      Well check again, that is exactly why the attack you describe won't work.

      Mallory encrypts S1 with Bob's public key E_b(S1) and sends that (METAKEY E_b(S1)) to Bob. Bob sends S2 encrypted with Alice's public key, METAKEY E_a(S2) to Mallory.

      Mallory creates a new connection (as Mallory) to Alice and sends METAKEY E_a(S2) to Alice, as his challenge to Alice. Alice replies with METAKEY E_m(S3) to Mallory.

      Mallory encrypts S3 with Bob's public key E_b(S3) and sends that (METAKEY E_b(S3)) to Bob, as if it came from Mallory. Bob sends S4 encrypted with Mallory's public key, METAKEY E_m(S4) to Mallory.

      Mallory send CHALLENGE H1 to Bob, encrypted with S1 (that Mallory knows). Bob replies with CHALLENGE H2, encrypted with S2, to Mallory. Mallory sends CHALLENGE H2 encrypted with S2 to Alice. Alice replies to Mallory with CHALLENGE H3 encrypted with S3.

      Mallory sends CHAL_REPLY SHA1(H2) encrypted with S1 to Bob, Bob responds with CHAL_REPLY SHA1(H1) encrypted with S2 to Mallory. Mallory sends CHAL_REPLY SHA1(H1) encrypted with S2 to Alice. Alice responds with CHAL_REPLY SHA1(H2) encrypted with S3 to Mallory.

    18. Re:Peter Gutmann and tinc by plcurechax · · Score: 1

      We won't, because it is not a problem. Many parts of the packets that are sent are predictable, because there is a lot of redundancy in them (think MAC, IP and TCP headers and trailers). That doesn't matter for the rest of the packet, or symmetric ciphers in general would be pretty worthless. You send many predictable things via SSL as well (think HTTP requests).

      You want to screw with the basic CBC mode of operation by feeding it a poor IV, a predictable IV, because you are being lazy? SSL and predictable HTTP requests are a red herring.

      We don't encrypt messages shorter that the key with RSA.

      The 128-bit blowfish is shorter than the 2048-bit RSA public key.

    19. Re:Peter Gutmann and tinc by plcurechax · · Score: 1

      As for the RSA argument: assuming you're referring to the problem of page 236 of Practical Cryptography by Ferguson and Schneier: tinc uses the 0xFFFF value for the rsa e value ...

      Did you miss "This very same structure invites many types of attacks. The simple ones we've mentioned in the previous paragraph. There are far more advanced attacks, ..."?

    20. Re:Peter Gutmann and tinc by gsliepen · · Score: 1
      Mallory creates a new connection (as Mallory) to Alice and sends METAKEY E_a(S2) to Alice, as his challenge to Alice. Alice replies with METAKEY E_m(S3) to Mallory.

      Very creative! But, since when did Alice have Mallory's public key? Alice does not know Mallory's public key, unless tinc has been configured to trust Mallory in the first place. If not, then the connection would've been dropped right after the ID request. If they did already trust Mallory in the first place, then yes, you can save some CPU cycles doing the SHA1 hash by forwarding the challenge from Alice to Bob and vice versa, but that doesn't compromise anything!

    21. Re:Peter Gutmann and tinc by Fruit · · Score: 1

      No, I didn't miss it. I was just guessing which attack you're referring to.

    22. Re:Peter Gutmann and tinc by plcurechax · · Score: 1

      Unless you can prove that your usage of raw RSA is secure, you should use the recommended standard of padding. I suggest you look at PKCS #1 v2.1. http://www.rsasecurity.com/rsalabs/pkcs/index.html

      It is your choice to fix weaknesses and possible weaknesses. Do you want to be reasonable secure or not?

    23. Re:Peter Gutmann and tinc by plcurechax · · Score: 1

      Very creative! But, since when did Alice have Mallory's public key?

      No, it is a textbook attack.

      Mallory could be a compromise host, a double-crossing node, a social engineering attack to get Alice to accept Mallory's public key, or any number of non-cryptographic actions.

      So as Peter and I have claimed, it is possible to play a grand chessmaster attack against Alice and Bob with tinc's protocol.

    24. Re:Peter Gutmann and tinc by Fruit · · Score: 1

      tinc already pads to RSAKEYLEN by the way. Not exactly raw.

    25. Re:Peter Gutmann and tinc by Fruit · · Score: 1
      Mallory sends CHAL_REPLY SHA1(H2) encrypted with S1 to Bob, Bob responds with CHAL_REPLY SHA1(H1) encrypted with S2 to Mallory. Mallory sends CHAL_REPLY SHA1(H1) encrypted with S2 to Alice. Alice responds with CHAL_REPLY SHA1(H2) encrypted with S3 to Mallory.

      Mallory at this point only knows H2 encrypted with S2, but not H2 itself because Mallory doesn't know S2. He therefore can't send CHAL_REPLY SHA1(H2) encrypted with S1. The attack fails.

    26. Re:Peter Gutmann and tinc by Fruit · · Score: 1

      tinc encrypts RSA_KEYLEN bits of data using the RSA key. That part is in the docs.

    27. Re:Peter Gutmann and tinc by Paul+Crowley · · Score: 1

      I'm, how can I put this, less than convinced by a security analysis from people who think that that's what RSA padding is for. Please go and read some of the papers about padding for encryption and signing.

      If you could use SSL, you certainly should. This is only one example of a million possible mistakes, but many many experts have examined SSL very closely and checked for such mistakes.

    28. Re:Peter Gutmann and tinc by gsliepen · · Score: 1

      What I said comes straight from the PKCS #1 v2.1 specifications.

    29. Re:Peter Gutmann and tinc by Paul+Crowley · · Score: 1

      I think you must be misunderstanding what was written. Directly applying the RSA transform to application data for either signing or encryption is entirely insecure whatever the message size and has been known so for some time, so it seems implausble that PKCS would give its blessing to it.

      Please quote chapter and verse. Not because it would make you right - if PKCS says that, it's wrong - but because it would be interesting to know if PKCS really does bless such insecure constructions.

    30. Re:Peter Gutmann and tinc by gsliepen · · Score: 1
      The PKCS specification does not say it is OK to apply a RSA transform directly, however, in section 7.1 it does say what the OAEP padding scheme tries to prevent, and none of it is necessary for tinc.

      We just posted a response to Peter Gutmann's security analysis on our website, please read it and feel free to comment (using email). We will update it if necessary.

    31. Re:Peter Gutmann and tinc by Paul+Crowley · · Score: 1

      Actually, I don't intend to put much work into persuading you of this. I know enough about the subject to know that you need padding. If you think you don't need padding, it is because you don't know enough. Go and learn. Read the paper presenting OAEP, or PSS, or similar, and understand how one builds a security reduction between a hard problem and a cryptographic primitive.

      Or just take our word for it.

      Or ignore the advice of experts and go and do your own half-baked thing. It's really up to you.

  123. Re:Of course, the more obscure package, the more b by Anonymous Coward · · Score: 0

    You're right.

    Another problem, particularly for U.S. programmers trying to find some feedback and multiple eyes looking at their pre-alpha not-on-sourceforge crypto package is: How? If I've created something intended to make it really easy for people to exchange encrypted emails, what's a good way to get it out there that won't run afoul of the crypto laws? It's not like programmers from the land of the free can freely put their crypto code on sourceforge for critique.

    Yeah, I've spent many many hours reading and re-reading the EAR export regulations trying to figure out how to exchange crypto software with others on the net for academic purposes without being eligible for being thrown into camp X-ray indefinitely, and I can't make heads or tails of it.

  124. nitpick: /dev/random not pseudorandom by k8to · · Score: 1

    /dev/random is not pseudorandom.

    Ideally /dev/random is fed by a good source of raw stochastic randomness along with other nondeterministic system events into a pool of entropy which is stirred etc. etc.

    If you don't have a good source of raw stochastic randomness (like thermal noise in the intel 8xx chipset or freewheeling oscillators in the new via CPU), then /dev/random BLOCKS until it can generate enough entropy to be above an acceptable threshhold. Practically speaking, the user can bang away on the (local) keyboard if necessary to generate such randomness.

    This is, of course, the whole POINT of /dev/random. You don't create a whole device to just recreate rand().

    ------

    But yes, good crypto is HARD to write and HARD to identify flaws in. This obvious fact seems to sometimes escape cryptographers when they review inexpertly created crypto software, who lament endlessly that people get it wrong, and sometimes get sufficiently exasperated to even identify the flaws in comprehensible terms. "This code listing should be self explanatory" being a key sin here.

    It's good that someone keeps after 'hobbyist crypto' authors to point out that their stuff is dangerous though. Is there a good communications outreach channel from the crypto community to the general programming community about the dangers of inexpert practice? I'd imagine a website dissecting a few projects in detail could drive home the message: If you don't really know, you're going to do it wrong.

    --
    -josh
    1. Re:nitpick: /dev/random not pseudorandom by anthonyrcalgary · · Score: 1

      "But yes, good crypto is HARD to write and HARD to identify flaws in. This obvious fact seems to sometimes escape cryptographers when they review inexpertly created crypto software, who lament endlessly that people get it wrong, and sometimes get sufficiently exasperated to even identify the flaws in comprehensible terms. "This code listing should be self explanatory" being a key sin here."

      It's on a crypto mailing list... I don't think it's unfair to assume readers will know what he's talking about. Not his fault it got posted to slashdot.

      I see the sense of elitism in the crypto community, but I think it's completely justified. It's not great for PR, but crypto is really, really hard. Professional cryptographers can't even do a good job without a lot of peer review. Hobbyist crypto shouldn't be regarded as more secure than plaintext, IMO.

      --
      When someone might yell at me, it has to be OpenBSD.
    2. Re:nitpick: /dev/random not pseudorandom by k8to · · Score: 1

      I wasn't criticizing the specific, but the general. It happens a lot and mailing lists are focused, but externally read. Making things clear as to WHY they don't work and WHY you shouldn't do them is more effective than simply spouting that it is so.

      Basically, lack of clarity reaps more trouble later.

      --
      -josh
  125. Do not trivialize their work by varjag · · Score: 1

    Why write new protocols that are doing the same thing that SSH is doing? It's nonsensical.

    Show me how to forward UDP traffic over SSH.

    Vtun isn't "the same thing", and indeed has its uses. Discard vtun security features and wrap it into SSL, and you have a nice, secure, generic IP tunnel.

    I'm willing to bet that the guys behind these protocols got flat-out laughed at by anyone doing real cryptography work, but still somehow felt that they were right all along.

    They made a honest attempt and failed. Never bet on what other people feel.

    --
    Lisp is the Tengwar of programming languages.
  126. VPN's are Complicated..... by nuintari · · Score: 1

    I can only speak for vtun here, but from my expiriance, setting up a VPN for your first time is a bit rough.Hell, even when you've done it enough times that you know its caveats and snaffus like family, its still kind of a mean old hag of a bitch. VPN is a fairly complicated issue, and vtun seems to exist to simplify it for the masses. Except that a) the masses don't need vpn's, and b) they made a simple solution to a problem that requires a fairly complex answer and got an essentially wrong answer that provides no real protection.

    Vtun was recomended to me by a friend, and upon using it, I feared that it was, quite frankly, far too easy to setup to be effective. You don't need to know a whole lot about networking, encryption, security, etc... to use it, and I feel that approach makes the entire package weaker, and sets an upper limit to just how effective it can be. Sure, zone alarm is easy to set up, but is it pf? is it ipf? Hell, is it iptables? Not at all, of course not.

    The other one, I can't speak on, I'm not qualified, and despite this being the interweb, I refuse to pretend I know anything about it.

    not spellchecked because work was awful, and I am going to bed....

    --

    --Nuintari

    slashdot : where an opinion can be wrong.

  127. Rate of change by lvirden · · Score: 1

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

    The potential for fixes is there in the open source community - but someone has to care enough about the product and the fix to actually work on it.
    Take a look at the bug database for some of the large bodies of software. Typically there will be quite a significant body of defect/bug reports . The projects I have seen have the defects broken down into the majority awaiting classification, then a lot of closed reports (either due to the problem being fixed, non-repeatable, or wrong/incomplete) and the rest awaiting someone interested or bored enough to deal with them.

    Doesn't seem to matter whether the software is commercially supported or open sourced. I recall a time when one popular workstation vendor shipped a version of the sort command which turned lines longer than a 1000 or 2000 bytes into two or more lines. After repeatedly having the bug reported to them, they 'fixed' things by documenting in the man page this behavior...

    Note that the fix for the problem had been available in the open source community since near the first report...

    --
    URL: http://xanga.com/lvirden > Quote: Saving the world before bedtime. Even if explicitly stated to the contrary, n
  128. Re:UnitedLinux "Free for non-commercial uses" by hey! · · Score: 1

    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.

    I'm not sure I understand. There may well be no good solution for situations like DNS where data is transferred in short, Poisson distrubted bursts, but why should it be so hard to work something out for long streams of isochronous data. You could negotiate key exchange over a TCP control channel and send the data in in UDP packets with encrypted/signed payloads using the key negotiated over the control channel.

    Of course, this is exactly the kind of thing that's hard to do well, I suppose, so I'm probably missing something. Writing cipher code is fun and easy, writing crypto protocols very hard.

    --
    Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
  129. Problem of semantics by Rogerborg · · Score: 1

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

    I'm guessing that "Peter (sigh)" is thinking of "product" in the sense of "n 1: commodities offered for sale".

    Thing is, I don't work on open source "products", I tinker with ongoing projects, in the sense of n 2: An undertaking requiring concerted effort, and I do so for my own pleasure, not for "Peter (sigh)"'s benefit.

    When I start selling you my project as shinola, you can tell me that it's a shitty product. Until then, you're welcome to contribute. If you just want to criticise, then I'll thank for your input, but advise you to calm down and take a chill pill. Anybody using my project is liable to be doing so because they enjoy playing with it as much as me, not because they're relying on it for a critical application.

    --
    If you were blocking sigs, you wouldn't have to read this.
    1. Re:Problem of semantics by plcurechax · · Score: 2, Interesting

      When I start selling you my project as shinola, you can tell me that it's a shitty product. Until then, you're welcome to contribute. If you just want to criticise, then I'll thank for your input, but advise you to calm down and take a chill pill.

      Well, Peter Gutmann did provide useful insight for the programmers involved in these open source projects. What frustrated him was some of them ignored him, or simply did not know enough about security to understand his comments. That is the kiss of death for these projects IMHO.

      He contribued far more insight to these projects than dozens of inexperienced programmers did previously.

      Anybody using my project is liable to be doing so because they enjoy playing with it as much as me, not because they're relying on it for a critical application.

      Sorry, I don't just use open source software for fun and enjoyable, I use it to get things to done in the real world. You are basically taking a cop-out, either your project (at the current time) is secure or it is not. If it is not secure, don't pretend that it is.

    2. Re:Problem of semantics by Rogerborg · · Score: 1

      >What frustrated him was some of them ignored him

      Which seems to be his problem. Why didn't they listen to him? The fools. The fools!. Listen to Peter (sigh) or be dooooomed. Thus the advice to take a chill pill.

      >Sorry, I don't just use open source software for fun and enjoyable, I use it to get things to done in the real world

      In the "real world", you tend to get what you're prepared to pay for. If you're just "using" open source projects, then you're a parasite. Good luck and all, but if the reason that the GPL insists on a disclaimer of warranty is, well, you.

      >You are basically taking a cop-out, either your project (at the current time) is secure or it is not. If it is not secure, don't pretend that it is.

      Leaving aside that I didn't say anything about my project, I'll assume that you're talking about the open source projects mentioned. Now, in theory I agree with you, but in the "real world", if you believe marketing blurb when you have the opportunity to verify or refute it yourself, then, well, good luck again. How many thighmasters do you own?

      --
      If you were blocking sigs, you wouldn't have to read this.
    3. Re:Problem of semantics by plcurechax · · Score: 1

      Which seems to be his problem. Why didn't they listen to him? The fools. The fools!. Listen to Peter (sigh) or be dooooomed. Thus the advice to take a chill pill.

      Excellent. So if open source developers don't feel don't feel like fix security flaws, tell the users to "take a chill pill".

      In the "real world", you tend to get what you're prepared to pay for. If you're just "using" open source projects, then you're a parasite. Good luck and all, but if the reason that the GPL insists on a disclaimer of warranty is, well, you.


      Well I used quite a bit of Open Source, and frankly I don't have time to audit all the source code. I haven't measured exactly but I would not be surprised if the amount of source in a typically Linux distribution was more than 1GB, which would take any one person or company a long time to audit. So, yeah I do use a lot of open source software that I don't have the time to audit. I have to trust the developers, and that others are auditing various bits and pieces of it, on top of my own auditing.

      Why am I a parasite? Because I use Open Source software Linux, Apache, Perl, Mozilla, GCC, etc. at work? Or because I expect any open source software that claims to be secure, at least makes a reasonable attempt to fix weaknesses that are pointed out to the maintainers?

      So Peter Gutmann tries to do the right thing, and help the project developers fix security flaws in their projects, and they go "take a chill pill" back to him. That does not bode well for the idea that open source projects are more secure because of the "many eyes, source available" mantra which recited on Slashdot whenever a closed source product/project has a security weakness.

      I'll assume that you're talking about the open source projects mentioned. Now, in theory I agree with you, but in the "real world", if you believe marketing blurb when you have the opportunity to verify or refute it yourself, then, well, good luck again.

      Are you saying it is okay for open source projects to ignore security experts who take the time to point out weaknesses?

      I understand that some projects need time to fix all the flaws, -- not full-time paid open source developers and all that -- but others like tinc seem to be trying very hard to pretend there is nothing wrong with their software.

      Nevermind that the developers did not take the time to learn about cryptography and security engineering before developing any of these. All of the cited projects contain well-known high-level flaws. If the developers had of looked at the attacks against earlier versions of SSH and SSL, they could of saved themselves a lot of trouble.

      The not-invented-here syndrome which is common in all software development, including open source development, not only makes software engineering look like a failure -- it works against the security engineering principles of using well known and tested designs in security / cryptography products / projects.

    4. Re:Problem of semantics by Fruit · · Score: 1
      It's one thing to find flaws in Open Source products, but Peter *did* get a bit too personal with his "penis-shaped sound waves" remark. He may be right (I think he is) but phrasing it like that will simply make those developers take a defensive stand instead of a constructive one.

      This is what inspired the grandparent post, not the actual problems that Gutmann found.

  130. Sigh by FallLine · · Score: 1
    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
    I get tired of the excuses the OSS community proffers. Yes, you can argue that because the code is open, this security expert was able to easily audit the code. There is some truth in this. However, it is very much of a double edged sword. In the case of such utter apathy as Peter so aptly demonstrated I would argue that its openess is far more of a liability than an asset. These vulnerabilities are well known. These packages could have been exploited many years now by any competent programmer with a lick of motivation. No leap of insight was required to exploit them because clearly no one had the skill and the care enough to properly audit and fix these packages. If you are a hacker trying to break into a server running a number of lesser open source applications, then this kind of openness provides one very viable path to breakin, providing you are willing to put forth the effort.

    The only way that the argument for open source software security holds water is when its security is vigorously pursued by a very active developer community such that a hacker must be able to see and exploit before, at bare minimum, a handful of qualfied experts can detect, fix, and efficiently deploy patches to the more dilligent end users. In other words, it's a race against time and a numbers games in which the deck is hopefully stacked against the hacker. However, if that open source community cannot even be bothered to hunt, fix, and deploy patches for well known vulnerabilities, then this same openness makes it that much easier for the hacker.

    Peter just demonstrated a case of this apathy. My gut tells me that this the rule, not the exception. The core linux kernel, apache, and perhaps a coupe dozen others are the few projects that can claim a truly active developer and security community. I, for one, wouldn't trust any of the other open source packages for any computers that I deemed critical insofar as security goes.
    1. Re:Sigh by gilgongo · · Score: 1

      > I, for one, wouldn't trust any of the other
      > open source packages for any computers that
      > I deemed critical insofar as security goes.

      Would you include OpenSSH and OpenSSL as systems you trust?

      If not, then you are affectively saying you would not trust GNU/Linux at all for anything mission-critial.

      But since 99% of computer systems are no way near mission critical - what's the big deal? Security is about trust and a jugement of effort to secure over convenience.

      So use Solaris and commercial SSH, etc. or some other flavour that you trust. It's not as if it's a straight choice between GNU/Linux and Windows or whatever.

      --
      "And the meaning of words; when they cease to function; when will it start worrying you?"
    2. Re:Sigh by FallLine · · Score: 1

      Where did I say that Open Source should never be used or that security is always critical? When it comes to my own personal security, I take a pretty relaxed approach because I don't believe that many people are interested in hacking me. What I was addressing is the notion that Open Source software automatically tends to be automatically secure by virtue of it being open for inspection. It is my experience that MOST open source software is LESS secure than their more popular proprietary counterparts in practice [this is not just a function of the vulnerabilties that exist or window of time before the first patch, but also the window of time till the patch can be installed by end users, the ease with which hackers can create exploits (easier w/ OSS), etc]. Yes, I do believe the Linux kernel, Apache, and a couple other packages are pretty secure as they are now because of their overwhelming popularity with developers. However, the truth is that a typical, say, linux installation uses hundreds of other lesser-known packages and may run a couple dozen services which receive NO inspection. If the total developer community doesn't really put forth the effort to make SURE the code is secure, then I'd far rather that code be closed than open.

      As for OpenSSH or OpenSSL, I cannot comment on their particular status in detail because I haven't worked with them enough. It is a matter of relative risk. I suspect OpenSSH and OpenSSL are relatively secure because they are very popular with the developer community and, consequently, receive significant review (even if not by the greatest of experts)--so they unlikely to have such well known flaws. That doesn't mean though that the hundreds of applications that employ them are implemented in a secure way or that other aspects of those applications are secure (e.g., the SSL socket may be secure, but it doesn't much matter if some corny CGI that it's ultimately connection to isn't vulnerable to the most trivial of SQL injection).

      Now I'm not going to argue that Microsoft or dozens of other corporate developers have been that security conscious either. Many of them have been too lax because they didn't fully realize that it could negatively impact their sales. I believe it is starting to dawn on them though. Contrary to the average slashdotter, I think they can achieve pretty good security by corporate decree in the coming years. Whereas I don't think this is likely in the open source community, particularly with most of these lesser applications, because so many of them are written on whim and put into production without anyone really vetting them out....the mantra that many eyes makes bugs shallow (whether they word it like this or not) lulls too many into a false sense of security. Just because it is open does not mean qualified eyes are REALLY on the code, but it is a sure thing that a hacker CAN read that same open code.

  131. Replacing CRC in CIPE by hey · · Score: 1

    How easy would it be to replace CRC-32 with
    something else in CIPE?
    Without looking at the code, I assume it does:

    UINT2 word = Crc(buffer);

    So could this just be changed to:

    UINT2 word = Md5(buffer) & 0xffff;

    1. Re:Replacing CRC in CIPE by plcurechax · · Score: 1

      How easy would it be to replace CRC-32 with
      something else in CIPE?


      It is not just changing a few hundred lines of code. The network protocol was insecure by design not just in its implementation. To make off the cuff attempts to fix it are worthless, a good security protocol needs to be designed. Designed to resist known attacks, and in a manner to try to minimise damage from unknown attacks.

      It takes alot of work and very hard to get a security protocol right, Security Engineering by Prof. Ross Anderson describes how a published 3 line protocol (written in BAN logic, a very high level pseudo code) had a flaw for over 10 years.

  132. Re:Well... by Abcd1234 · · Score: 1

    And this has absolutely nothing to do with anything.

    And you have no idea what you're talking about. Holes in user-space can be insulated from the rest of the system in many ways.

    1) You can reduce the privileges of the daemon/user-space app such that an exploit in the app doesn't necessarily result in a root exploit. This is the technique Qmail uses.

    2) You can run the apps in a secure 'jail' (UML, FreeBSD jails, etc). This is used quite frequently to enhance the security of Sendmail, Apache, etc. No, not replace security, enhance it.

    However, if the hole is in your kernel, you're screwed... there's no way to insulate the kernel from itself.

    Moreover, if the hole is in a user-space app, it's easily patched, and the daemon restarted. If it's deeper in the OS (ie, in the kernel), the fix is typically far more invasive and will likely require a reboot to take effect, something which sysadmins are loathe to do. How many service packs have you installed that required a reboot to take effect?

    Closed-source holes aren't covered up anyway;

    Again, you're misinformed. It has *very* often been the case that organizations are made aware of security vulnerabilities in their software, and that organization chooses not to release the information to those who need it. Microsoft is the most obvious example of this... there have been many stories on Slashdot about individuals who have reported security holes to MS only to have their discovery covered up, or only released to a special, select few, which happen not to be you and me.

    OTOH, you could claim that CIPE's holes were covered up

    Fine, one friggin' example. Would you care to tell me how this *one* example can possibly speak for the whole of OSS? In my experience, this sort of behaviour is *definitely* out of the ordinary, and means I probably shouldn't use that package. Big deal, I'll use something else.

    This is precisely the kind of idiotic hand-waving that the article was about. These projects were not fixed up quickly, or at all for that matter!

    Which is why I said "in general". If there's a hole in, for example, SSH, Apache, Sendmail, Bind, wuftpd, the Linux kernel, a fix is available *very* quickly (typically within 24 hours). Sure, there are some exceptions where maintainers aren't diligent enough. But I would argue that this is the exception rather than the rule... feel free to try and prove me wrong. You'll probably have trouble, though.

    CIPE and vtun use open standards? Bullshit.

    Oh please, like two examples defines the whole. What about standard SMTP, FTP, HTTP, SSH, SSL, or IPSec? Those look like open standards to me.

  133. Vtun over OpenSSH by ripcrd · · Score: 1

    I just read an article in Linux Journal about using vtun over an SSH connection. Is it possible that this combination would fix some of the problem?

    --
    --Somewhere there is a village missing an idiot.
  134. CIPE uses UDP by ion++ · · Score: 1

    CIPE doesnt run over tcp, it runs only over UDP, and there are 2 "versions" one that uses a static key, and one that uses a static public-keysystem to exchange a dynamic key which is used encrypt the packets.
    Are UDP not stateless?

    I run CIPE, but now i'm gonna read his article, and see if i change my choice of VPN.

    JonB

    1. Re:CIPE uses UDP by Effugas · · Score: 1

      UDP is a thin wrapper that basically adds ports and a checksum to IP and nothing more.

      It's one of those "tiny systems that popped up because we don't have good stateless crypto" -- as Guttman points out, it's as flawed as everything else that didn't go through SSH and SSL's trial by fire.

      The point to my post was, damnit, there's a *reason* SSH and SSL aren't good enough: They utterly ignore the fact that unreliable networks need to be secure too, by mandating an underlying reliable transport.

      It's much easier to keep your crypto synced when you can't drop packets.

      --Dan

    2. Re:CIPE uses UDP by ion++ · · Score: 1

      but TCP ontop of TCP leads to bad throughput. I suppose bad throughput is better than bad security.

      How does IPSEC handle UDP packets? and ICMP packets? Doesnt IPSEC transmit those as encrypted UDP and ICMP packets?

      JonB

  135. Don't "speak for themselves"! by Anonymous Coward · · Score: 0

    The article says these code fragments "speak for themselves". I'm very confused, what is wrong with them?

    void encrypt_chal(char *chal, char *pwd)
    {
    char * xor_msk = pwd;
    register int i, xor_len = strlen(xor_msk);

    for(i=0; i < VTUN_CHAL_SIZE; i++)
    chal[i] ^= xor_msk[i%xor_len];
    }

    [...]

    void gen_chal(char *buf)
    {
    register int i;

    srand(time(NULL));

    for(i=0; i < VTUN_CHAL_SIZE; i++)
    buf[i] = (unsigned int)(255.0 * rand()/RAND_MAX);
    }

  136. Re:UnitedLinux "Free for non-commercial uses" by Effugas · · Score: 1

    Ordering issues and dropped packet management are what you're missing. SSL and SSH get it for free by running over TCP.

    Is a dropped packet an attack, or a normal error? It's nontrivial to know.

    --Dan

  137. Good point by Anonymous Coward · · Score: 0
    What's the fun of a rant if you're going to get everything right?

    In my rush to punch that in, not only did I mix up /dev/urandom (less secure) and /dev/random (more secure), but also forgot that urandom incorporates some degree of entropy as well. Fortunately, I was only bitching and not relying on my spotty memory for anything critical. </embarrassed>

  138. Peter Gutmann has published a coda/followup... by durval · · Score: 1

    ... to the original article. It's available here .

    To sum it up, he speaks good things about both Free S/WAN (representing the IPSEC-is-good camp) and OpenVPN (representing the IPSEC-is-too-complex guys). Too bad neither one run on kernel 2.0 (still my preferred for security applications).

    Like the original article, very well written and informative. A must read.

    --
    Best Regards,
    Durval Menezes.
    I have never met a computer that didn't like me.