Slashdot Mirror


Vulnerability In SSH1

matt666 writes "Bindview released an advisory yesterday warning us that "[a]n integer-overflow problem is present in common code of recent ssh daemons, deattack.c, which was developed by CORE SDI to protect against cryptographic attacks on SSH protocol. [...] This effectively allows an attacker to overwrite arbitrary portions of memory". Practically all common versions of SSH1 are affected, except OpenSSH 2.3.0." A whole slew of people have written in regarding this - from the folks at SmoothWall advising of an update, to a bunch of people just saying "Oh No!". My understanding is that a fix is already in the works.

118 comments

  1. 1.2.30 Seems to not have the bug by Anonymous Coward · · Score: 1

    ruben@ruben:~ > ssh -v -l `perl -e '{print According to the site this should trigger the bug but it doesn't

    ruben@ruben:~ > ssh -v -l `perl -e '{print "A"x88000}'` localhost
    SSH Version 1.2.30 [i686-unknown-linux], protocol version 1.5.
    Standard version. Does not use RSAREF.
    ruben: Reading configuration data /etc/ssh_config
    Hostname or username is longer than 255 characters.
    ruben@ruben:~ >

    Does this mean it's secure?

    1. Re:1.2.30 Seems to not have the bug by Anomalous+Ovum · · Score: 1

      > Hostname or username is longer than 255 characters.
      > Does this mean it's secure?

      ABSOLUTELY NOT... the message "is longer than 255 characters" was issued by your (non-openssh) client, which imposes a 255 char limit.

      But based on that version alone, you need to replace your sshd. If you obtain OpenSSH and (at least) compile it, then you can use the OpenSSH version of 'ssh' to do the test.

      Then, from within the source dir, run the test using the newely compiled ssh:

      ./ssh -v -l `perl -e '{print "A"x88000}'` localhost

      I did that while doing a 'strace -o trace.out -fF -p xxx' (xxx was the pid of the main sshd daemon whose parent pid is 1).

      The ssh client's verbose output ends with

      debug: Sent encrypted session key.
      debug: Installing crc compensation attack detector.
      debug: Received encrypted confirmation.
      Connection closed by 127.0.0.1

      [uh oh, sudden disconnect!]

      ...and the strace log tells the rest of the gruesome story...

      ... After many reads encrypted gobelgook,
      10951 --- SIGSEGV (Segmentation fault) ---

      TILT.
      SEG fault. Call key operator!

  2. but it is childish to use scripts, no? by Anonymous Coward · · Score: 1

    Peter Pan Syndrome be damned

  3. Whaaap! You've been trolled by Anonymous Coward · · Score: 1

    You must be American - no sense of irony huh?

  4. Yay for OpenBSD Gang! by Anonymous Coward · · Score: 1

    Once again we have proof that the OpenBSD folks have given us a solid and secure product.

    Given that OpenSSH is used across a greater spectrum that OpenBSD, this should help the OpenBSD group gain even more support.

    Never, ever use Linux for a firewall. Use OpenBSD!

    Opps, thats not a good thing to say on slashdot, is it?

  5. Re:All this wouldn't have happened... by Alan · · Score: 1

    Stone tablets?

    Luxury!

    :)

  6. Re:another disadvantage is the lack of sftp by dmiller · · Score: 1

    It is in the CVS snapshots

  7. Re:another disadvantage is the lack of sftp by extra88 · · Score: 1

    SSH's own Win32 SFTP client is good.
    http://www.ssh.com/products/ssh/

    Based on your .edu, I think you can use it for free.

    Unfortunately I haven't seen one for Classic Mac yet. At least command line will be an option with OS X.

  8. OpenSSH 2.2.0 updates for RedHat by kwalker · · Score: 1

    I just patched the OpenSSH 2.2.0pl1 RPMS that I've been using. For anyone using OpenSSH 2.1 or 2.2 (As long as you've already got OpenSSL 0.9.5a or later) you can grab the rpms (and the src rpm) from here.

    --
    Improvise, adapt, and overcome.
  9. Re:SSH isn't enough by chrome · · Score: 1

    You use APOP.

    Its been around for years, and most clients support it.

    It encrypts the password with a hash then sends it to the server, from memory.

  10. Fixed URL by pen · · Score: 1
    Debian's servers use content negotiation. Here is the correct URL:
    http://www.debian.org/security/2001/dsa-026

    (You're getting the dsa-026.html file in the 2001/ directory.)

  11. Red Hat users by Yenya · · Score: 1
    ... have available the openssh-2.3.0p1 RPMs since November 21 (actually a few hours/days later, because Nov 21 is the build date of the package). This is a long time.


    -Yenya
    --

    --
    -Yenya
    --
    While Linux is larger than Emacs, at least Linux has the excuse that it has to be. --Linus
  12. Re:Question... answer by Lumpy · · Score: 1

    Yes he is.

    Bosses that whine about spelling are usually morons. Bosses, that want results? hire guys like me.

    --
    Do not look at laser with remaining good eye.
  13. Hurry Sys. Admins (was Re:I can just see it...) by Cool+Hand+Luke · · Score: 1
    ...only 23 days left until your server's destruction!

    We're off to patch our code
    We're keeping Kiddies off
    To save our web servers.
    Our Sys. Admins.
    Searching for obsure bugs
    Heading off new expliots
    Leaving Quake games behind
    Who knows what bugs we'll find
    We must be smart and brave
    And always be sure to save
    If we don't, in just one year
    Our website will disappear
    Fighting with Script Kiddies
    Who won't stop with the "ph3r m3s"
    Then we'll reboot, and when we're done
    More Quake for everyone with our Sys Admins!

    George Lee

  14. Looks like EIOAGAYWP.... by Cool+Hand+Luke · · Score: 1
    ...Encyption Is Only As Good As Your Worst Programmer.

    Good to see bugs getting shaken out. :)

    George Lee

  15. Re:Silly posters. by jslag · · Score: 1
    1. recently I've been losing patience with slashdot
    2. I've been posting stuff just to see how it gets received, not because I believe in what I say, or even care about what I'm talking about. .


    I don't suppose other people coming to point #2 has anything to do with the state of affairs in #1?
  16. Re:Fix is VERY simple by vherva · · Score: 1
    See this and man 2 kill.

    You'll have to reverse the arguments of kill for that to work:

    - kill(SIGALRM, getppid());
    + kill(getppid(), SIGALRM);

    --
    -- v --
  17. Re:FreeBSD users: Have fun with this one. by Brooks+Davis · · Score: 1

    For the record, both the ssh1 and OpenSSH ports have now been fixed. Personaly, I'm just upgrading my remaining 3.x machine to 4-STABLE since it's long over due.

    --
    -- Any statement of the form "X is the one, true Y" is FALSE.
  18. Mr Vixie by FiDooDa · · Score: 1

    Maybe it would be a good idea to ask Mr Vixie to create a 1 656243&mode=nested">closed mailing list</a>, to better prepare for ssh security holes.

  19. Re:switch to openSSH by swotl · · Score: 1

    OpenSSH pre 2.3.0 is also vulnerable, so don't be getting any false sense of security here.
    -
    sig sig sputnik

    --
    -
    sig sig sputnik
  20. Re:Stupid fix.. but none the less.... by sporty · · Score: 1

    I know. But this is a firewall ;> Use i know.. "why ssh on the firewall!" well there is.

    ---

    --

    -
    ping -f 255.255.255.255 # if only

  21. Re:Silly coders. by sporty · · Score: 1

    Its hard to write a single much less a speciallized app to go through every input type, every branch of execution. Its possible, but its VERY hard.

    ---

    --

    -
    ping -f 255.255.255.255 # if only

  22. Re:You don't even need to follow the link! by Tony-A · · Score: 1

    Yep. That sounds like OpenBSD. They have closed many holes that nobody knows about. Not all of them, I'm sure, but if they find one, they try to close all similar holes. FreeBSD seems to be playing a good game of catch-up.

  23. Re:Silly coders. by jmegq · · Score: 1
    > Of course, I don't think this is the way to go - mostly because current SML implementations are damn slow, and I'm a C bigot.

    You may be a C bigot :) but SML implementations aren't so bad:

    Check out the results of the ICFP contest - the ML-based programs were really, really fast. (And they also worked, unlike a lot of the C and Perl solutions!).

    Of course, it's too bad I'm a C bigot too, or my code might be better... ;)

  24. Re:another disadvantage is the lack of sftp by thrig · · Score: 1

    full path, yes, wildcards, no. I type wildcards into my scp lines (hell, even environment variables work) all the time, and haven't had any problems...

    However, yes, for anything more than quick or automated file moves, stfp is a much better option.

  25. Re:This can't be true... by MadAhab · · Score: 1

    Well, it will be lazy admins who suffer from this... In particular - this is in the article, should you ever decide to read it - the nature of the flaw prevents the buffer overflow from using certain instructions, which means that it's sufficiently hard to write an exploit for this that none are currently known. So the skript kiddiez are probably not going to get their heartz dezire this time.

    Boss of nothin. Big deal.
    Son, go get daddy's hard plastic eyes.

    --
    Expanding a vast wasteland since 1996.
  26. Re:FreeBSD still no patch... by MadAhab · · Score: 1

    Huh? FreeBSD has been using OpenSSH 2.3.0 - a non vulnerable version - since December 5.

    Boss of nothin. Big deal.
    Son, go get daddy's hard plastic eyes.

    --
    Expanding a vast wasteland since 1996.
  27. Server only by p3d0 · · Score: 1

    Don't everyone panic and upgrade your ssh1 clients. This only affects the server end. If you run an ssh1 server, now you can start worrying.
    --
    Patrick Doyle

    --
    Patrick Doyle
    I mod down every jackass who puts his moderation policy in his sig. Oh, wait a sec....
  28. Re:switch to openSSH by ncc74656 · · Score: 1
    the only downside of openssh that i've seen was that it was a pain to figure out which compile-time options i needed. make sure you know exactly how your passwords are stored on your box. once i had that figured out, i liked it better than i ever liked the commercial SSH.

    As I recall, about the only thing that was needed was to make sure OpenSSL was installed first. Keeping your favorite compiler options in CFLAGS and CXXFLAGS helps, too, as configure (if it's of the GNU variety) will usually pick up whatever is in those variables. It's always figured everything else out by itself. I've installed OpenSSH on SuSE 6.[34] and LFS systems, and have never had any problems with the build.

    --
    20 January 2017: the End of an Error.
  29. Re:SSH isn't enough by ViGe · · Score: 1

    Sure OpenSSH will protect you when you log into your *nix box. But what happens when you go to get your POP mail from your ISP? You send out your password in plaintext and then your mail is completely vulnerable.

    What? You STILL use unencrypted POP mail? I think all the major mail servers support POP/IMAP over SSL. Get it now.


    --
    --
    It has to work - rfc1925
  30. Re:You got it backwards... by CrayDrygu · · Score: 1
    I still find it graciously amusing how some idiots are WILLING to feed the trolls even though they know it as such. YHBT, period.

    And yet, I got modded up three times. Gotta love /.'s crack-smoking moderators =) It's just so easy!

    Of course, I've already hit the cap (been there for months now), so whatever...

    --

    --

    --
    "I personal[ly] think Unix is "superior" because on LSD it tastes like Blue." -- jbarnett

  31. Re:switch to openSSH by sparty · · Score: 1

    That's interesting, because I just did ./configure, dl'd and installed the libs it needed (zlib and OpenSSL), ./configure again, make, make install, edit /usr/local/etc/sshd_config so it ran on port 123 (testing purposes, ssh is the only access I have to my Linux box, so...), start /usr/local/sbin/sshd, ssh in on port 123, verify that it works, change sshd_config, kill -HUP `cat /var/run/sshd.pid`, and it's all set.

    The above is on a Slack install still running kernel 2.0.38 and some older version of glibc.

  32. Unsafe Languages by antigandhi · · Score: 1

    Important utilities like ssh should not be written in unsafe languages like C or C++ that allow buffer overflows. Otherwise, this class of problem is never going to go away, because developers aren't perfect. And, because people don't want to be bothered about updates, in present-day reality Unix is highly insecure.

    1. Re:Unsafe Languages by drumsetdrummer · · Score: 1

      Well at least they weren't written in Java. Then my sshd would run 3 or 4 times slower and needlessly suck up memory and CPU cycles as the VM churned all day. Criminy, when's Java finally gonna die?
      --

    2. Re:Unsafe Languages by (void*) · · Score: 2

      It is strange that you should say this, because the present exploit has nothing to do with buffer overflows. If there is anything to be said about "safe" or "unsafe", it is that you can write unsafe programs in any language. As far as I can tell, C is still a good language for doing systems work.

    3. Re:Unsafe Languages by Tassach · · Score: 2
      You are making the all-too-common mistake of confusing the Java programming language with the Java Run-Time enviornment / virtual machine. They are totally seperate things.

      There is no reason why you cannot compile your Java language source code into native machine code for a specific architure / OS. Likewise, you could compile C/C++ source into Java byte codes and run it on any Java virtual machine.

      From my experience, Java programs compiled into native machine code have near-identical performance to C++ implementations of the same programs. You lose object-level portability by doing native compiliation, but you still have 100% source code compatibility; which is more than you can say for C (#ifdef, anyone?)

      Actually, for highly reliable system level programming, ADA is probably the best choice. It was specifically designed for safety and reliability - which is why it is the preferred language in the Avionics and Nuclear Power industries. Too bad that nobody outside those niches uses it.

      --
      Why is it that the proponents of "one nation under God" are so eager to get rid of "liberty and justice for all"?
    4. Re:Unsafe Languages by q000921 · · Score: 2
      The present exploit has to do with unsafe languages in two ways. First, it allows an arithmetic operation to overflow without catching the error. Second, it allows an out-of-bounds memory reference based on that erroneous result. Any decent systems programming language with safety features should have caught both errors.

      C is a "good language for doing systems work" if safety, security, and correctness are not very high priorities and if your programs are reasonably small. That was true of the original UNIX system. It isn't true of something like SSH or other network services (security is of paramount importance) and it isn't true either of huge GUI applications (too many potential sources of errors to ever get something really reliable).

      (In theory, C++ could be a little better, but in practice, the way C++ is actually used, the same comments apply to C++.)

    5. Re:Unsafe Languages by roca · · Score: 3

      You are wrong. The present exploit has everything to do with buffer overflows. In this case the "buffer" is a hash table; the exploit depends on writing data outside the bounds of the hash table, which would be caught by a safe language.

  33. Re:FreeBSD users: Have fun with this one. by darkrot · · Score: 1

    To get OpenSSH 2.3.0p1 to compile under freebsd 3.4-RELEASE:

    - first ensure openssl 0.9.6 is installed. If not, install it.
    - ./configure --without-pam --with-tcp-wrappers --sysconfdir=/etc/ssh --with-md5-passwords --with-libs=-lcrypt

    Took a little monkeying around, but it seems to work fine for me at the moment. Good luck.

  34. FreeBSD still no patch... by jon_c · · Score: 1
    http://www.freebsd.org/security/#adv

    What the fuck are people publishing a patch if there's not a fix?

    Streamripper

    --
    this is my sig.
  35. How secure is ssh by wiliano · · Score: 1

    I've been pushing for outside access at my workplace for a while now. There are a lot of security concerns and I have been trying to advocate using ssh. Is this a viable solution? In other words, how safe is it? -Willy

  36. Re:another disadvantage is the lack of sftp by Bakeneko · · Score: 1

    For Win32 I like SecureFX 1.9

    Tim Gaastra

    --

    Tim Gaastra
    Build a better mousetrap and the world will immediately get their fingers caught in it.
  37. Re:Go for SSH2 by Doppelgaenger · · Score: 1
    The problem (for me anyway) is that there are a lot of commercial/closed-src ssh apps (mostly for Win and MacOS) that don't support SSH2. Puting ssh1 compatability into ssh2 means that the vulnerable ssh1 daemon is still run when an ssh1 connection is made. So, I still run ssh1 everywhere so that I don't have to support some machines just running ssh2 and some machines running a combination of them both. When SSH official stops supporting and stops distributing the ssh1 source in May, most vendors will move to ssh2 only, but it's going to take a while.

    dopp

    --
    -- If a god of love and life ever did exist, he's long since dead. Someone, something, rules in his place
  38. Re:another disadvantage is the lack of sftp by Temkin · · Score: 1

    Doesn't appear to have made it to the "portable" version yet.

    I just installed 2.3.0p1, and it isn't there.

    Temkin

  39. Re:SSH isn't enough by RFC959 · · Score: 1
    Sure OpenSSH will protect you when you log into your *nix box. But what happens when you go to get your POP mail from your ISP? You send out your password in plaintext and then your mail is completely vulnerable. Does anyone make a mail server that encrypts with common clients?
    You are correct, but you can tunnel POP (or whatever) over SSH. The fetchmail documentation explains how to do this.

    Of course, there is still the problem that good old SMTP still goes unencrypted, but TLS-aware MTAs (TLS is the new name for SSL, basically) will encrypt the traffic between them! Recent versions of Sendmail are TLS-aware, there's Postfix-TLS, and experimental versions of Exim. Not sure about qmail.

    As for POP and IMAP, I don't think anybody is talking about making encryption a standard part of them, but I could well be wrong.

  40. Er... by lemox · · Score: 1

    I was always under the impression that if your traffic passes through any sort of localized network it can be sniffed, like an @Home subnet, University network, network at your job etc. Your theory would really only apply to to DSL or dialup and then only if the machine you were contacting was also connected directly to the internet with no sort of network attached to it.

    --

    "We obviously need a new moderation category: (-1, Woo-fucking-hoo)" --Mr. AC

    1. Re:Er... by LessTalc · · Score: 1
      Your theory would really only apply to to DSL or dialup and then only if the machine you were contacting was also connected directly to the internet with no sort of network attached to it.

      No! That is utterly meaningless. There is no such thing as "connected directly to the internet with no sort of network attached to it". The internet is a public network. Whenever you send data across a public network you should assume it is being sniffed. Apart from the fact that the original post was a joke.

    2. Re:Er... by LessTalc · · Score: 1

      You're still wrong. And you're a grotesquely ugly freak.

    3. Re:Er... by Thrakkerzog · · Score: 2

      According to the network guy here (who I highly respect) many well-networked universities are moving to 100mbit switched non-blocked full duplex. (meaning I have 100 mbit link to anywhere on campus no matter what.) This is mainly in preparation for video over the local network. (In fact, we already have a video server here which allows students to "rent" movies for the day to watch on their computer for a small fee.)

      I expect other universities to follow in the coming years. I guess I assumed that other schools would pick up with this a little er. (especially CMU, although they seem to focus more on wireless networks..)


      -- Thrakkerzog

    4. Re:Er... by Thrakkerzog · · Score: 2

      It depends on the network. In a shared non-switched environment, password sniffing is very simple. Many universities are migrating to 100mbit switched networks, which means your traffic is localized. (except for broadcast traffic, of course.) This also means that you can not switch your ethernet card into promiscious mode and lift passwords as easily.


      -- Thrakkerzog

    5. Re:Er... by friscolr · · Score: 2
      switched networks are not necessarily any safer than networks based around hubs. check out dug song's dsniff package to see just how vulnerable switched networks can be.

      anytime you communicate with anything other than yourself, the Trust issue comes into play.

      -f

    6. Re:Er... by lemox · · Score: 2

      The *point* was whether or not someone would need to access to a major node to sniff your data. Yes, this internet is a public network. No, it does not apply to what I'm saying. Otherwise I could just sit on my dialup link, fire up a sniffer and watch every bit of traffic on the internet go by. Also, the post I was replying to was the not the original post.

      --

      "We obviously need a new moderation category: (-1, Woo-fucking-hoo)" --Mr. AC

  41. OpenWall by kollaps · · Score: 1

    I'm not too experienced with overflows, but how would the Openwall buffer overflow kernel patch by Solar Designer handle this, if at all?

  42. Oh No! by f5426 · · Score: 1



    --> 2.3.0 since 8 Nov

    <http://www.FreeBSD.org/cgi/cvsweb.cgi/src/secu re/usr.bin/ssh/Makefile>

    --> 2.3.0 since 12 Jan

    Cheers,

    --fred

    --

    1 reply beneath your current threshold.

  43. Wildcards work for openssh 2.3 by biftek · · Score: 1

    I have no probs using wildcards (*.htm etc) for openssh 2.3 server or client.

  44. Re:Debian Users... by SquadBoy · · Score: 1

    Yup, I got it yesterday with my daily apt-get dist-upgrade. All hail Debian.

    --

    Cypherpunks: Civil Liberty Through Complex Mathematics. Those who live by the sword die by the arrow.
  45. Re:SSH isn't enough by bjclark · · Score: 1


    WHAT? Your pop mail ISN'T encrypted with pgp/gpg? I have all the people I really care to talk to properly educated in how to use PGP. Even my wife, who found giving up AOL to be highly traumatic. Hell, I've got my filters set up to send anything that ISN'T signed or encrypted directly to the spam box.

    What in the world does that have to do with sending your POP password in plain text to fetch your PGP encrypted email?

  46. Question... by Rudeboy777 · · Score: 1

    I've been using OpenSSH 2.3.0 for what seems like a long time... Maybe I'm the only one who goes on an "update bender" every couple of months to make sure I have recent versions of the stuff I use (and crypto related software is what I check most often). Hell, Debian and Helix Gnome could be updated by an AOLer. Again I call into question the quality of a sys admin who can go even a few weeks without updating important software, or at least checking out recent info.

    --

    From hell's heart I fstab at /dev/hdc

  47. Re:What's next?! by gzerod · · Score: 1

    would a 747 filled with cd-rom's even be able to take off??

  48. Re:I pity da fool who follows Smoothwall instructi by Filbert+Da+Frog · · Score: 1
    Spot the person who doesn't fully understand what he's posting ;)
    The only things open to the internet when using smoothwall is SSH (if enabled, disabled by default). That's it. Everything else is locked down with IPChains and tcp_wrappers. Smoothwall is secure. It was designed with security in mind.
    This is a bold claim, but smoothwall is basically uncrackable out of the box. The only thing 'affecting' it now is the SSH problem. Hence, we've released a fix for it. The bugfix was out within hours of the bug being found. How many other FireWalls (commercial or free) can say that?
    This is our first security related problem, and it's now patched.
    The only way FTP/telnet can be accessed is from within the network smoothwall is protecting. Smoothwall is secure. End of story.

    Jon Fautley, Smoothwall Developer and Listmaster
    --

    --
    Jon Fautley, SmoothWall Developer - http://www.smoothwall.org/
  49. Here's the patch and how to apply it by Wills · · Score: 1

    Cut-and-paste the following text into a file deattack.c.patch.

    • --- deattack.c Fri Feb 9 19:24:19 2001
      +++ deattack.c.orig Wed May 12 12:19:25 1999
      @@ -79,7 +79,7 @@
      detect_attack(unsigned char *buf, word32 len, unsigned char *IV)
      {
      static word16 *h = (word16 *) NULL;
      - static word32 n = HASH_MINSIZE / HASH_ENTRYSIZE;
      + static word16 n = HASH_MINSIZE / HASH_ENTRYSIZE;
      register word32 i, j;
      word32 l;
      register unsigned char *c;

    Get the source tar file, untar it with tar zxvf tarfile, change into the source directory, and patch

    1. Re:Here's the patch and how to apply it by Wills · · Score: 1

      Correction: patch < deattack.c.patch using the following text copied into deattack.c.patch

      --- deattack.c Wed May 12 12:19:25 1999
      +++ deattack.c.orig Fri Feb 9 20:00:21 2001
      @@ -79,7 +79,7 @@
      detect_attack(unsigned char *buf, word32 len, unsigned char *IV)
      {
      static word16 *h = (word16 *) NULL;
      - static word32 n = HASH_MINSIZE / HASH_ENTRYSIZE;
      + static word16 n = HASH_MINSIZE / HASH_ENTRYSIZE;
      register word32 i, j;
      word32 l;
      register unsigned char *c;

    2. Re:Here's the patch and how to apply it by Wills · · Score: 1

      Yes, and if you'd read the whole thread before rushing to post you'd have seen my corrected patch posted 7 minutes before your comment.

    3. Re:Here's the patch and how to apply it by Wills · · Score: 5

      What is it with caching contents of a POST method -- netscape picked up its cached version of my previous post...

      Last correction: patch < deattack.c.patch using the following text copied into deattack.c.patch

      --- deattack.c Wed May 12 12:19:25 1999
      +++ deattack.c.orig Fri Feb 9 20:00:21 2001
      @@ -79,7 +79,7 @@
      detect_attack(unsigned char *buf, word32 len, unsigned char *IV)
      {
      static word16 *h = (word16 *) NULL;
      - static word16 n = HASH_MINSIZE / HASH_ENTRYSIZE;
      + static word32 n = HASH_MINSIZE / HASH_ENTRYSIZE;
      register word32 i, j;
      word32 l;
      register unsigned char *c;

  50. Re:Fix HOWTO by Wills · · Score: 1

    I posted a patch file

  51. A hole in attack detection by elsvp · · Score: 1

    It's a very big problem, We wont detect attack, detect viruses, but when we create this detection system, we open a new holes in new code.

  52. Re:No Microsoft Patch yet... by The+Blackrat · · Score: 1

    Because they don't implement it, you dumb rube.

  53. Re:This can't be true... by somethingwicked · · Score: 1
    I have read the article-thank you-and it does not change the inverse of the Open Source mantra:

    One person figures it out and everyone benefits

    All it takes is ONE person writing a script thats DOES use this exploit and the script kiddies will be unleashed. It does not matter that it is sufficiently hard to write, if someone writes it once, thats all it takes. Hard to write and hard to run a script are two different things

    You can call this a troll if ya want, or you can take it as it was intended: a reminder that the /. community needs to do a bias check when it discusses vulnerabilities. (Or dont do a bias check, its entertaining, and hey /. is the place to be if you lean to open source!) *grin*

    All too often on M$ related items the comments read like this "hahaha, if they had just disabled this, this wouldn't be a problem. They're just idiots!"

    On Open Source issues they read like this "Well, this isn't REALLY a problem...if you simply turn off this, you are safe. Easy."

    --

    ---"What did I say that sounded like 'Tell me about your day?'"---

  54. Only Criminals should be worried. by Flabdabb+Hubbard · · Score: 1
    The rest of us law abiding citizens have nothing to fear. I mean, how many of us have any truly sensitive data on our PCs ? And no, your checking account details do not count, since I can easily get them by paying a detective agency a couple of hundred bucks, and they'll get your credit history, criminal records, and a whole lot more.

    No I am talking about truly sensitive information, nuclear secrets, military budget info and the like.

    None of us would be stupid enough to store classified data on a PC attached to the internet, would we ?

    I think this is a storm in a teacup, we should not waste time worrying about things that really have no relavence. We should be more concerned about things like the DMCA and the like.

    What do others think ?

    1. Re:Only Criminals should be worried. by lizrd · · Score: 2
      You're right. Most of us don't have any data on our machines that really needs to be protected from the off chance that someone might see it. But, this isn't why I want to keep crackers/Script Kiddyz out of my machine. I can't afford to have my machine used to for criminal activities, I have things on my machine that I would really miss if they were gone, I don't want to have to spend a whole evening reinstalling the operating system and making sure that all the holes are properly closed this time.

      Just because I don't have classified data on my computer doesn't mean that I want to have it broken into and that I shouldn't take reasonable precautions to see that my system is safe.
      _____________

      --
      I don't want free as in beer. I just want free beer.
  55. Not sftp, but... by Vainglorious+Coward · · Score: 1

    ...for scp between Win and nix servers, I use WinSCP.

    --
    My next sig will be ready soon, but subscribers can beat the rush
  56. Just goes to show by XBL · · Score: 1

    that you should never, truly, trust the software you use.

  57. Re:Software vulnerabilities by davesplace80 · · Score: 1

    Fundamentally flawed???? So what would you call Microsoft? The most broken into web server and it's not open sourced ?

  58. Re:SSH isn't enough by AX.25 · · Score: 1

    Hopefully your ISP is smart and your email account is a virtual email account that has no actual machine access anyway.

    --
    What is pirate software? Software for inventory of stolen treasure?
  59. No Microsoft Patch yet... by CargoCult · · Score: 1

    And typically, no mention of this on the MS security site - when are those guys goung to catch up with the modern world?

    --
    **Vanuatu or bust**
  60. Universities! by volsung · · Score: 2

    Password sniffing is a big issue on university networks. I don't think you'll find more uncontrollable computers connected to a network in one place anywhere else. The problem is worsened because the high density of computers often results in the use of broadcast-style hubs to cut costs, especially when you are servicing a dormitory and don't care if the subnet gets bogged down. The result is that any yahoo could grab all the mail passwords for his entire floor without much difficulty. Secure services are essential in that sort of situation.

  61. another disadvantage is the lack of sftp by emil · · Score: 2

    I hate having to know the full path to everything, or the inability for the remote server to process wildcards. These are inherent limitations of scp.

    1. Re:another disadvantage is the lack of sftp by orabidoo · · Score: 2

      I use something like this very often: scp box:`pwd`/files\* .

    2. Re:another disadvantage is the lack of sftp by chrsbrwn · · Score: 2

      Actually, sftp support was recently added (it's available in the 2.3.0 version I just finished putting in all my servers ;-)

    3. Re:another disadvantage is the lack of sftp by EvlG · · Score: 2

      sftp is a problem because there are so few clients that support it. True, I could use it to send files between my servers, but for windows and mac it gets a little trickier. Can anyone recommend a good SFTP client for Mac/Win32?

  62. Well some OpenSSH are affected by Barbarian · · Score: 2
  63. I pity da fool who follows Smoothwall instructions by wik · · Score: 2
    Here's some of what smoothwall tells you do to:

    If you are in Windows bring up a dos session and make sure you are in the same directory as where you downloaded the tar.gz file - please make sure you follow this instruction. Linux / BSD / GNU based systems users you all know what you\ure doing so we won\ut teach you to suck too many eggs in this instruction in fact we won\ut teach you to suck any eggs and congratulate you on running a free operating system that enhances your standing in the community.

    Please open up a terminal window and type in the following:

    ftp __.___.___.___ [substitute underscores for the ip address of your SmoothWall server]

    When prompted for username type root

    When prompted for password type the password you allocated for root

    then follow the following instructions

    bin [followed by return]

    put smoothwall-openssh-2.3.0p1.tar.gz [followed by return]

    Once this operation is complete type

    quit [followed by return]

    Funny, I thought that the one of the great advantages of using SSH (aside from the port forwarding) was that you'd never have to send your password in cleartext. Besides, who actually allows root to connect to their FTP server? The conventional wisdom has always been that root is to powerful to "just FTP".

    Suck eggs, indeed.

    --
    / \
    \ / ASCII ribbon campaign for peace
    x
    / \
  64. Re:Question... answer by Lumpy · · Score: 2

    Oh it's simple. you look at security advisories but you do not download every update that floats down. A good sysadmin does not apply patches/updates/other fodder just because they are there. The sysadmin applies them if they are needed.

    I have 1 server running that has a 1.2 kernel on it. it hasn't been updated because it doesnt need to be.(and is in a remote location that takes days to reach) Only the foolish fix things that aren't broke.

    So, as one of the best sysadmins my corperation has, I DONT update important software every few weeks.

    P.S.- we still run NT 3.5 servers too for critical systems. Could an entire industry be foolish by not updating every few weeks? I think not.

    --
    Do not look at laser with remaining good eye.
  65. You don't even need to follow the link! by rangek · · Score: 2

    Shouldn't Theo have caught this? or is he only concerned with OpenSSH?

    Read past the headline:

    Practically all common versions of SSH1 are affected, except OpenSSH 2.3.0.

    So Theo (or someone else working on OpenSSH) DID catch it. Maybe they didn't know they caught it, or that it was exploitable, but they did fix it.

  66. Re:switch to openSSH by Saint+Nobody · · Score: 2

    i was using the portable version, it's just that, by default, it likes you to use PAM for password authentication, which slackware doesn't. if you don't use PAM, it likes you to heve your passwords encrypted with crypt. mine aren't.

    i had to use a few special configuration parameters (i think they were --enable-md5 --enable-shadow and --disable-pam, but i'm not sure. that's from memory.)

    --
    #define F(x) int main(){printf(#x,10,#x);}
    F(#define F(x) int main(){printf(#x,10,#x);}%cF(%s))
  67. Stupid fix.. but none the less.... by sporty · · Score: 2
    People are going to ignore it but simply disable SSH1 and make sure your sshd is NOT that old.

    Yeah, /usr/ports for freebsd 3 still uses openssh 2.2, but disabling protocol 1 is at least a quick fix while a more stable thing is done.

    ---

    --

    -
    ping -f 255.255.255.255 # if only

    1. Re:Stupid fix.. but none the less.... by Peter+Verhage · · Score: 2

      If you cvsup to FreeBSD 4.2 STABLE you will get OpenSSH 2.3 :) Ok, I know it's not a small step to cvsup from 3.x to 4.x, but it could be worth it in many different areas.

  68. Re:Obligatory 'power of open source' statement by expunged · · Score: 2
  69. Re:Silly coders. by PimpBot · · Score: 2

    Actually, if the poster was serious, I doubt he was supporting VB, but rather something like SML/NJ. The proponents of this language insist that their programs can be made unhackable because they can be mathematically proven to be secure.

    Of course, I don't think this is the way to go - mostly because current SML implementations are damn slow, and I'm a C bigot. ;->
    --------------------------

  70. No by ??? · · Score: 2

    There are a large number of ISPs which do not use switched networks, and also do not use AntiSniff. As a result, they have no protection against this. Seeing as you seem to believe that most ISPs prevent this, how do you believe they do that?

    Furthermore, the belief that every router hop from your machine to the machine you're connected to is secure is fatally mistaken. Just because your ISP has effective security measures does not mean that everyone on the route has the same effective measures.

  71. Unless you're using Irix by macdaddy · · Score: 2
    Unless of course you're using telnet on an Irix box, thanks to that telnetd sploit (buffer overflow I believe) from August '00. It's a breeze to crack and I've used it myself a number of times to try to fix a few lab machines from another department.

    --

  72. Re:Silly coders. by cyberdonny · · Score: 2

    Right, better use Windows/Visual Basic instead, which assume the coder doesn't know what he is doing, and thus introduce security holes on his behalf...

  73. Obligatory 'power of open source' statement by Wattsman · · Score: 2

    It looks like Debian already has the updated version available.
    More information available on the debian package at http://www.debian.org/security/2001/dsa-026/

  74. What's next?! by Pulzar · · Score: 2

    First bind, then ssh.. what's next -- will somebody find a way to hack Hotmail?!

    Oh, wait.. :)


    ----------

    --
    Never underestimate the bandwidth of a 747 filled with CD-ROMs.
  75. 2 of 2 by nezroy · · Score: 2

    lizrd got the first point, which is that someone coming in and fucking up your data, "sensitive" or not, is a serious pain, even if you have comprehensive backups.

    The second point is that while you may not be a criminal, leaving your box open to something like this makes you criminally stupid. Some script kiddie may jump in and start setting up IRC servers and using your machine to help in some DDOS attacks. Try proving to your local authorities that just because the logs say the attacks came from YOUR IP that it wasn't YOUR fault and that, please officer, can I have my computer back now?

  76. Go for SSH2 by Krollekop · · Score: 2

    I thought we had already discussed that we should all move away from SSH1 and use SSH2... As advised by SecurityPortal, I upgraded my server and clients to SSH2. I for one am feeling safe, now, at least for the few next weelks/months...

  77. Re:Silly coders. by jon_c · · Score: 2
    those are all grammatical errors because I didn't proof read my post, half of which are the result of typos. I think you'll find that the norm here at /.

    As for OpenSSH, I didn't know Theo worked on it, But I did know OpenSSH and OpenBSD we're related. which explains what I said, also you we're the second person to call me on that, it wasn't necessary, but it reinforced your augments that I am an idiot. You're going out on a limb calling me on things like capitalization, and obviously on purpose misspellings.

    recently I've been losing patience with slashdot, and posting garbage. if you look at my history you'll notice many of my posts have been modded down (some way down) after they we're modded up. As you can also see i have the +2 bonus, and am, from time to time a modertor, which means i must have gotten karma at some point.

    I'm sick of the slashdot way of karma whoring, so I'm also getting lazy, impatient and bored.. I've been posting stuff just to see how it gets received, not because I believe in what I say, or even care about what I'm talking about.

    Am at a point where I don't care about my karma, I don't care if other people don't like what I say, I think I'm turning into what slashdot concedes a troll, and if so, so be it.

    -Jon

    Streamripper

    --
    this is my sig.
  78. Silly coders. by jon_c · · Score: 2
    I was just talked to a friend of mine last night, he's a computer security guy. He told me about how the Public/Private keys we're only used for trading a 2 way cypher, like 3DES, or some other cheaper cypher, once they both new the key for that, they would exchange data old sk00l (if you will).

    So I said "huh, so except for a man in the middle attack, or brute force, there's really no attacks", "yup". then i said "So all those exploits on ssh are just coding errors right?", "yup".

    so what is this like 4th r00t expliot from ssh? You would really think that people making an app to improve security would be more careful about this. Or maybe they did, and it's one of those new sprintf one's, if I remember from defcon (boy that sucked) there was a common exploit via sprintf's that wasn't widely known until recently... , something to do with %n I think..

    Shouldn't Theo have caught this? or is he only concerned with OpenSSH?

    -Jon

    Streamripper

    --
    this is my sig.
    1. Re:Silly coders. by friscolr · · Score: 2
      >Shouldn't Theo have caught this? or is he only concerned with OpenSSH?

      why should Theo care about anything other than OpenSSH? Should Linus be looking for windows vulnerabilities?

      -f

    2. Re:Silly coders. by q000921 · · Score: 2
      so what is this like 4th r00t expliot from ssh? You would really think that people making an app to improve security would be more careful about this

      In C, it's very hard to get this right: just about every statement can lead to these kinds of problems: unchecked overflows, unchecked pointer dereferences, etc. People simply cannot handle that complexity and also get the code to work right. There are doubtlessly lots and lots of other problems like this in ssh, as well as most other Linux, UNIX, and Windows programs. (C++ lets you do a little better in principle, but the way most people use it, it's just as bad.)

      If you want to write code that doesn't suffer from these problems without spending many times as much time on trying to find such silly bugs compared to expressing the actual algorithm, use a language that has some built-in error checking. Java, Modula-2, Modula-3, Ada, Oberon, whatever.

      Clunky? Inconvenient? Not as many libraries available in those languages? All true. But that's because they aren't used enough, not because there is anything inherently wrong with them.

  79. C is the problem. by Animats · · Score: 2
    By now, it should be very clear that software written in C is inherently insecure. It's just too easy to create buffer overflow situations.

    Personally, I'd like to see a move to Modula 3 or Ada for trusted modules, but so few people know those languages now. Hard-compiled Java, maybe.

  80. �Lint built into GCC by yerricde · · Score: 2

    Newer versions of GCC can generate diagnostics as they compile and optimize.
    gcc -Wall -W -O -c foo.c will generate lots of helpful diagnostics on stderr.
    Like Tetris? Like drugs? Ever try combining them?

    --
    Will I retire or break 10K?
  81. Re:SSH isn't enough by Tassach · · Score: 2

    WHAT? Your pop mail ISN'T encrypted with pgp/gpg? I have all the people I really care to talk to properly educated in how to use PGP. Even my wife, who found giving up AOL to be highly traumatic. Hell, I've got my filters set up to send anything that ISN'T signed or encrypted directly to the spam box.

    --
    Why is it that the proponents of "one nation under God" are so eager to get rid of "liberty and justice for all"?
  82. Re:SSH isn't enough by Tassach · · Score: 2
    What in the world does that have to do with sending your POP password in plain text to fetch your PGP encrypted email?
    Because if all the (important) mail is encrypted, it really doesn't really matter if someone sniffs your POP password and downloads your messages, unless you are stupid enough to use your POP password for somthing important. You know your POP3 password is going out in the clear, so don't use it for anything else.

    The worst thing that can happen if your messages are encrypted is that the attacker can delete them from your mailbox. This amounts to a pretty lame DoS attack - annoying but not catastrophic. If it's a message that absoloutely MUST go through, you shouldn't be relying on email in the first place. It would be a pretty stupid attack anyway, because the target would know pretty quickly that their comm channel has been compromised.

    An attacker could find out the names and emails of the people you are conversing with, but they could get that information anyway, by sniffing it out of the headers of the incoming SMTP messages (for example). [Traffic analysis, anyone?] If you need to conceal WHO you are talking to, you need to use some sort of dead drop arrangement, like posting an image with a steganographically-imbedded message to usenet or a free webpage.

    Whining about the insecurity of POP3 (and SMTP) isn't a productive use of your time. Virtually every ISP in the world uses POP3/SMTP for email. It's insecure. Deal with it. If security matters, host your own Secure IMAP server and encrypt all your traffic. Your ISP isn't going to be changing it's email infrastructure any time soon. (Talk about a major tech support nightmare!) Sure, it would be nice if email had end-to-end encryption that is completely transparent to the end user, but that's not going to happen around any time soon. You've got to make do with the tools you have to work with.

    --
    Why is it that the proponents of "one nation under God" are so eager to get rid of "liberty and justice for all"?
  83. Re:All this wouldn't have happened... by billcopc · · Score: 2

    Ok.. will someone explain to me how a #2 post can be "Redundant" when the first post was just a first post ?

    Geez moderators, browsing at "+2 newest first" isn't exactly bright.

    --
    -Billco, Fnarg.com
  84. FreeBSD users: Have fun with this one. by Wakko+Warner · · Score: 3
    I'm running 3.4-STABLE (yeah, I know, everyone and their dog keeps telling me to upgrade, but it works), and I basically had to rewrite ssh to get the fucking thing to compile, as it wouldn't compile from source.

    Go to the ports directory, you say. That doesn't compile either. the SSH2 port doesn't compile either! Neither will OpenSSH (it warns about remote root exploits, really helpful), and the latest maintained official ssh1 version is 1.2.27.

    I expect to find a lot of rootable old FreeBSD boxes out there. :(

    - A.P.

    --
    * CmdrTaco is an idiot.

    --
    "Remember when the U.S. had a drug problem, and then we declared a War On Drugs, and now you can't buy drugs anymore?"
  85. Re:Fix is VERY simple by BlueLines · · Score: 3

    Not true. There were two seperate vulnerabilites announced yesterday. The first just involves changing the static word16 to a static word32, but the second attack involved connecting many times to determine a session key. With the session key (and a sniffed session), one could decrypt the entire ssh session. Here's the patch for this on (for ssh-1.2.31 and below):

    --- rsaglue.c 1999/12/10 23:27:25 1.8
    +++ rsaglue.c 2001/02/03 09:42:05
    @@ -264,7 +268,15 @@
    mpz_clear(&aux);

    if (value[0] != 0 || value[1] != 2)
    - fatal("Bad result from rsa_private_decrypt");
    + {
    + static time_t last_kill_time = 0;
    + if (time(NULL) - last_kill_time > 60 && getppid() != 1)
    + {
    + last_kill_time = time(NULL);
    + kill(SIGALRM, getppid());
    + }
    + fatal("Bad result from rsa_private_decrypt");
    + }

    for (i = 2; i len && value[i]; i++)
    ;

    and here's the previously discussed patch:

    --- ssh-1.2.31/deattack.c-old Wed Feb 7 19:45:16 2001
    +++ ssh-1.2.31/deattack.c Wed Feb 7 19:54:11 2001
    @@ -79,7 +79,7 @@
    detect_attack(unsigned char *buf, word32 len, unsigned char *IV)
    {
    static word16 *h = (word16 *) NULL;
    - static word16 n = HASH_MINSIZE / HASH_ENTRYSIZE;
    + static word32 n = HASH_MINSIZE / HASH_ENTRYSIZE;
    register word32 i, j;
    word32 l;
    register unsigned char *c;

    Also, it should be pointed out that openssh-2.3.0 isn't supported on openBSD =2.6, so if you run an older openBSD, you either have to upgrade or switch to ssh.com's ssh....

    --
    --BlueLines "The cost of living hasn't affected it's popularity." -anonymous
  86. You got it backwards... by CrayDrygu · · Score: 3
    I know, don't feed the trolls, but this one's just so obvious...

    1) This affects all common implementations, including the commercial one from SSH.com

    2) This doesn't affect OpenSSH 2.3.0, which is Open Source!

    Suck it.

    --

    --

    --
    "I personal[ly] think Unix is "superior" because on LSD it tastes like Blue." -- jbarnett

  87. OpenSSH rocks, once again by MicroBerto · · Score: 3
    This is from the link on bindview:
    ** Vulnerable: SSH 1.2.x (ssh.com) -- all recent releases F-SECURE SSH 1.3.x -- all recent releases OpenSSH prior to 2.3.0 (unless SSH protocol 1 support is disabled) OSSH 1.5.7 (by Bjoern Groenvall) and other ssh1/OpenSSH derived daemons

    ** Not vulnerable:

    SSH2 (ssh.com): all 2.x releases NOTE: SSH2 installations with SSH1 fallback support are vulnerable OpenSSH 2.3.0 (problem fixed) SSH1 releases prior to 1.2.24 (vulnerable to crc attacks) Cisco SSH (own implementation) LSH (SSH protocol 1 not supported)
    Now, are there any reasons NOT to be using OpenSSH? I've had 2.3.0+ for some time, and it seems to have a great track record!

    Mike Roberto
    - GAIM: MicroBerto
    --
    Berto
  88. Re:Fix is VERY simple by fatphil · · Score: 3

    Indeed you're right.
    I find it odd that commercial companies, like our F-Secure, have been to tight to buy a copy of ProLint and run it, or have willfully ignored the warning messages that it would produce.
    The 10 commandments of C programming still hold true...

    FatPhil


    -- Real Men Don't Use Porn. -- Morality In Media Billboards

    --
    Also FatPhil on SoylentNews, id 863
  89. I can just see it... by Karma+Sink · · Score: 3

    It's a race against the clock... All the Skript Kiddies who read /. settle in against all the sys admins... ready, set, go! Which one's easier to find, the patch, ot the 'Sploit? Hurry, hurry!!!

    --

    When encryption is outlawed, ?o'AZ-,++o+i++##4AoA+-/-C++bI+/.+~
  90. SSH isn't enough by BEHiker57W · · Score: 3
    Sure OpenSSH will protect you when you log into your *nix box. But what happens when you go to get your POP mail from your ISP? You send out your password in plaintext and then your mail is completely vulnerable. Does anyone make a mail server that encrypts with common clients?

    -Brian

  91. Fix is VERY simple by Ruzty · · Score: 4

    You need to change a single variable declaration in one function and re-make. This is difficult to abuse and simple to correct.

    Refer to the article for the patch/change.
    -Rusty

    --
    The Master (Angelo Rossitto) in Mad Max Beyond Thunderdome, "Not shit, energy!"
  92. Re:switch to openSSH by mkettler · · Score: 5
    I had similar troubles trying to compile OpenSSH on my linux box. Then I discovered they have a separate "portable" distribution for non OpenBSD boxes. I picked the portable one, ./cofigure; make; make install, done.

    The "standard" tarball linked under "getting source" on the OpenSSH page is for OpenBSD and does not have a configure script, just a installer.

    If you download OpenSSH for a non OpenBSD box, make sure you pick the portable version. (under operating systems click on your operating system, or go to: http://www.openssh.com/portable.html).

    --
    -Matt
  93. Re:Software vulnerabilities by Multiple+Sanchez · · Score: 5

    Script kiddie this, script kiddie that. I'm sick of it. I pay my taxes, I'm balding, I'm in serious debt to MasterCard... I'm a script adult.

  94. switch to openSSH by Saint+Nobody · · Score: 5

    there were arguments to switch to openssh before, but never one that was this practical in nature.

    the only downside of openssh that i've seen was that it was a pain to figure out which compile-time options i needed. make sure you know exactly how your passwords are stored on your box. once i had that figured out, i liked it better than i ever liked the commercial SSH.

    --
    #define F(x) int main(){printf(#x,10,#x);}
    F(#define F(x) int main(){printf(#x,10,#x);}%cF(%s))
  95. All this wouldn't have happened... by SpanishInquisition · · Score: 5
    ...if we still used telnet.

    --
    Je t'aime Stéphanie
  96. Debian Users... by Xibby · · Score: 5

    Debian 2.2 OpenSSH package has allready been fixed. As usual, they have backported the fix to the version of ssh in stable (v1.2.3).

    Make sure you have the Debian security sources in /etc/apt/sources.list, then apt-get update && apt-get upgrade.

    deb http://security.debian.org/ stable/updates main contrib non-free deb-src http://security.debian.org/ stable/updates main contrib non-free

    /usr/share/doc/ssh/changelog.Debian.gz
    openssh (1:1.2.3-9.2) stable; urgency=high
    * Non-maintainer upload by Security Team
    * Added backported fix for a buffer overflow (thanks to Piotr Roszatycki)
    * Added modified build dependencies from unstable for convenience
    * Added patch that fixes an rsa key exchange problem made public by CORE SDI.

    -- Martin Schulze Thu, 8 Feb 2001 22:15:04 +0100

    --
    I'm going to go back in my box and will think within the limits of my box: MS Sucks Linux Good I read too much Slashdot.