Slashdot Mirror


New Vulnerabilities in Portable OpenSSH

An anonymous reader writes "The OpenSSH team has uncovered multiple exploitable vulnerabilities in the days-old portable release of OpenSSH. That's right folks: time to patch *again*. 3.7.1p2 is now available. Instructions and mirror list here. Please note that this vulnerability only affects *portable* OpenSSH--so if you are running OpenBSD, you're safe. This vulnerability apparently has to do with PAM, so you can use the 'UsePam no' option in your config file. Info on the advisory here and here."

36 of 324 comments (clear)

  1. Non-standard configuration by grub · · Score: 5, Informative


    From the article: At least one of these bugs is remotely exploitable (under a non-standard configuration, with privsep disabled)

    Priviledge Separation saves the day again. I think this is a testament to the forward thinking of the OpenBSD and OpenSSH people: they know that human error introduces potentially exploitable bugs, hence the work that went into PrivSep to minimize the risk.

    "The lengths some people will goto to try and damage Theo's pride" Most moronic submitter comment ever.

    --
    Trolling is a art,
    1. Re:Non-standard configuration by Frymaster · · Score: 4, Insightful
      writers looking for a typewriter-with-memory would be better served by Notepad or the Mac equivalent.

      your belt may fail
      your suspenders may fail

      if you're really serious about keeping your pants up, use both!

      this is the theory of theo-n-the-openbsd-cats. you used priv sep plus all the other security goodies.

      you don't say that doing nightly backups is a "weak" practice because the backups could fail at the same time as your main drive. do you?

    2. Re:Non-standard configuration by grub · · Score: 5, Insightful


      Having a small amount of the sshd code running as root with the 'sshd' user handling the rest helps make it harder for other exploits. I don't think anyone would suggest that PrivSep makes an exploit impossible, but it is another great layer on the security-onion.

      --
      Trolling is a art,
  2. hmm by tedtimmons · · Score: 4, Funny

    Who is pam, and what did she have to do with openssh?

    -ted

    1. Re:hmm by r_j_prahad · · Score: 4, Funny

      Pam was my ex-wife. She was pluggable by too many.

  3. A solution? by gpinzone · · Score: 4, Funny

    This vulnerability apparently has to do with PAM, so you can use the 'UsePam no' option in your config file.

    Wouldn't that prevent anyone from loging-in? I guess that's a solution. Why not disconnect the network cable, too?

    1. Re:A solution? by Asgard · · Score: 3, Insightful

      Disabling PAM would only be a problem if you had only allowed PAM-specific authentication methods.

  4. Time for a new spin on security practices? by Anonymous Coward · · Score: 4, Funny

    Maybe the OSS community needs a Trustworthy Computing initiative =]

    1. Re:Time for a new spin on security practices? by ninewands · · Score: 5, Insightful
      OpenSSH... A Microsoft product, right? Oppss... Forgot, one can not criticize open source on the same standards we hold "M$"

      Well, yes, we should hold them both to the same standard ... so when Microsoft starts announcing it's own self-discovered vulnerabilities and releasing Day-Zero patches to fix them I will be just as critical of OpenSSH security as I am of Windows *cough*security*cough*.
    2. Re:Time for a new spin on security practices? by evought · · Score: 5, Insightful

      Also, notice that this is a problem which *may* be remotely exploitable in a *non-standard configuration*, when certain default security measures have been *disabled by the user*.
      This is not in the same league as "Oops, we left the RPC port open and rootable by default."

      The class of errors being fixed by OpenSSH is very different and the design takes security much more seriously.

  5. PAM is not in by default by Anonymous Coward · · Score: 4, Informative

    Before we all panic, note that PAM is not in the default build.

    It's also not in slackware builds (thanks Patrick).

  6. Re:I don't understand by SwansonMarpalum · · Score: 3, Informative

    Portable OpenSSH refers to OpenSSH running on some system which is not OpenBSD

    --
    "Give away the stone, let the oceans take and transmutate this cold and faded anchor." - Maynard James Keenan
  7. Re:I don't understand by Compenguin · · Score: 4, Informative

    From the portable openssh website:
    "Normal OpenSSH development produces a very small, secure, and easy to maintain version for the OpenBSD project. The OpenSSH Portability Team takes that pure version and adds portability code so that OpenSSH can run on many other operating systems (Unfortunately, in particular since OpenSSH does authentication, it runs into a *lot* of differences between Unix operating systems)."

  8. Re:I don't understand by V.+Mole · · Score: 3, Informative

    OpenSSH is OpenBSD specific. "Portable SSH" is what everybody else uses. In other words, the OpenBSD developers (quite reasonably) don't spend any effort making SSH portable off of OpenBSD, and sometimes use OpenBSD specific functions. Other people then spend the time/effort to make run on Linux, etc. There are features (such as, presumably, PAM support) that are not in the core OpenBSD version.

  9. OpenSSH in RedHat 9 and others by avij · · Score: 5, Informative

    The RH-supplied latest OpenSSH (3.5p1-11) doesn't seem to accept the "UsePam no" directive that was suggested as a workaround, so if you go ahead and add that line to your /etc/ssh/sshd_config and say "service sshd restart", SSH will complain about an invalid configuration option and refuse to start. Just for your information..

    --

    Follow your Euro bills at EBT
    1. Re:OpenSSH in RedHat 9 and others by ZerothAngel · · Score: 3, Informative

      Well, the advisory states that "Older versions of portable OpenSSH are not vulnerable." So it's probably not much of a worry anyway.

    2. Re:OpenSSH in RedHat 9 and others by virtual_mps · · Score: 4, Informative

      More importantly, the problem only affects OpenSSH 3.7p and 3.7.1p, so adding "UsePam no" to a 3.5p installation is unnecessary.

    3. Re:OpenSSH in RedHat 9 and others by Eric+Seppanen · · Score: 3, Informative

      According to Redhat Bugzilla bug 104917, Red Hat has never shipped openssh 3.7, so they're not vulnerable to this. No workaround or fix is needed.

      --
      314-15-9265
  10. Re:A better solution by sqlrob · · Score: 3, Insightful
  11. Re:JEBUS by Kalzus · · Score: 5, Insightful

    Arguably, this announcement *is* the result of an increase in code vetting on the part of the portable OpenSSH team. Just a thought.

    --
    "The Devil does not know a lot because He's the Devil, He knows a lot because he's old." -- unknown
  12. RedHat boxes are safe by menscher · · Score: 4, Informative

    Just to alleviate some of the panic, RedHat boxes are safe.

    1. Re:RedHat boxes are safe by MSG · · Score: 4, Insightful

      Please don't post links to bugzilla. Bugzilla is a database driven application, an linking to it directly from slashdot will certainly swamp that system. The information in the bugzill entry is:

      Opened by mjc@redhat.com (Mark J Cox, Security Response Team Lead) on 2003-09-23 11:16

      http://www.openssh.com/txt/sshpam.adv came out on Sep23 with two new
      vulnerabilities that affect OpenSSH.

      Both these issues only affect OpenSSH 3.7 and 3.7.1. Red Hat Linux and Red Hat
      Enterprise Linux are not vulnerable to these issues as we ship with earlier
      versions (with the addition of backported security fixes for other issues).

      Keeping this bug open for a few days to enable users searching bugzilla to find
      out that they are not vulnerable.

  13. When will it end? by Dr.+Bent · · Score: 3, Funny

    This vulnerability apparently has to do with PAM

    When will people learn that non-stick cooking spray causes more harm than good? Unneeded fat, calories and remote root exploits are just some of the problems caused by these unsavory products. For god's sake, people...there are better ways to dissipate heat and prevent sticking and burning. For one, turn that CPU clock speed down! Just because you can fry an egg on your motherboard, doesn't mean you should! That's what the CD-ROM drive is for!

  14. The Need for Open Source Watchdogs by TheCRE · · Score: 3, Interesting

    In light of the recent CERT/CC advisories regarding security vulnerabilities in the Sendmail and OpenSSH programs (even before the problems with new release of portable Open SSH) the Center for Regulatory Effectiveness' WatchDog Watch discussed the need for open source watchdogs. Please see, www.thecre.com/wdw/20030922_open_source.html Winston Security Director, WatchDog Watch

  15. New Motto by Greyfox · · Score: 4, Funny

    15^H^H10 minutes without a remote root exploit!

    --

    I'm trying to teach myself to set people on fire with my mind... Is it hot in here?

  16. Yippee! by mrpuffypants · · Score: 4, Funny

    oooh! Patching every other day is fun!

    This is just like being a MCSE! Now I can hang out with the NT guys and chat about patching!

  17. Re:Just like MS then. by phliar · · Score: 4, Insightful

    With MS, they're gaping holes that we hear about because the worm actually did do the damage. The bugfixes for OpenSSH are all questions about bugs being found by reading the code, and nonstandard installations -- not known compromises. The speed with which security issues are handled is also much better than anything those yahoos ever do.

    --
    Unlimited growth == Cancer.
  18. fact of life by NumLk · · Score: 4, Insightful

    I'm not trying to be a tool here, but seriously, does anyone ever expect any piece of software to be 100% foolproof? Software is complex, and in its complexity lies opportunity for problems to arise. Sometimes they are simple coding mistakes, sometimes they are problems that arise when the software isn't used as its developers envisioned.

    As users of software though, it is irresponsible to assume that just because it is commercial, open source, MS, non-MS, or whoever is the messiah of the day's product that it will never have unexpected problems. Admittedly, some companies software appears to be worse than others, but that is the gamble we take when we build complex systems.

    --
    Children in the backseats don't cause accidents. Accidents in the back seats cause children.
  19. Re:JEBUS by Corgha · · Score: 3, Insightful

    On the contrary, arguably, this announcement is the result of 3.7p1 and 3.7.1p1 being rushed out the door with new, unvetted PAM code.

    That's why it doesn't affect earlier versions.

  20. Re:Is the default config file safe? by Ratcrow · · Score: 4, Informative

    No!

    From the top of sshd_config:

    "The strategy used for options in the default sshd_config shipped with OpenSSH is to specify options with their default value where possible, but leave them commented. Uncommented options change a default value."

    In other words, simply uncommenting the line changes nothing -- the default is shown commented. For the SRPMS of OpenSSH-3.7p1, UsePAM is set to Yes.

  21. Not so fast! by MarcQuadra · · Score: 3, Interesting

    Not so fast!

    The LAST vulnerabilities were for 3.6 and 3.7 as well, but 3.4 COULD be vulnerable as it's now 'off the beaten path' and these vulnerabilities seem to have been discovered in a code audit triggered by the recent attention given to OpenSSH. Apple had to patch their 3.4 version, and I'd expect another minor software update package from Apple in the next few days to address this.

    Anybody out there know if it's easy to build current versions (3.7.1p2, etc.) of OpenSSH on OS X with the developer tools installed, or is there some very compelling reason Apple is sticking to 3.4 and just adding to it?

    --
    "Sometimes, I think Trent just needs a cup of hot chocolate and a blankie." -Tori Amos on Nine Inch Nails
  22. More fixes than PAM by Soft · · Score: 3, Informative
    According to the Changelog:
    - markus@cvs.openbsd.org 2003/09/18 08:49:45
    [deattack.c misc.c session.c ssh-agent.c]
    more buffer allocation fixes; from Solar Designer; CAN-2003-0682;
    it would seem that in addition to the PAM patch, there are more buffer management-related fixes which didn't find their way into 3.7.1p1 but prompted Debian to make a third update to ssh. One may want to update even on OpenBSD or with PAM disabled.
  23. "Patch *again*" == no big deal by psyconaut · · Score: 5, Insightful

    The poster seems to insinuate that patching again is a chore...security is, by very nature, a moving target. I'm *glad* they find vulnerabilities and post regular patches...proves to me, at least, that somebody is on-the-ball.

    Heck, just be thankful they don't belong to the Microsoft school of security and fixes ;-)

    -psy

  24. Re:JEBUS by Ed+Avis · · Score: 3, Informative

    One of the principles behind OpenBSD (and therefore OpenSSH) is full disclosure of security vulnerability. They don't want to lie about how secure the software is or try to conceal things from you. Therefore the vulnerability reports (and fixes) are published as soon as possible. In practice, I think they do wait to have a patched version before announcing the bug.

    --
    -- Ed Avis ed@membled.com
  25. Re:Just like MS then. by Shdwdrgn · · Score: 3, Insightful

    It's different because they advised everyone immediately of the problems, and released a patch as soon as they had one. MS has in the past spent considerable time blaming the customers for problems (for instance, IE automatically downloading and executing exe files from websites, without the user's consent).

    It's different because this is only one of a handful of programs which have required security updates in the past X weeks. How many security updates has MS released in the same amount of time?

    All of the MS advocates are spending a lot of time complaining about how everyone here bashes MS. I've been using Windows since 3.1 was released. Now I have a choice. Linux isn't for everyone. It requires a lot of time to learn it. Windows also required a lot of time to learn, but most people don't remember that. Back in the days when GUI's were new, we expected things to be difficult, and we lived with that until it was fixed. Now linux is coming in and trying to do everything the right way, but apparently many people are unwilling to give linux the same chance they originally gave to Windows.

    Windows is like a first-draft program. It's a kludge. It works, and with enough effort you can add a lot of eye-candy to make it look like a polished system, but underneath, it's still a kludge. They started with a vague idea of what they were going to write, and created it as best they could.

    Linux is more like a second-draft program. It's built from scratch completely based off of all the concepts that were discovered in writing the original version. The goal is in site, the mistakes can mostly be avoided, and they have a clear idea of what they're doing from start to finish. It's still not going to be perfect, but it's built on a solid understanding of what needs to be done.

    Up next..? Who knows, but I imagine that comparing the next generation software to what we have now will be like comparing a finely-tuned Indy car to a horseless carriage.

  26. Hmm... by Dr+Rick · · Score: 3, Interesting

    Doesn't it seem strange that the finding of multiple bugs in the same piece of open source software in a short period of time is stated as a strength of open source while the same thing in Microsoft software is stated as a weakness... Yes, in the open source case they were found by code inspection and in the case of Microsoft they were found by exploit, but a patch a day is still a patch a day. It's not always a good idea to rush patches out as soon as a potential hole is found...

    --

    Dr. Rick
    - "It's such a fine line between clever and stupid" (Nigel Tufnel)
    - Zort! (Pinky)