Slashdot Mirror


Slashback: OpenSSH, Bio, Timeliness

Welcome to Slashback, with updates (below) on a handful of recent Slashdot posts. Most importantly, a message regarding OpenSSH 3.3 could save your system from attack -- read it; you might need to pass the word on to your vendor, too.

Things that make you want to bring back thumbscrews. A few days ago, we mentioned the release of OpenSSH 3.3; compared to previous versions, the biggest change in 3.3 is increased emphasis on privilege separation. Today, Theo de Raadt sent word of an OpenSSH vulnerability being worked on by ISS and the OpenBSD team, details of which are expected to be published early next week.

In an announcement sent to bugtraq, he wrote: "However, I can say that when OpenSSH's sshd(8) is running with priv separation, the bug cannot be exploited.

OpenSSH 3.3p was released a few days ago, with various improvements but in particular, it significantly improves the Linux and Solaris support for priv sep. However, it is not yet perfect. Compression is disabled on some systems, and the many varieties of PAM are causing major headaches.

However, everyone should update to OpenSSH 3.3 immediately, and enable priv separation in their ssh daemons, by setting this in your /etc/ssh/sshd_config file:

UsePrivilegeSeparation yes

Depending on what your system is, privsep may break some ssh functionality. However, with privsep turned on, you are immune from at least one remote hole. Understand?

3.3 does not contain a fix for this upcoming bug.

If priv separation does not work on your operating system, you need to work with your vendor so that we get patches to make it work on your system. Our developers are swamped enough without trying to support the myriad of PAM and other issues which exist in various systems. You must call on your vendors to help us."

Theo emphasizes the role of vendor cooperation in making privilege separation work on the full range of systems on which OpenSSH runs. "If the vendors don't start pulling their part," he says in an email, "by the time the bug is posted their customers will be left unprotected. These vendors who do not do the right job and instead just 'sell sell sell' are starting to become annoying. On a lot of systems today, privsep does NOT work well at all. The vendors have not been helping!"

A patched version of OpenSSH could be released as soon as Friday, incorporating vendor patches received by this Thursday.

Read More on Stallman. Vamphyri writes: "Sam Williams, author of 'Free as in Freedom', biography of GNU/Linux founder Richard M. Stallman has gone live with the online free version 1.0 of FAIFzilla.org. The paper pulp version publishers O'Reilly & Associates agreed under the terms of the GNU Free Document License and have their own version up at their site. Williams' site allows for content and corrections to be submitted by readers. He hopes for contributions to be included in later editions of the O'Reilly bio. Also: CGI coders wanted for site enhancement, paragraph and line numbering, searches etc. Maybe a CVS Tree is in order? :)"

"Urpmi Norton" doesn't work for some reason. MrResistor writes "Upon logging in to my computer at work this morning, I was greeted by a virus update notice from McAfee SecurityCenter. The update for today includes W97M/Melissa@MM, and of course McAfees newly manuf^H^H^H^H^Hdiscovered threat, the W32/Perrun JPEG virus (which was also highlighted in yesterdays update). All of the updates in the last week or so have been rated Low or No Threat (except for Perrun, which is "Low On Watch". It seems that in addition to manufacturing new threats, they're also rehashing old threats to keep subscription renewals up. Perhaps it's time for Slashdot to add an Ethics topic?"

