Forgot your password?

typodupeerror
Security Operating Systems BSD

Remote Exploit Discovered for OpenBSD 338

Posted by samzenpus
from the patch-it-up dept.
An anonymous reader writes "OpenBSD is known for its security policies, and for its boast of "only one remote exploit in over 10 years". Well, make that two, because Core Security has found a remotely exploitable buffer overflow in the OpenBSD kernel. Upgrade your firewalls as soon as possible."
This discussion has been archived. No new comments can be posted.

Remote Exploit Discovered for OpenBSD

Comments Filter:
  • by Anonymous Coward on Thursday March 15, 2007 @01:21AM (#18358475)
    Well done. It's not an easy feat to create an OS with so little exploits. The team and Microsoft should take a leaf out of your book.
  • by Anonymous Coward on Thursday March 15, 2007 @01:37AM (#18358575)
    You think the problem is that Microsoft can't create a secure OS? You don't think the problem is all the legacy crap, and the everything under the sun and everything to everyone demands placed upon it? Not that what OpenBSD has achieved as a track record isn't impressive. But serving one master (of one's own choosing) well, it not the same thing as being the most favored servent to the most masters.
  • by Kandenshi (832555) on Thursday March 15, 2007 @01:38AM (#18358579)
    I heard a rumour that Microsoft did indeed look to the idea of emulating OpenBSD's security practices as a company.

    Then someone pointed out the respective revenues of OpenBSD vs Microsoft, and the whole idea just seemed to evaporate.

    Someone decided that people don't care enough about the number of remote exploits found in a given OS. They were probably right.
  • by Anonymous Coward on Thursday March 15, 2007 @01:47AM (#18358643)
    Hiya, Fyodor.

    Why is your sig not a sig?

  • by Secret Rabbit (914973) on Thursday March 15, 2007 @01:52AM (#18358677) Journal
    I think you're reading too much into things. It's FAR more likely that the OBSD team has become somewhat overconfidenct in there code. As such, since remote exploit wasn't shown and was unlikely, they dismissed that.

    But, cover up? Yah right. Please, note that the OBSD team NEVER denied that a problem existed. They fixed it. It was only the wording that was in contest until remote execution was shown and they verified it.
  • by peacefinder (469349) <alan DOT dewitt AT gmail DOT com> on Thursday March 15, 2007 @02:13AM (#18358763) Journal
    I'll spot them some skepticism or overconfidence. It's been proven again and again that they're right to think OpenBSD is a hard target, so it's understandable that they wanted to see proof before bumping their counter up.

    As for a "cover up"... well, if such a thing happend I'd say they must really suck at coverups, since we all know about it. :-)
  • who the hell.. (Score:1, Insightful)

    by Anonymous Coward on Thursday March 15, 2007 @02:33AM (#18358829)
    ..uses IPv6? That's the first thing I turn off on every OS I've ever set up for a client (at least, ones where I can recompile the kernel).

    This is about as interesting as finding a hole in Gopher. (Except, well, Gopher is something from the past, and IPv6 is perpetually in the future [any day now, we'll all switch!]).
  • by drsmithy (35869) <drsmithy@BALDWINgmail.com minus author> on Thursday March 15, 2007 @02:35AM (#18358831)

    Well done. It's not an easy feat to create an OS with so little exploits. The team and Microsoft should take a leaf out of your book.

    It is when basically the only thing your OS does "in the default install" is allow SSH logins.

    (Which is not to attack the excellent work of the OpenBSD team, but comparing it to Windows is in this fashion is just asinine.)

  • by jrockway (229604) <jon-nospam@jrock.us> on Thursday March 15, 2007 @04:18AM (#18359223) Homepage Journal
    > Availability is a key facet of security. There's no fuckin' point having a "secure" system which you can't even use.

    Sure there is. Think, for example, of a data warehouse containing social security numbers. Would you prefer that that system go down entirely, or that the contents of the database is exposed. A system that detects trouble and shuts itself down until someone fixes it sounds good to me.

    Also, by your standards, a power failure is a security hole. That's just not true.
  • by Richard_at_work (517087) <richardpriceNO@SPAMgmail.com> on Thursday March 15, 2007 @05:20AM (#18359493)
    The default install of OpenBSD includes (from memory, so this is not exhaustive) SSHd, bind, apache and sendmail, all of which are included in the term 'Only two remote holes in the default install' - those codebases are as rigourously audited as anything else.
  • by drsmithy (35869) <drsmithy@BALDWINgmail.com minus author> on Thursday March 15, 2007 @05:34AM (#18359555)

    The default install of OpenBSD includes (from memory, so this is not exhaustive) SSHd, bind, apache and sendmail, all of which are included in the term 'Only two remote holes in the default install' [...]

    They're "included" in that the binaries are there, but they are not enabled (except SSH). Ie: they're not part of "the default install" as far as remote vulnerabilities goes.

  • by TheRaven64 (641858) on Thursday March 15, 2007 @05:45AM (#18359593) Journal
    The thing is, it doesn't matter. The OpenBSD folk treat pretty much every bug as a security hole. I heard one of them say this, which I think should be taken to heart by all software developers:

    The only difference between a bug and a security hole is the intelligence of the attacker.
    As such, the hole was patched when they thought it was just a DoS. All escalating it does is encourage admins not to actually apply the patches.
  • Re:It's a feature (Score:3, Insightful)

    by TheRaven64 (641858) on Thursday March 15, 2007 @05:53AM (#18359637) Journal
    Not in this case. This was a bug in the IPv6 code, which comes from the KAME project. The BSD TCP/IP stack used by some versions of Windows comes from the 4BSD series, pre-dating KAME (and IPv6 in general) by quite some years.
  • by TheRaven64 (641858) on Thursday March 15, 2007 @05:59AM (#18359675) Journal

    it appears that the fix to 3.9 and 4.0 branches was delayed for an extra week until Core produced a working remote root exploit
    I think this makes sense, to be honest. If it's just a DoS, then I'd rather not put the code in my kernel until it's been well tested (I can remote-reboot my machine, if all else fails, and then apply the patch). If it's a remote code execution then it's pretty hard for any change to make it worse.

    I really like OpenBSD, but I really miss having an analogue of FreeBSD's portaudit utility. Since the source data used by portaudit provides OpenBSD and FreeBSD vulnerability info, I wonder if anyone has tried porting it...

  • Re:Sure it is (Score:1, Insightful)

    by Anonymous Coward on Thursday March 15, 2007 @06:17AM (#18359741)
    1. Isn't it the right thing to do having everything off by default?
    2. Are you claiming that Windows has more things on by default (based on 1, I'd consider that the wrong behaviour)?
    3. Windows doesn't have turned on by default any remote access tools as powerful and useful as OpenSSH.
    4. Windows default install doesn't include a mail server or a DNS server. OpenBSD has both of those, security audited and patched for greater safety.
  • by tomstdenis (446163) <<moc.liamg> <ta> <sinedtsmot>> on Thursday March 15, 2007 @07:10AM (#18359971) Homepage
    Not all bugs are security holes. Bugs could be as simple as formatting errors. Or say not matching test vectors.

    Personally though, in professional code, bugs are failures. That we tolerate them as a society is nice and all, but in all honesty they're not really acceptable. Which is generally why it's a smart idea to give your customers test code to toy with before the delivery date. That way hopefully they can spot some bugs to report (it also gives them a chance to ramp up earlier on the software so it's win-win).

    In the case of OSS, I can see the guidelines being a bit more lax in certain projects (not OSes though) as resources are limited. If some handy perl script has a typo in the command line parser and I need to specify "--demon" instead of "--daemon" it's a bug, but not the end of the world, etc...

    That the OpenBSD team treats the bug reports with such speed is a sign of professionalism. Kudos to them even if I still run Linux (hehehe).
  • by Anonymous Coward on Thursday March 15, 2007 @07:11AM (#18359977)
    Also, by your standards, a power failure is a security hole. That's just not true.

    Tell that to anyone who has an alarm system without a battery backup...
  • Forced release? (Score:5, Insightful)

    by Just Some Guy (3352) <kirk+slashdot@strauser.com> on Thursday March 15, 2007 @09:47AM (#18361099) Homepage Journal

    FTFA:

    2007-02-21: Core sends draft advisory and proof of concept code that demonstrates remote kernel panic.
    2007-02-26: OpenBSD team develops a fix and commits it to the HEAD branch of source tree.
    [...]
    2007-03-05: OpenBSD team notified of PoC availability.
    2007-03-07: OpenBSD team commits fix to OpenBSD 4.0 and 3.9 source tree branches and releases a "reliability fix" notice on the project's website.
    [...]
    2007-03-13: Core releases this advisory.
    Release Mode: FORCED RELEASE

    Kudos to Core Security for finding an exploit in OpenBSD code. Seriously, that's impressive. However, it sounds like they're a little too pleased with themselves. "Forced release"? I guess that's technically true, in the sense that a feather exerts a gravitational force on the Earth.

    In a nutshell, they reported a problem and OpenBSD fixed it. Then they demonstrated that it was a more serious problem, and OpenBSD backported the fix to the current releases and announced it on their website. After reading the whole timeline, I'm not sure what else they were supposed to have done so that Core wouldn't be "forced" to announce the vulnerability that OpenBSD publicized on their own site as a "security fix" three days earlier.

  • by Just Some Guy (3352) <kirk+slashdot@strauser.com> on Thursday March 15, 2007 @09:52AM (#18361173) Homepage Journal

    I heard a rumour that Microsoft did indeed look to the idea of emulating OpenBSD's security practices as a company.

    Then someone pointed out the respective revenues of OpenBSD vs Microsoft, and the whole idea just seemed to evaporate.

    My company makes far more than the OpenBSD team brings in, and yet we still respect them and try to emulate their practices. I'm not sure what kind of hubris it takes to dismiss someone's ideas just because you have more money.

  • Re:WHOA WTF (Score:1, Insightful)

    by br0k_sams0n (848842) on Thursday March 15, 2007 @10:52AM (#18361911)
    The argument that the OS is more secure would carry a bit more weight if the OpenBSD team didn't blatantly try to deny that this was a vulnerability as the release states. If you buy the release, Core made them look pretty bad, as if they just dismissed the disclosure effectively saying "we don't think that's a problem". When they did that, Core dropped it right on them, then they reacted. If the team were as security conscious as you claim, they wouldn't have simply dismissed it and would have given the issue more serious consideration. I've always thought of the BSDs (Net and Open anyway) as a smaller attack vector, nothing inherently more secure. They don't have a monopoly on smart developers and all humans make mistakes.
  • by Tony (765) * on Thursday March 15, 2007 @11:35AM (#18362675) Homepage Journal
    First, there has to be a lot of low-level code just to be able to boot most modern computers. Any high-level, non-native language (Python, Perl, C#, etc) need to have an OS to run their VM. Anything low-level, such as disk access, memory management, process management, etc, requires more-or-less direct access to the hardware. This means assembly, in many cases.

    Fully-native object oriented languages like Objective-C are no better than C for security. In fact, they bring their own set of baggage with them. Hybrid ("half-assed") object languages like C++ are worst of all, as they unite the simplicity of Brainfuck with the inherent security of C and the speed of Perl. (Drawbacks of C++ exaggerated for comic effect. If you are a C++ weenie, please don't take offense.)

    When it comes down to it, for general-purpose operating systems, there's not been found a better way than the combination of ASM + C.

    I think the issue is, where does the OS stop and the application space begin?

    Does the whole TCP/IP stack *need* to be written in C? Probably not. Considering the amount of use it gets, it's probably a great place to optimize for performance, though, so writing it in C helps.

    And I'm not convinced the problem is the language. The OpenBSD folks have written a good, solid OS in C, with very few exploits. I've seen exploits in Perl, Python, C#, the .Net framework, and most other popular languages. And it's easier to take advantage of a Perl or Python or .Net exploit when you find them, as you don't need intimate knowledge of the underlying architecture.

    As usual, the debate is not as simple as, "C bad, everything else good."

    Anyway, that's my rant, and I'm sticking to it.
  • by Chris Burke (6130) on Thursday March 15, 2007 @12:15PM (#18363467) Homepage
    I'm not sure what kind of hubris it takes to dismiss someone's ideas just because you have more money.

    It's not hubris, exactly. It's a matter of values. If what you value above all else is money, then the fact that they have less money -- compared to MS, they are effectively penniless -- means that their ideas are not important to you, even if technically good ideas. They won't help you get more money, ergo what you are doing is better than what they are doing.

    Your company values things other than money, so you copy good practices even if they aren't going to earn you more money.

    Though I think it is fairly simple to concoct a scenario where in the long term it does cost money not to adopt good practices -- such as losing marketshare because of security problems. Short sightedness is also a problem people who value only money often have, at least the ones running publicly traded corporations.
  • by Anonymous Coward on Thursday March 15, 2007 @12:54PM (#18364185)

    "at least on some configurations" doesn't sound exactly like a "default install", does it?


    Well, the Linux kernel doesn't have a default install... But most distros did enable smbfs by default.
  • by Just Some Guy (3352) <kirk+slashdot@strauser.com> on Thursday March 15, 2007 @01:04PM (#18364365) Homepage Journal

    Your company values things other than money, so you copy good practices even if they aren't going to earn you more money.

    My company values money an awful lot - it makes staying in business a bit easier. It's just that we take the long term view. Doing these things gives us a better reputation, which is critically important in our niche market. It also means fewer 2AM emergencies and easier maintenance. Basically, we've decided that OpenBSD's values are very profitable, even if they don't choose to directly financially profit from them.

  • by Anonymous Coward on Thursday March 15, 2007 @05:14PM (#18367891)
    Son, are you high? Since when were you in charge of what OpenBSD is SUPPOSED to do and not do? Last I checked, that was Theo de Raadt's job, and noone else's.

    If the developers look at something and think it's a potential security risk, they mark it as such and it comes as a security patch. Look through their history, they've done it several times when they haven't even looked to make an exploit, they just think it's possible, so it's marked as security.

    On the other hand, if they do not see the risk, they mark it as reliability unless someone, it doesn't matter who, shows them otherwise.

    When has it ever been declared OpenBSD's responsibility to treat anything and everything as the end of the world?

    They never used to treat everything as a hole in the system, they treated things as what they assessed them to be, just like everyone else does.

    Given a pass? This is a bug that can only be exploited under rare cases and it had been very doubtful that it could be exploited at all until Core showed it to them. Cannot slack? These people are doing a significantly better job keeping their system safe than any other system, if anything, these people are getting pressured far more than they should be. They are human last I checked, except for Bob Beck who is actually 1/4 Moose on his dad's side.

    Their entire reason for being is making a system they want to use, that will never evaporate. And you can go fuck yourself for all they care, they don't even want you using their work, they're letting you have it because they see no need to make you write your own code. You're just being an ingrateful little child, complaining about nothing, because you want everything.
  • by Anonymous Coward on Thursday March 15, 2007 @06:25PM (#18368761)
    "The OpenBSD team is SUPPOSED to assume the worst case when no facts are known."

    That's absurd. No facts and it's immediately considered an exploit on vetted code?

    I'm not sure where you learned this ideology. I've used OBSD for 8 years and they never do this unless it's blatently clear.

    And you know what? Mayve they did consider it and didn't see the issue; it took CORE itself 1 week minimum to deliver PoC, showing this was not a readily seen | trivial exploit, not to mention a couple days, not the usual hours, for OBSD to come up with a fix. iow, the fact it wasn't seen in the first place lends some evidence that this wasn't a readily seen problem.

    "They are supposed to investigate EVERY bug as being a potential exploit."

    No, they fix known bugs first, which stamps out most issues. Which they did here. Then they learned it was more and fixed the issue within 2 days, maybe less depending on what hours the mentioned communications were actually made.

    YOU do understand that CORE seems to have given them partial info? PoC was not given for over a week. You also don't know, seeing the info is only one side of the tale, whether someone was still looking into things on OBSD's end and CORE simply came up with the PoC first.

    "At least they used to."

    You clearly don't use OBSD and haven't for years, so quit pretending you know how they work and being some basis of how they used to work, because your impression is false; they've never had the attitude you give them. They fix bugs first and write secure code from the get-go with a pretty small team and resources. They don't go doomsday on every bug revealed or write exploits as a matter of course.

    "Now they are like /everyone/ else, deny deny deny,"

    Where did they deny? They questioned, had their own arguments, didn't see the proble, saw their misyake, and immediately fixed and bacported it...

    " till they get egg shoved in their face." ...and announced it on THE FRONT OF THEIR HOME PAGE FOR ALL TO SEE. From openbsd.org:

        "Only two remote holes in the default install, in more than 10 years!"

    "And in fact it may be this type of internal behavior that has led to the existance of this bug in the first place. Rather than giving them a pass, they should be crucified for this. They need to be reminded that they cannot go slack or their entire reason for being will evaporate."

    Seems pretty clear to me you're on OpenBSD hater and non-user.

    Crucified for 2 errors in a decade, one being in IPv6 code whe most of the world is IPv4?

    Their entire reason will evaporate, when most of the developers want to write good, secure code, come up with secure solutions, with security in an OS as part of the emphasis, the other being open source for all to use and open documentation?

    Frankly, you're a damn, misinformed, assuming nut.

This is an unauthorized cybernetic announcement.

Working...