108 of 373 comments (clear)

  1. Ethics Topic? by einstein · · Score: 5, Funny

    Ethics topic? I thought we had "The Almighty Buck" topic to take care of those pesky ethics...
    ---

    1. Re:Ethics Topic? by sammy.lost-angel.com · · Score: 2, Insightful

      On the contrary, a lot of people go to school just to study ethics. With computers becoming such a major part of everyones lives, isn't it important to discuss computer ethics in an open forum?

    2. Re:Ethics Topic? by great+throwdini · · Score: 2, Insightful

      Ex-Parrot: I don't think I need or want Slashdot to tell me what is or isn't ethical.

      Lemmy Caution: Then they don't need or want you telling them that it isn't ethical for them to tell you what is or isn't ethical.

      Technically, Ex-Parrot only stated what he didn't need or want, not that he believed it unethical for /. to inform him (hypotheticaly) of ethics. Don't confuse desire for ethics.

    3. Re:Ethics Topic? by sharkey · · Score: 2

      "The Almighty Buck" topic

      Or, as Homer would say, "The All Ighty Ollar!"

      --

      --
      "Outlook not so good." That magic 8-ball knows everything! I'll ask about Exchange Server next.
  2. OpenBSD remote hole? by armie · · Score: 5, Interesting

    Since sshd is enabled by default in OpenBSD 3.1 (OpenSSH 3.1), and privilege separation isn't enabled by default, doesn't that mean OpenBSD 3.1 has a remote root hole?

    1. Re:OpenBSD remote hole? by T-Ranger · · Score: 2, Interesting
      I have no idea how OpenSSH is configured out of the box on OpenBSD, or where the (potential) hole is for that matter, but I doubt it.

      Since its recomended as the right way of doing it, RootLogins are probly set to off. The hole might only allow access to the user account your trying to login as, and with RootLogins to off, it probabaly trumps any user hole.

    2. Re:OpenBSD remote hole? by Clue4All · · Score: 3, Informative

      Exploiting a daemon running as root is going to yield root privileges, it doesn't matter if root is allowed to log in through that daemon or not. You're talking about two different concepts here.

      --

      Is your browser retarded?
    3. Re:OpenBSD remote hole? by ChadN · · Score: 3, Informative

      Yeah, but it depends if the nature of the exploit is one that yields execution privileges (such as corrupting the user stack and running your own code before sshd drops down from root), or is a protocol weakness which then allows you to (for example) bypass authentication and log in, which would give you user privileges (assuming root logins are disabled).

      --
      "It's overkill, of course. But you can never have too much overkill." - Anonymous Slashdot Coward
    4. Re:OpenBSD remote hole? by evilviper · · Score: 5, Insightful

      I don't have an OpenBSD 3.1 box handy to check to see if priv seperation is enabled by default. However, I know it wasn't on 3.0.

      But, we need not jump to conclusions. Theo was saying quite a bit about vendor support, which means he was strugling with the PORTABLE version, he made no mention of the native OpenBSD version, and we have yet to even hear the implications of this bug (hell, maybe it's not exploitable on OpenBSD, just OTHER platoforms running OpenSSH).

      Again, don't jump to conclusions.

      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
    5. Re:OpenBSD remote hole? by cperciva · · Score: 3, Interesting

      Based on the fact that privilege separation fixes this, it's reasonable to suppose that the flaw is in the authentication code, and allows users to execute arbitrary code.

    6. Re:OpenBSD remote hole? by John+Sullivan · · Score: 2, Insightful
      doesn't that mean OpenBSD 3.1 has a remote root hole?

      In common with every single other network OS out there, it has several remote root holes. We just haven't figured out what they are yet.

      --
      This is my World Wide Web of Whatever
    7. Re:OpenBSD remote hole? by Jeppe+Salvesen · · Score: 2

      If you run chroot, a root exploit will have limited impact. In this case, I bet running sshd chroot is not very useful. It sure helps with other applications, though.

      --

      Stop the brainwash

    8. Re:OpenBSD remote hole? by pthisis · · Score: 2

      If you run chroot, a root exploit will have limited impact

      That's not true. root can easily break out of a chroot jail (this is intentional). It's not meant to contain a malicious root user (there are too many other ways for root to affect the outside world anyway, iopl() comes to mind).

      e.g. compile the follwing as "breakout", chroot yourself to somewhere (e.g. /tmp) where you have a statically linked copy of "breakout", and run it. You'll be back to the real root (you may need more periods in the chdir call there, but a loop can fix that pretty well).


      #include
      int main(void)
      {
      mkdir("foo", 0700);
      chroot("foo");
      chdir("../../..");
      chroot(".");
      system("sh");
      }



      Sumner

      --
      rage, rage against the dying of the light
  3. OpenSSH Support by mastersage · · Score: 2, Redundant

    With the recient Interview with the CEO of UnitedLinux and the following discussion of giving back to the community you can see how important this is. How many systems use SSH? Every single one of mine. This is where a UL can really shine, but helping OpenSSH in the shape of work towards a patch. This helps provide security to the distos and gives back the community for people who run smiliar setups.

    This really shouldn't stop with SSH though. Distros in general should be helping out large development projects like this.

    --
    ~Travis
  4. For FreeBSD users: by Anonymous Coward · · Score: 3, Informative
    To fix your freebsd boxen:
    1. cvsup your ports. Need help? Read the handbook at www.freebsd.org. READ IT, DAMMIT
    2. Install the portable openssh port at /usr/ports/security/openssh-portable. Read the pkg-descr about why it's called portable. READ, DAMMIT. It should link against openssl 0.9.6d, so that's why you needed to cvsup your ports.
    3. Enable privsep in the config file:
      UsePrivilegeSeparation yes
      Read the rest of the config. READ, DAMMIT.
    4. Since the port requires privsep, add a user and group for sshd. Just: man adduser(8). Read this man page. READ, DAMMIT.
    5. Since privsep requires a chroot, make a directory in /var/empty for it to chroot to.


    For linux users, you guys are outta luck. Contact your vendor for an rpm. Or, install the source to openssh by hand, and solve all the damn pam errors. We can cover you guys for a few days, so firewall behind a buddy with freebsd until you get this all rpm-happy. :)
    Good luck.
    1. Re:For FreeBSD users: by John+Hasler · · Score: 5, Interesting

      "For linux users, you guys are outta luck."

      Nonsense. The Debian package is already out.

      --
      Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
    2. Re:For FreeBSD users: by ewhac · · Score: 4, Informative

      Thanks. I'll update my firewall tonight. And I'll be READING, DAMMIT!

      Oh, and can I throw in a cheap plug for the FreeBSD Cheat Sheets while I'm here? It has a much more easy-to-follow tutorial on how to cvsup your ports, though it doesn't go into the theory behind it.

      Schwab

    3. Re:For FreeBSD users: by Carlos+Laviola · · Score: 2

      In what sense it is not complete, pray tell?

    4. Re:For FreeBSD users: by Glytch · · Score: 4, Funny

      Or, install the source to openssh by hand, and solve all the damn pam errors.

      At this point I would like to thank Patrick Volkerding yet again, this time for being dead-set against the wretched abortion known as PAM.

    5. Re:For FreeBSD users: by earlytime · · Score: 2, Informative

      Also, the openssh-portable folks release source RPMs with every tarball release (2 minutes later actually). At some point, probably openssh 2.1 or so, I'd been unable to get remote users to authenticate properly with the tarball version of openssh on linux and solaris. So I started using the RPMs. If you get the SRPM from a local mirror (see http://www.openssh.org/portable.html), just run the following:

      rpm ---rebuild .src.rpm

      or to get slick:
      rpm --rebuild --target `uname -m`-`uname -p`-`uname -s` .src.rpm
      ( in my case:
      rpm --rebuild --target i686-unknown-linux openssh-3.3p1-1.src.rpm

      Then install the RPMs you just built:

      rpm -Uvh /usr/src/redhat/RPMS/`uname -m`/.`uname -m`.rpm

      Just two simple commands, not bad for a day's work.
      -earl

      --

    6. Re:For FreeBSD users: by John+Hasler · · Score: 2

      "In what sense it is not complete, pray tell?"

      It is the same thing as is available to *BSD users: an upgrade to 3.3.

      --
      Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
    7. Re:For FreeBSD users: by sydneyfong · · Score: 2

      Only debian woody has the new packages. Potato doesn't have the packages (yet).

      --
      Don't quote me on this.
    8. Re:For FreeBSD users: by Eil · · Score: 2


      I must note that while running Slackware, I built and installed portable OpenSSH 3.3 the other day prior to knowing anything about this bug or priviledge sep.

      Built it and everything was normal. Except when I tried to run it, I found that sshd was demanding correct nobody.nogroup identiies (mine were incorrect :P) and a /var/empty directory.

      Took care of those minor issues and everything's been running fine since. So ha to you, BSD users. :)

  5. Re:more like (-1, Flamebait) by psychosis · · Score: 3, Insightful
    Urrrgh... how many times does this get discussed?!?! So what? OpenBSD is still far more secure than most Linux distros or Windows. The only O/S I've ever come across with better security than OpenBSD is OS/400 by IBM.

    I believe that the original poster was making a remark on the heralded "270,000 installations without a default-enabled root-level vulnerability" statement that OpenBSD uses. I don't use BSD, so I don't know the exact quote, but if the affected version of OpenSSH is enabled by default, this would jeapordize that tagline.
  6. Re:OpenSSH by John+Hasler · · Score: 2

    "How many others don't find the time for all these updates?"

    What's so time consuming about 'apt-get update; apt-get upgrade'? Oh, wait...

    --
    Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
  7. Theo D. by The+Visiting+Priest · · Score: 5, Funny

    After reading that post about OpenSSH, I
    really do not understand how anyone could find
    this guy difficult to work with.

    1. Re:Theo D. by elmegil · · Score: 2, Insightful
      'Cos God Knows those Evil Vendors have nothing in mind but SELL SELL SELL. No way that they have quality control/assurance processes that, while bureaucratic, make a good faith attempt to keep from introducing NEW problems with fast fixes.

      I guess Theo is just offended that he's not offered more trust for quality software than the vendors' own employees.

      --
      7 November 2006: The day Americans realized corruption and incompetence weren't addressing 11 September 2001
  8. To all the OpenBSD lost its claim posters.. by antis0c · · Score: 5, Insightful

    This could be flamebait, but it should be said.

    Consider this, would you rather use an Operating System, where the community just shrugs off the frequently once a week remote holes with simply, "go grab the updates" ..

    .. or an Operating System where the community is surprised and in disbelief that a remote hole was found after 5 years which causes entire community to start bitch fights over the right to claim its the most secure Operating System still, despite the fact the remote hole was found by the Operating System developers, and fixed before it has actually been exploited.

    You don't have to be Stephen Wolfram to figure this one out.

    --

    ..There's a-dooin's a-transpirin'
    1. Re:To all the OpenBSD lost its claim posters.. by ByTor-2112 · · Score: 3, Insightful

      Fixed before it has actually been exploited? I think not. The real danger of NOT doing security audits is the fact that there are real hackers out there who might know about this hole and are more interested in hacking than getting their names on the big screen as the "l33t d00d" who found the hole.

      Just like the crypto people assume the NSA is 10+ years ahead of them in codebreaking, you should assume that EVERY remote hole has been known to somone within the hacking community prior to its "announcement".

    2. Re:To all the OpenBSD lost its claim posters.. by ByTor-2112 · · Score: 3, Insightful

      Well until you take a personal tour of Ft. Meade, then I think it would be prudent to bring the assumption back to life.

  9. Re:ssh vulnerability disclosure? by John+Hasler · · Score: 3, Insightful

    "We won't tell you what the problem is, unless you're a big distributor."

    Do you have some evidence to support this claim that they have revealed the exploit to big distributors? As far as I can tell they have told no one.

    --
    Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
  10. Re:Fear Not... by ffatTony · · Score: 2

    The version I have been using claims it is the default (or its man page does). Perhaps you are right, I'm not familiar with previous versions.

  11. Re:Fear Not... by ffatTony · · Score: 2

    Are you claiming that the man page is lying? :)

  12. Focus by alienmole · · Score: 2, Insightful
    The issue is focus. In RMS and Theo's case at least, they are so tenaciously focused on their pet issues that every other aspect of reality is secondary to that. This comes through clearly in everything they say - the sense of urgency, the frustration that not everyone shares their priorities. It's actually standard nerd behavior, but magnified to uber-nerd proportions.

    The upside is that they do tend to produce useful things, or have a salutary effect on those around them. So unless you disagree with what they do, you should simply dismiss their personal peccadilloes as the price you pay for having someone devote the majority of their brainpower to a single issue, and do useful work on your (and everyone else's) behalf.

    Time to take a lesson from the PHB playbook - the natural response to an email like Theo's goes something like "Yeah, yeah, Theo, nice work. Keep it up. Oh, and have it done by the end of the week, willya?"

  13. Linux BIAS by jolan · · Score: 4, Interesting

    funny how this didn't make it into the main article:

    We've been trying to warn vendors about 3.3 and the need for privsep,
    but they really have not heeded our call for assistance. They have
    basically ignored us. Some, like Alan Cox, even went further stating
    that privsep was not being worked on because "Nobody provided any info
    which proves the problem, and many people dont trust you theo" and
    suggested I "might be feeding everyone a trojan" (I think I'll publish
    that letter -- it is just so funny). HP's representative was
    downright rude, but that is OK because Compaq is retiring him. Except
    for Solar Designer, I think none of them has helped the OpenSSH
    portable developers make privsep work better on their systems.
    Apparently Solar Designer is the only person who understands the need
    for this stuff.

  14. Re:Norton Blows by John+Hasler · · Score: 2

    "Looks like some folks are joining the ranks of Windows server users ;)"

    Why? So that they can wait two months for a fix instead of four hours?

    --
    Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
  15. Theo de Raadt's message in full by joe_bruin · · Score: 5, Informative

    From: Theo de Raadt [deraadt@cvs.openbsd.org]
    Subject: Upcoming OpenSSH vulnerability

    There is an upcoming OpenSSH vulnerability that we're working on with ISS. Details will be published early next week.

    However, I can say that when OpenSSH's sshd(8) is running with priv seperation, the bug cannot be exploited.

    OpenSSH 3.3p was released a few days ago, with various improvements but in particular, it significantly improves the Linux and Solaris support for priv sep. However, it is not yet perfect. Compression is disabled on some systems, and the many varieties of PAM are causing major headaches.

    However, everyone should update to OpenSSH 3.3 immediately, and enable priv seperation in their ssh daemons, by setting this in your /etc/ssh/sshd_config file:

    UsePrivilegeSeparation yes

    Depending on what your system is, privsep may break some ssh functionality. However, with privsep turned on, you are immune from at least one remote hole. Understand?

    3.3 does not contain a fix for this upcoming bug.

    If priv seperation does not work on your operating system, you need to work with your vendor so that we get patches to make it work on your system. Our developers are swamped enough without trying to support the myriad of PAM and other issues which exist in various systems. You must call on your vendors to help us.

    Basically, OpenSSH sshd(8) is something like 27000 lines of code. A lot of that runs as root. But when UsePrivilegeSeparation is enabled, the daemon splits into two parts. A part containing about 2500 lines of code remains as root, and the rest of the code is shoved into a chroot-jail without any privs. This makes the daemon less vulnerable to attack.

    We've been trying to warn vendors about 3.3 and the need for privsep, but they really have not heeded our call for assistance. They have basically ignored us. Some, like Alan Cox, even went further stating that privsep was not being worked on because "Nobody provided any info which proves the problem, and many people dont trust you theo" and suggested I "might be feeding everyone a trojan" (I think I'll publish that letter -- it is just so funny). HP's representative was downright rude, but that is OK because Compaq is retiring him. Except for Solar Designer, I think none of them has helped the OpenSSH portable developers make privsep work better on their systems. Apparently Solar Designer is the only person who understands the need for this stuff.

    So, if vendors would JUMP and get it working better, and send us patches IMMEDIATELY, we can perhaps make a 3.3.1p release on Friday which supports these systems better. So send patches by Thursday night please. Then on Tuesday or Wednesday the complete bug report with patches (and exploits soon after I am sure) will hit BUGTRAQ.

    Let me repeat: even if the bug exists in a privsep'd sshd, it is not exploitable. Clearly we cannot yet publish what the bug is, or provide anyone with the real patch, but we can try to get maximum deployement of privsep, and therefore make it hurt less when the problem is published.

    So please push your vendor to get us maximally working privsep patches as soon as possible!

    We've given most vendors since Friday last week until Thursday to get privsep working well for you so that when the announcement comes out next week their customers are immunized. That is nearly a full week (but they have already wasted a weekend and a Monday). Really I think this is the best we can hope to do (this thing will eventually leak, at which point the details will be published).

    Customers can judge their vendors by how they respond to this issue.

    OpenBSD and NetBSD users should also update to OpenSSH 3.3 right away. On OpenBSD privsep works flawlessly, and I have reports that is also true on NetBSD. All other systems appear to have minor or major weaknesses when this code is running.

    (securityfocus postmaster; please post this through immediately, since i have bcc'd over 30 other places..)

  16. Re:What's the deal with the Ethics? by edrugtrader · · Score: 2

    IT WORKS BOTH WAYS.

    i'm assuming you read the article by McAfee a few days ago describing their in house team developing JPEG viruses didn't you?

    find proof of no proof before posting about lack of it.

    --
    MARIJUANA, SHROOMS, X: ONLINE?! - E
  17. The Alternative to OpenSSH or SSH (commerical) by Tadghe · · Score: 5, Insightful

    LSH (http://www.net.lut.ac.uk/psst/)

    I love SSH. It's been installed on my boxen (regardless of OS) since it was stable enough to kill off telnet.
    My problem with both the announcement as well as the patch is thus.

    1. Theo nor any of the posters I've seen are willing to tell us what the hell is broken. Only that we must upgrade. That just don't cut it, I won't blindly patch without an idea of what is broken. The Debian security release summed it up best.

    "Theo de Raadt announced that the OpenBSD team is working with ISS
    on a remote exploit for OpenSSH (a free implementation of the
    Secure SHell protocol). They are refusing to provide any details on
    the vulnerability but instead are advising everyone to upgrade to
    the latest release, version 3.3.

    This version was released 3 days ago and introduced a new feature
    to reduce the effect of exploits in the network handling code
    called privilege separation. Unfortunately this release has a few
    known problems: compression does not work on all operating systems
    since the code relies on specific mmap features, and the PAM
    support has not been completed. There may be other problems as
    well."

    2. Sudden, lack of belief in Full disclosure. Am I the only guy who remembers the days before full disclosure? The OpenBSD Security policy ( http://www.openbsd.org/security.html ) is pretty point blank (to quote)
    "we believe in full disclosure of security problems. In the operating system arena, we were probably the first to embrace the concept. Many vendors, even of free software, still try to hide issues from their users"
    I think posting a "fix" (ok, workaround) and not telling anyone *why* they should use it is "try[ing] to hide issues from their users"

    I'll be firing up R.A.T.S and checking out LSH ( http://www.net.lut.ac.uk/psst/ ) (GNU'd SSH2ish) for my needs from here own out.

    and yes, this needs a rant tag and yes I know the OSSH and OBSD teams are seperate, but they share enough philosophy and team members that I gather they have the same opinion on security.

    --
    Bugs Bunny was right.
    1. Re:The Alternative to OpenSSH or SSH (commerical) by Virtex · · Score: 5, Interesting

      1. Theo nor any of the posters I've seen are willing to tell us what the hell is broken. Only that we must upgrade. That just don't cut it, I won't blindly patch without an idea of what is broken. The Debian security release summed it up best.

      In the world of full disclosure, it's generally considered polite to initially only notify the vendor of a product and allow them a grace period to fix the security hole. This way, when the security hole is publicized, users will (hopefully) have a patch or upgrade to secure their systems. The question here isn't whether Theo is correct in holding back the details of the exploit (which I believe he is correct in doing), but whether he should have said anything about the problem at all before releasing the full details. I think his goal was to pressure the OS vendors into helping him fix the problems in his code.

      I won't say whether his choice is right or wrong, but I won't chastise him for protecting my security, either.

      --
      For every post, there is an equal and opposite re-post.
    2. Re:The Alternative to OpenSSH or SSH (commerical) by Tadghe · · Score: 3, Insightful

      My point there being that we (in this case Debian users) are pretty much being forced for either jump ship or *trust* a fix that neither we the users, nor the Debian team can verify does what is intended. I'm pretty sure that Theo knows what he's doing, but, I'll not upgrade at "gunpoint" because a vendor won't give me any idea as to what's up. I'm not asking for exploit code, but a decent "this is what's wrong and here's what we are doing to fix it" would go a long way...

      --
      Bugs Bunny was right.
    3. Re:The Alternative to OpenSSH or SSH (commerical) by Tadghe · · Score: 2

      Instead we're asked to apply a untested upgrade? sorry, I don't buy it.

      --
      Bugs Bunny was right.
    4. Re:The Alternative to OpenSSH or SSH (commerical) by Dr.+Awktagon · · Score: 3, Insightful

      In the world of full disclosure, it's generally considered polite to initially only notify the vendor of a product and allow them a grace period to fix the security hole. This way, when the security hole is publicized, users will (hopefully) have a patch or upgrade to secure their systems.

      Well, by releasing the info, the hole HAS been publicized. If you're a black-hat poking around in Apache or Cisco routers or whatever looking for rootable holes, wouldn't you instantly drop what you're doing and start looking for this hole? And if it's possible some already have an exploit, what's Theo waiting for? Give us more details.

      I think full disclosure means "full disclosure", not just partial disclosure, not just, hey, there's a show-stopper bug in the code, but I promise if you upgrade it won't affect you. No workarounds, no details, not even if an exploit has been found in the wild or not.

      Maybe if we knew the details of the bug we could fix it WITHOUT upgrading to the separated privs code. Maybe he wants us to upgrade to this new code because he thinks it's really cool and it strokes his ego, not because it's the only way to solve the hole.

      <theory type="conspiracy">Hell, maybe the OpenSSH server has been hacked by Microsoft and a backdoor added to the new code; this message is a fake to get us to upgrade; and all non-Windows users are doomed.... :-o </theory>

    5. Re:The Alternative to OpenSSH or SSH (commerical) by dmiller · · Score: 2

      So read it and test it - you have the code. What more do you want?

    6. Re:The Alternative to OpenSSH or SSH (commerical) by fferreres · · Score: 2

      Maybe it's just a teaser to see if anyone finds a hole without having to give a prize :-) The will search for exploits for free, but this "mistery" call for much more attention (and rooting a BSD is actually more like a contest)

      (disclaimer: this post is supposed to be mosly humorous...)

      --
      unfinished: (adj.)
    7. Re:The Alternative to OpenSSH or SSH (commerical) by Eil · · Score: 5, Insightful


      You misinterpreted the entirety what he was trying to say. If I were in a crankier mood I'd ask you if you even read the post.

      In a nutshell, he said this:

      1. There is an exploitable bug in all current versions of OpenSSH.
      2. We're working on a patch, but it's not done yet.
      3. When it is, we'll tell you all exactly what was wrong and how we fixed it.
      4. In the mean time, you can download the latest 3.3 patch and enable privilege separation to completely protect yourself from the vulnerability.

      That just don't cut it, I won't blindly patch without an idea of what is broken.

      There isn't a patch yet. Theo clearly stated that a patch and an explanation will be forthcoming at the same time. The whole reason he announced it early is to get admins to fix thier systems before the nefarious hackers could develop an exploit for it. (As another poster noted, it's incredibly easy for a nefarious hacker to develop an exploit if you have the source code to versions of the program with the bug and a version without. That is perhaps one of the few downfalls to open-source.)

      You'll save yourself a lot of typing and needless jumping (to conclusions) if you read a bit more carefully next time.

    8. Re:The Alternative to OpenSSH or SSH (commerical) by gotan · · Score: 2

      No, there's a third way, and that's the way Theo proposes: make sshd's privsep work with your system (maybe it already works), then the bug is still there but harmless (since it is in the part of code that doesn't have root-privileges when running with privsep enabled), and will only get the attacker in a sandbox with no privileges. After doing that, everyone (including the Debian folks) has all the time in the world to apply the patch.

      Note that privsep is simply a mechanism to reduce the parts of code that run under root-privileges to about 10% of the total lines sshd(8) consists of. That means, any attack which affects the other 90% will not give the attacker root access on a machine running sshd with privsep. This is a great mechanism to reduce the risk of being exploited. So this means, that the "critical" part of code (where a bug might give root access) is greatly reduced, which also makes it easier for developpers, since they can give the critical part more attention, it's obviously easier to keep 2,500 lines of code (mostly) bugfree, than 27,000, and it makes sense to review those 2,500 lines with greater scrunity.

      The problem with enabling privsep for sshd(8) is, that this only works if some devices/executables/directories have the correct permissions set (my assumption), so it depends on the configuration of other parts of the system that isn't provided/controled by the OpenSSH developpers. This is clearly a packaging issue, and lies in the responsibility of the vendors/distributors.

      So the OpenSSH developpers need the cooperation of the vendors to pull the teeth of at least one known bug (and maybe some yet unknowns) before the patch (and thus the specifics of the security-hole) is released, to ensure a safe period between the release of the patch and its propagation to servers administrated by concerned sysadmins. Also it is generally a good idea to run only that parts of code under root privileges, that is absolutely necessary, so making sshd(8) work with privsep shouldn't have the lowest priority with vendors anyway.

      --
      "By the way if anyone here is in advertising or marketing... kill yourself." -- Bill Hicks
  18. ...and my analysis by joe_bruin · · Score: 5, Insightful

    replying to yourself is always a bad thing, but here goes...

    if you cut through the bullshit (theo certainly has an interesting way of putting things), what he's saying is this:

    there's a hole in sshd. we are working on a patch. if we release it now, you are all f'd, because all your systems will be compromised before you have time to patch them. we are giving you the next week to update your sshd, so that you are no longer vulnerable when we publish the bug+patch. yes, the new sshd has the bug, but is not vulnerable to it. if we fixed it now, the black hats will diff the results and be able to develop a compromise, and you still won't have a patch. oh yeah, we need your vendors' help so that you're all safe by next week.

    make sense?

    1. Re:...and my analysis by Ben+Hutchings · · Score: 2

      You obviously didn't understand the message you replied to. Fixing a bug in an open-source program usually makes it pretty clear what the bug is, and helps black-hats to exploit it. If they issue the fix now, there will be a race between black-hats attempting to exploit the bug and sysadmins attempting to install the fix. Giving a workaround avoids that race (at least for sysadmins that are paying attention).

    2. Re:...and my analysis by kju · · Score: 2

      ...but this is and was always the case with any other hole. I would prefer a nice fix - even with the danger that the bad guys can find out the hole faster - over a big ugly workarround which adds features who do not work cleanly, wo aren't tested heavily, who haven't been analyzed by third partied, who need to add a user to my system etc. etc.

  19. Re:Debian is easier to fix by The+Ape+With+No+Name · · Score: 2

    If and only if someone has made up the deb. And then it isn't compiled from source like /usr/ports on your machine.

    --
    Comparing it to Windows will be a moot point, since El Dorado is going to have a 40% larger code base than XP.
  20. And another thing by The+Ape+With+No+Name · · Score: 2

    There is a /usr/ports movement on debian. Try it is is better. make. make install.

    --
    Comparing it to Windows will be a moot point, since El Dorado is going to have a 40% larger code base than XP.
  21. Re:Fear Not... by Carlos+Laviola · · Score: 2

    It is the default. Since version 3.3.

  22. ISS? by sharkey · · Score: 3, Funny

    So, is this another incompletely researched, uniformative exploit report? Where's the "patch that fixes nothing" for the exploit? Isn't that how ISS does business?

    --

    --
    "Outlook not so good." That magic 8-ball knows everything! I'll ask about Exchange Server next.
    1. Re:ISS? by HydroCarbon10 · · Score: 2

      Yes, except this time the script kiddies wont have to wait a week for the Gobbles exploit to be released.

      --
      The best way to accelerate a windows box is at 9.8 meters per second square.
  23. They Had _Better_ Already Know by John+Hasler · · Score: 5, Insightful

    "Read it; you might need to pass the word on to your vendor, too."

    If you need to pass the word on to your vendor you need a new vendor.

    --
    Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
  24. Re:OpenBSD remote hole? (Try Apache) by SteelX · · Score: 3, Informative

    Yes the first Apache chunked encoding exploit released by Gobbles was targeted at OpenBSD. Grants you remote access but not root. To get root you still have to run a local kernel exploit. But Apache is not enabled by default in OpenBSD.

  25. Disclosure at the wrong time is bad by SteelX · · Score: 2

    There has to be a more mature approach to vulnerability disclosure. We can't always just disclose a serious vulnerability without a fix available in place, especially if it involves a large number of systems.

    I think Theo and the OpenSSH team are being responsible, and it shows that they've grown up. The right approach should be to disclose to the appropriate parties first, get a fix done QUICK, and then followed by a full disclosure.

    Full disclosure at the premature time is naive and only leads to wide-scale insecurity, NOT security.

  26. this openssh thing smells funny by Dr.+Awktagon · · Score: 2, Insightful

    Well I just spent a few hours upgrading a handful of openssh installs and firewalling about a dozen others. This is weird though, is there NO other information about this hole except that it's "fixed" by 3.3?

    If I have ssh blocked in /etc/hosts.allow, does that stop the bug? If I have AllowRootLogin off, does that stop the bug? Is it SSH protocol 1 or 2? Can this affect existing SSH connections? Is there any other work-around?????

    I think we just saw TWO irresponsible announcements in the Open Source world, and I hope it's not a trend.

    (SSH is one piece of software I do not like upgrading remotely..)

    PS: I haven't gotten his message from Bugtraq yet. In fact I've only gotten 2 messages from Bugtraq today...weird...

    1. Re:this openssh thing smells funny by uhoreg · · Score: 3, Insightful

      How is this an irresponsible announcement? This is about as responsible as you can get. "There's an exploit in our code. We can't tell you exactly what it is yet, because we don't have a full patch yet, and we don't want exploits flying around until we do, but if you do [insert procedure here] (which is a good idea anyways) the vulnerability is not exploitable. The patch will be available next Monday." Would you rather they announce it next week, after they have the full patch, so that we can have a race between script kiddies and admins again? Or would you rather know that your machine is safe from the kiddies, before they have the exploit?

      --

      To get something done, a committee should consist of no more than three persons, two of them absent.

    2. Re:this openssh thing smells funny by steveha · · Score: 3, Insightful

      is there NO other information about this hole except that it's "fixed" by 3.3?

      Um, it's not fixed by 3.3!

      What he said was that the bug exists in 3.3, as in other versions (which other versions, he did not spell out)... however, if you use the new "privsep" feature of 3.3, the bug is blocked.

      His stated goal is to get everyone running with "privsep" before the full details of the bug come to light. Even if that means you lose functionality... he feels it is more important to be immune to the possible remote root exploit than to be able to use all the features of ssh.

      If I have ssh blocked in /etc/hosts.allow, does that stop the bug?

      That ought to work: a bug in sshd shouldn't be a problem if crackers can't access sshd. If you have a firewall, and block the ssh port on the firewall, that should be good too.

      steveha

      --
      lf(1): it's like ls(1) but sorts filenames by extension, tersely
    3. Re:this openssh thing smells funny by dmiller · · Score: 2

      Um, it's not fixed by 3.3!

      If you can exploit the bug in 3.3 with privsep on, then you find yourself as a unprivileged user in an empty chroot which you do not have write access to.

    4. Re:this openssh thing smells funny by nathanh · · Score: 2
      How is this an irresponsible announcement? This is about as responsible as you can get. "There's an exploit in our code.We can't tell you exactly what it is yet,

      That's why it's irresponsible. If we were told what the problem was then we could make informed decisions about how to deal with it. Some of us might upgrade to 3.3. Some of us might turn openssh off. Some of us might use a different workaround.

      And it wouldn't even be necessary for Theo to personally tell every admin what the problem is. It would be enough (for me) if the Debian packagers were told. But Theo won't even do that! Theo won't even tell Alan Cox! If we can't trust Alan Cox then who can we trust?

      because we don't have a full patch yet, and we don't want exploits flying around until we do, but if you do [insert procedure here] (which is a good idea anyways) the vulnerability is not exploitable.

      Because there are 3 obvious problems here.

      1. Black hats probably already know the exploit. Theo is keeping the information away from the white hats and the users. This is irresponsible.
      2. It's not a simple procedure. It's a complete software upgrade to a known buggy version with missing functionality. And because Theo won't disclose the exploit there's no real certainty that the new version isn't also broken.
      3. It's not about having a full patch. It's about trusting other people to make intelligent decisions when given all the information. Theo never allows this level of trust, and that says worlds about Theo.

      Honestly if Theo had said "we have an exploit, here it is, we won't have a fix for 3 months" then I'd be LESS angry than with his non-disclosure and his "YOU DO THIS NOW" demands.

    5. Re:this openssh thing smells funny by libertynews · · Score: 2

      Bugtraq's mailing list is (may be fixed by now) broken and being worked on.

      Coincidence? Maybe.

      --
      Remember Lexington Green!
    6. Re:this openssh thing smells funny by PigleT · · Score: 2

      There have been plenty more vulnerabilities with openssh in the last year - I remember days when "you must get 2.9!" and so on.

      As for `at least theo is saying something now', that's crap. It encourages people - whole distributions - to upgrade to something they don't know, including wrecking stable versions and everything, for no good reason other than "the great Theo said so" - when as it happens, Debian's packages aren't even going to be vulnerable because (a) it's a protocol-2-only bug and (b) they don't use SKEY or BSD-AUTH.

      In retrospect, adopting a policy of "until we know what it is, there is no problem" would have saved a lot of people a hell of a lot of unnecessary stress.

      --
      ~Tim
      --
      .|` Clouds cross the black moonlight,
      Rushing on down to the circle of the turn
  27. no kidding by mattdm · · Score: 2

    Please, don't bug your vendor about this unless they don't provide a fix in a reasonable time. Any decent vendor is *already* working on a fix for this, and "passing the word on" a million times is just going to be annoying to their poor support folks.

  28. Re:ssh vulnerability disclosure? by John+Hasler · · Score: 4, Insightful

    "Another interpretation would be that he wants vendors to port the privilege separated version of sshd to their platforms..."

    That is exactly what he wants.

    --
    Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
  29. Learn to build and install from source by bigberk · · Score: 2, Insightful

    An important skill for anyone who uses UNIX, *BSD, or Linux is being able to build and install software from source. If you haven't done it before, take some time to learn how to do it properly. It's easier than you might think, just download the source and read the README and INSTALL files.

    That's kind of why all the source is released -- you really don't have to wait for packages from your vendor. The packages make future uninstall simpler, true, but sometimes you don't have the luxury of time.

    1. Re:Learn to build and install from source by Sabalon · · Score: 2

      Even better is to learn to build this stuff on a system like HPUX or Solaris or AIX.

      A lot of open source stuff makes the assumption that you are on Linux or a fully gnuized system.

      It's fun doing the little bits here and there to get it all running on something that doesn't have all the needed stuff out of the box, or that doesn't compile smoothly because of bad assumptions.

      Builds character and grey hair :)

  30. Scary log message from OpenSSH 3.3p1 on linux 2.4. by Swordfish · · Score: 2

    Here's the scary message I get in the system log
    on my linux machine.

    Jun 25 12:40:54 emu sshd[4872]: Accepted hostbased for userblah from 123.12.123.12 port 2654

    Hostbased?

    But I've got all the hostbased stuff turned off.
    A bit of testing shows that _probably_ it is really using RSA or DSA publickey.
    But it is very scary indeed to see this (probably wrong) message in the system log.

    Does anyone know if this is _definitely_ an erroneous message.

    I've got all of my .rhosts etc. stuff off.
    Here's my sshd_config file:

    Protocol 2
    IgnoreRhosts yes
    PermitRootLogin no
    RhostsAuthentication no
    RhostsRSAAuthentication no

    AllowUsers blah1 blah2
    PasswordAuthentication no
    PermitEmptyPasswords no

    X11Forwarding yes

    Subsystem sftp /usr/local/libexec/sftp-server

  31. "sshd" user and /var/empty by Scoria · · Score: 2

    Be absolutely certain (*especially* when installing 3.3 remotely) that you have created an sshd user, sshd group, and /var/empty directory prior to invoking OpenSSH 3.3. These requirements must be satisfied even if you do not intend to utilize the privilege separation feature. The daemon fails to start without them.

    (Disclaimer: This may be blatantly obvious to you, but I'm only attempting to help. :))

    --
    Do you like German cars?
    1. Re:"sshd" user and /var/empty by Dr.+Awktagon · · Score: 2

      I used the FreeBSD port.. it did it all automatically it seems (and it used /usr/empty). It upgraded openssl as well, hopefully that didn't break anything.

      Sure enough, now when I connect, there are 2 daemons, one running as root and the other not.

      Does anybody know if there are any problems with FreeBSD (the letter just mentioned OpenBSD and NetBSD)...?

  32. Re:Debian is easier to fix by John+Hasler · · Score: 2

    "If and only if someone has made up the deb."

    Someone (the Debian security team) has.

    "And then it isn't compiled from source like /usr/ports on your machine."

    Right. Instead, it was configured and packaged by someone who is an expert on that particular software. Of course, I could use 'apt-get source' to get the expert's package built on my system.

    --
    Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
  33. OpenSSH patches by FattMattP · · Score: 3, Funny

    I hope you don't let ISS write the patch! ;-)

    --
    Prevent email address forgery. Publish SPF records for y
  34. Re:What's the deal with the Ethics? by teamhasnoi · · Score: 2
    I'm afraid I have to cut in here.

    Really, you should always find no proof of no proof of proof of proof of poop of no proof before posting about lack of it (the lack of no proof). You can find my proof of this argument at my website here.

  35. How far BACK? by evilpenguin · · Score: 4, Insightful

    Leaving the OS Wars aside (I run Linux, yes, but I also run FreeBSD, and I would run OpenBSD if they would just get unanal about bootable iso's): Okay, swell. 3.3 has a hole.

    How far BACK does this hole extend? Does my 3.1 have it? Does EVERY copy of OpenSSH since the dawn of time have it? Can someone make this clear to me? Is it only versions that have privledge separation? Where is the boundary of this bug?

    1. Re:How far BACK? by Halo1 · · Score: 2
      It's in all versions of OpenSSH. And 3.3 with privileges separation prevents the bug from being exploited (ie. it still has the bug, but because of the privileges separation, you're box can't be 0wn3d anymore through this exploit).

      I thought thas was quite clear from this statement:

      However, everyone should update to OpenSSH 3.3 immediately, and enable priv separation in their ssh daemons, by setting this in your /etc/ssh/sshd_config file:
      It would be silly if he said that in case the bug was introduced in 3.3
      --
      Donate free food here
    2. Re:How far BACK? by disappear · · Score: 2
      My theory? There is no hole. He's disappointed about the reception of his god-given privilege separation code, and invented this to try and get vendors to adopt it. He's offered us no proof that his heaven-inspired architecture fixes the bug, much less that one exists. We have only his claim to work with.

      Actually, Christopher Klaus of ISS said that they were working with another open source vendor on a major security hole while defending their actions with regard to the Apache hole. This case fits his description exactly.

      I'm inclined to trust Theo on this one. But I'm not sure he should have said anything until they had a fix... reducing the root exploit to a remote-user exploit isn't good enough.

  36. General comments by Maverick+TimeSurfer · · Score: 2, Interesting

    A patched version of OpenSSH could be released as soon as Friday, incorporating vendor patches received by this Thursday.

    Now, why can't MS and the like be that fast? With gazillions of coders on hand, you'd think they'd be able to at least match that. I like how open source projects allow lots of people to work on a problem independantly, all at the same time. The ultimate parallel processing!

    It seems that in addition to manufacturing new threats, they're also rehashing old threats to keep subscription renewals up. Perhaps it's time for Slashdot to add an Ethics topic?

    Well, MF has been known blow virus threats way out of proportion, almost to the extent of completely making them up, as is highlighted in this article. And there are probably many other examples of bad ethics. But perhaps a Business topic would be more inclusive? Maybe that's covered by The Almighty Buck, but TAB doesn't seem to fit with ethics as well. Would people stand for replacing TAB with Business, or should an Ethics topic be created, or should we just forget the whole thing?

    --
    Never underestimate the power of human stupidity.
  37. A reply to all those bitching by hayden · · Score: 4, Insightful
    Isn't it wonderful how a security hole in an open source program brings forth all the security experts on Slashdot. And they flame someone who know a shit load about it and is dedicated to improving security to the point of being a complete arsehole.

    Anyway. My guess is that this hole is something substantial, possibly very plateform dependent and any patches aren't going to be trivial. Seeing as all you people who felt the need to use fsck in their posts more than once know about as I do about this then my assumptions are as good as yours (and I don't feel the need to use the word fsck as an expletive once). Non-trivial patches mean that commercial vendors are going to take for ever to release final patches and if you are running anything open to the internet then it's likely to be ssh. Add it all up it means this could be very bad.

    Now the OpenSSH team is actually two. One that develops new stuff and does code audits specifically for OpenBSD and another that takes that and ports it to other architectures.

    All those bitching about full disclosure, you manage to be completely committed to a cause, idiots and miss the point of full disclosure all at once. If the bug is bad then releasing it when only the OpenBSD version of OpenSSH is patched would be an absolute security nightmare. Giving vendors advance notice is very much required in this case. When the vulnerability is announced then I'm sure it will be fully disclosed which will provide the opportunity to test a system for vulnerabilities.

    As for you people who are saying Theo is being pro-OpenBSD, read the above paragraph again and answer this question. If Theo really wanted to really rip on other OS's then what could he have done with this announcement? Only OpenBSD not vulnerable and with mindless full disclosure to cover his arse. You do the maths.

    The fact is Theo is a complete arsehole when it comes to security. Some see this as not a bad thing. With OpenBSD security is pretty much everything. To the vast majority of other "vendors" security is something they also do and with this Theo has a legitimate gripe. He has got a shitty reception from other vendors to something that will make a vital link in the security chain more secure. Is he making a point of this? Probably. Is he right to do that? Depends on your point of view. If it gets the "vendors" off their arses and add support for priviledge seperation in their ports then would this be considered a good thing? Most definately.

    When it boils down to it, Theo would be well within his rights to patch the OpenBSD version of OpenSSH (by using priviledge seperation) and hanging the other vendors out to dry. He didn't. Deal with it.

    --
    Nerd: Derogatory term typically directed at anybody with a lower Slashdot ID than you.
    1. Re:A reply to all those bitching by HiThere · · Score: 2

      If I understand the discussion properly, the problem comes with the interface between ssh and the other verdor's systems. Appearantly the priviledges need to be set differently on PAM and a few other things for the priviledge separations to work properly. This would be very distribution dependant, so it's reasonable that he desire the vendors to fix the problem.

      OTOH, the vendors are reasonable to say "What problem?". I can certainly understand, say, Alan Cox (to pick a name at random) being a trifle upset at being asked to do a massive adaption on short notice without being shown a clear reason. And it seems unreasonable for Theo to not trust Alan, particularlly since he is intending to publish details next week anyway. He could, if nothing else, show him a draft of what he plans to release and ask for critiques.

      --

      I think we've pushed this "anyone can grow up to be president" thing too far.
  38. Mandrake Updates Available Too by RadioheadKid · · Score: 2

    Here's the advisory with instructions...

    The ftp sites in France are usually updated the quickest.

    --
    "Karma can only be portioned out by the cosmos." -Homer Simpson
  39. telnet by Russ+Nelson · · Score: 2

    I think I'm going to go back to telnet and s/key! When was the last time you heard of a security hole in telnet?
    -russ

    --
    Don't piss off The Angry Economist
    1. Re:telnet by NRLax27 · · Score: 2, Funny
      When was the last time you heard of a security hole in telnet?

      Telnet is a security hole!

    2. Re:telnet by possible · · Score: 2
  40. Re:Christ... by ZoneGray · · Score: 2

    So, but it's open source, so they have a patch out even before the vulnerability is discovered.

  41. Conspiracy by dmiller · · Score: 2

    When you are finished fixing up your tinfoil hat, you can read the diffs to see exactly what has changed.

    1. Re:Conspiracy by nathanh · · Score: 2

      The patch adds privsep which means the exploit is somewhere inside 24000+ lines of code. The diff probably doesn't even fix the exploit: it just avoids using that code as root. Your advice is less than useful.

    2. Re:Conspiracy by dmiller · · Score: 2

      No, the diff from 3.2.3p1 to 3.3p1 does:

      77 files changed, 2172 insertions(+), 1291 deletions(-)

      Most of which are straight moves of code from one file into several. Your comment is less than factual.

    3. Re:Conspiracy by nathanh · · Score: 2

      Did you bother reading the article? OpenSSH is 27000 lines of code and the workaround is "privsep" which makes only 3000 odd lines run with root privs. That means 24000 lines of code might have contained the exploit.

      Looking at the diff file is a damn useless way of figuring out what the exploit is.

    4. Re:Conspiracy by dmiller · · Score: 2

      Looking at the diff file is a damn useless way of figuring out what the exploit is.

      Did you bother reading my original message? I was responding to the assertion that there may be a backdoor in openssh-3.3. If this was the case (which it is not) then reading the diff would be the best way to detect this.

      Please read the diff! It is because people prefer to complain more than look at code that we are in this situation.

  42. Re: For FreeBSD users - Debian testing update by Omniscient+Ferret · · Score: 2, Informative

    If you're using woody - debian testing - add this to your /etc/apt/sources.list:
    deb http://security.debian.org woody/updates main contrib non-free
    then the usual apt-get update; apt-get upgrade.

  43. Does NOT work with 2.2 kernels. by netfunk · · Score: 4, Informative
    This just bit me in the ass, so I'm passing it on.

    The privilege separation code in OpenSSH 3.3 does not work with 2.2 Linux kernels.

    It relies on mmap() semantics that aren't supported before kernel 2.4 (maybe 2.3.x). OpenSSH will configure, compile, and install successfully. It will start up, but it will NOT accept connections.

    Your clients will get a "broken pipe" message, your syslog will get an "mmap: invalid parameter" message.

    The solutions are:
    • Upgrade to kernel 2.4 or higher.
    • Don't compile in Privilege Separation.
    • You might be able to compile privsep in and disable it, but I couldn't get this to work. Maybe I had a typo in my config file. I dunno.


    I didn't see this anywhere until I dug into my syslog and then the OpenSSH mailing list. You have been warned.

    If you do have kernel 2.4, you should read README.privsep in the openssh source distro, since you need to create a special directory and user/group for this (which also bit me in the butt...even if sshd had worked on 2.2, when I restarted it remotely, it didn't come back up because it didn't have that user...yeah, yeah, rtfm. :) )

    Good luck to everyone.

    --ryan.

    --
    Don't say, "don't quote me," because if no one quotes you, you probably haven't said a thing worth saying.
  44. Re:DOES work with 2.2 kernels. by Svenne · · Score: 5, Informative
    You just need to turn of compression. All you have to do is add the following line to your sshd_config:
    Compression no
    I'm running OpenSSH 3.3 with privilege separation activated on a 2.2.19 kernel.
    --

    Slagborr
  45. Re:more like (-1, Flamebait) by ghost_tosh · · Score: 2, Informative

    its not hard when they disable practically all the networkservices on it. its easy to defend a house with no doors and no windows. openbsd still rox though

  46. Re:How do you know UsePrivilegeSeparation is worki by LizardKing · · Score: 2

    I'm wondering how you can tell if UsePrivilegeSeparation is working?

    Login via ssh, and run:

    ps waux | grep sshd

    You should see two sshd processes, one with the UID of 0 (root), and the one you are logged in via which should have your UID and "[priv]" in its command name.

    If it's not like that, then try restarting sshd. On a RedHat machine run:

    /etc/rc.d/init.d/sshd restart

    Don't know what the init scripts look like on Debian, but you could always kill sshd manually and start it again.

    Also make sure you're picking up the configuration files from the right place. They moved from /etc/ to /etc/ssh/ in a recent version.

  47. Re:Update immediately?? by WebMasterJoe · · Score: 2

    Somebody correct me if I'm wrong, but this only applies to the ssh server, not the clients. The vulnerability seems like it doesn't matter what software the client is using, in fact I doubt there is even a need for the client to be connected. Think of it like an Apache vulnerability - if you patch the server, then the oldest, buggiest web browser in the world wouldn't make it easier to break in to the server.

    --
    I really hate signatures, but go to my website.
  48. Re:How do you know UsePrivilegeSeparation is worki by barawn · · Score: 2

    Actually, just to clear things up, it's

    /etc/init.d/sshd restart

    on later versions of Red Hat machines. While /etc/rc.d/init.d/ will work, /etc/init.d/ should as well in later versions. /etc/init.d/ is the LSB location of init scripts.

    On a Debian machine, it's
    /etc/init.d/ssh restart
    (which kindof annoys me... it should be sshd restart, not ssh).

  49. Re:ssh vulnerability disclosure? by bill_mcgonigle · · Score: 2, Funny

    Quoth parent: We won't tell you what the problem is, unless you're a big distributor.

    Quoth Theo: Some, like Alan Cox, even went further stating that privsep was not being worked on because "Nobody provided any info which proves the problem, and many people dont trust you theo" and suggested I "might be feeding everyone a trojan" (I think I'll publish that letter -- it is just so funny).

    So, Redhat is a small distributor?

    --
    My God, it's Full of Source!
    OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
  50. Woody security updates by marnanel · · Score: 2

    Do you have

    deb http://security.debian.org/ woody/updates main

    in your /etc/apt/sources.list?

    --
    GROGGS: alive and well and living in
    1. Re:Woody security updates by V.+Mole · · Score: 2

      And just how is adding "woody/updates" to your sources list going to help you with potato?

  51. Re:potato does not need it by HiThere · · Score: 2

    I don't know of any reason to believe that the older versions of ssh are immune to this bug. Theo may, but he is the only publically identified name that does. And what he said indicates that the bug has been there for a LONG time. (i.e., ... everybody should update...).

    It's not as explicit a comment as I would have liked, but it does indicate that the bug isn't new.

    --

    I think we've pushed this "anyone can grow up to be president" thing too far.
  52. Re:How do you know UsePrivilegeSeparation is worki by disappear · · Score: 2
    You should see two sshd processes, one with the UID of 0 (root), and the one you are logged in via which should have your UID and "[priv]" in its command name.

    *Sigh* I've now tried both the official OpenSSH RPMs and rebuilt ones, and I can't get privelege separation working on any Red Hat 7.x box I have.

    Presumably this is what Theo was referring to when saying that priv separation wouldn't work on some platforms.

    Anyone manage to get priv sep working on a Red Hat 7.x box? If so, how?

  53. Re:woody ssh 3.3 does not do priv sep by timmyd · · Score: 2, Informative

    here is what debian has to say:
    http://www.debian.org/security/2002/dsa-134

    it looks like they have priv sep on by default

  54. Re:OpenSSH.com has RPMs for RedHat 7.3, 7.2 by disappear · · Score: 2
    I tested this on 3 stock RH 7.3 boxes as well as a RH 7.2 box running 2.4.17 kernel. All still work.

    Which is a good start. But did you check if any were actually running as user 'sshd'? I did, and none were --- it seems that privelege separation doesn't work on Red Hat boxes.

    Of course, if I'm wrong, that's great --- but I hope somebody points me in the right direction.

    Make sure you go into /etc/ssh/sshd_config to uncomment the "UsePrivilegeSeparation yes" line.

    That's unnecessary: the commented lines show all of the options and their default values. If the comment says 'UsePrivilegeSeparation yes', then it's already turned on.

    (And yes, I tried uncommenting this and restarting. It didn't enable priv. separation at that point.)

  55. Re:Debian is easier to fix by stripes · · Score: 2
    "And then it isn't compiled from source like /usr/ports on your machine."
    Right. Instead, it was configured and packaged by someone who is an expert on that particular software. Of course, I could use 'apt-get source' to get the expert's package built on my system.

    The implication there is that the built-from-source port is not configured by an expert. I don't know how debian does it, but FreeBSD's ports are expertly configured (at least if an expert exists). They do however allow one to fetch the source, apply the expert's 'patches' (frequently just config changes)...and then if you want apply your own judgment before doing the build and install. Maybe you really do know more then the expert. Maybe your needs are different. Or, maybe the world has changed since the expert configured the port and package.

    For example aome new and untrusted security feature might be left disabled because it is new and untrusted...but the world changes and there is a known attack that the untrusted thing is the only known defense against...

  56. Re:Debian is easier to fix by The+Ape+With+No+Name · · Score: 2

    Again. If and only if. The .deb was done quickly, then fine.

    By expert, I mean "me" as I am the expert on the machines I maintain. Not some dude in Raleigh or at MIT. Besides, I have seen /usr/ports updated within a 2 hours of a bug report, and more quickly in the case of a kernel problem -- the rare kernel problem, mind you.

    I have linux boxes that I maintain, but I use Rock and compile it all myself. That way I know what is afoot.

    Linux isn't the only free operating system.

    --
    Comparing it to Windows will be a moot point, since El Dorado is going to have a 40% larger code base than XP.
  57. Re:viral manufacturing, or proof of concept? by MrResistor · · Score: 2

    How else do you expect to get by the web and email scanners which either filter or STOP any executables from getting through?

    In order for this JPEG virus to work the host must be previously infected with a standard executable virus (which should be caught by scanners/filters) which enables JPEGs to be executed as code. The JPEG isn't actually a virus at all. It's more like a script for the actual virus to execute, disguised as a JPEG.

    McAfee is trying to make people believe that this is a new different kind of virus, and that they now have to fear previously-thought-innocuous non-executable files, which is simply not true. This virus still requires an executable component. For that reason I feel Perrun falls under the catagory of hoax, and this is aggravated by their placing it in the apparently newly created risk catagory of "Low On Watch", which is the same as saying "Well, it's not doing anything now, BUT IT COULD AT ANY MOMENT!" In other words, it's FUD. Since there is a high likelyhood that this is being done in order to increase sales/subscriptions, it is therefore unethical.

    Let me add to this that this morning when I logged in there was a message which looked like a virus alert, but which directed me to a site encouraging me to purchase a for $29.95 1 year subscription to VirusScan Online, a program which is already installed on my machine with a current subscription.

    I don't know about you, but I put this kind of behavior right up there with Verisign sending fake renewal notices to people who use other registrars.

    --
    Under capitalism man exploits man. Under communism it's the other way around.