Slashdot Log In
Remote Exploit Discovered for OpenBSD
Posted by
samzenpus
on Thu Mar 15, 2007 12:13 AM
from the patch-it-up dept.
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
|
Log In/Create an Account
| Top
| 338 comments
| Search Discussion
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
WHOA WTF (Score:2, Funny)
(Last Journal: Thursday October 02 2003, @03:46PM)
Re:WHOA WTF (Score:4, Interesting)
When was the last time a remote root exploit was found in the Linux kernel?
There (probably) was one in November 2004 (Score:4, Interesting)
Time to make a list... (Score:5, Funny)
-The Pope died
-Mac got Intel chips
-The Berlin Wall came down
-I out-lived 4 cats
-Man walked on the moon
-I got laid
and...
-BSD had a hole
Re:Time to make a list... (Score:5, Funny)
(http://ufy.sourceforge.net/)
Re:WHOA WTF (Score:4, Informative)
(http://slashdot.org/)
They didn't simply dismiss it. They fixed the bug. At that point the question of how severe the vulnerability is only affects how critical getting the patch for the bug is. Being security conscious, they don't want to push out a patch without sufficient testing -- possibly causing new vulnerabilities -- unless they have to. When shown that the issue was in fact a remote exploit, they did not dismiss the issue then either, they upgraded the status of the issue and marked the patch as urgent.
All of this is perfectly consistent with security consciousness.
A team which does not take security seriously would have denied that there was a bug at all, would not have the fix, and would have found a way to claim that despite being shown exploit code for a remote vulnerability, it wasn't in fact a big deal. But that isn't what happened.
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.
It is foolish to think that because all humans make mistakes, all humans make the same number and severity of mistakes, and have the same methods of identifying and correcting mistakes. For the same reason, it is foolish to think that because all software has bugs, that all software is equally buggy and the bugs are of equal severity. It is the attention payed to security, the methodologies of writing secure code, that help prevent bugs and make code that is truly inherently more secure.
OpenBSD gets a lot of scrutiny in the security world exactly for the reason that people deploy it because of its security. It may be a smaller attack vector due to market share, and due to it being harder to crack than what your typical army of script kiddies can handle. This does not mean it is not thoroughly poked and prodded by experts, nor does it mean that inherently superior security is an illusion.
Re:WHOA WTF (Score:4, Funny)
(http://www.paulmischler.com/)
Heh (Score:5, Funny)
(http://cosmicinteractive.com/)
Locally Exploitable: No
That right there is the biggest slap in the face! Everyone should have the freedom to fux0r their own machine!
Opensource my ass...
Well done, the OpenBSD team. (Score:5, Insightful)
Re:Well done, the OpenBSD team. (Score:4, Insightful)
Re:Well done, the OpenBSD team. (Score:5, Insightful)
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.
Re:Well done, the OpenBSD team. (Score:5, Insightful)
(http://honeypot.net/ | Last Journal: Friday April 07 2006, @09:33AM)
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:Well done, the OpenBSD team. (Score:5, Funny)
(http://web.lemuria.org/)
Ok, make that "more intentional remote access"...
Re:Well done, the OpenBSD team. (Score:5, Insightful)
Re:Well done, the OpenBSD team. (Score:5, Informative)
(http://theravensnest.org/ | Last Journal: Sunday October 07, @07:05AM)
- The kernel contains a lot of exploit mitigation stuff, that may well turn an arbitrary code execution into a DoS.
- OpenBSD doesn't actually include Sendmail or Apache, it includes forks of both. These are heavily audited by the OpenBSD guys, and not all of the changes are merged upstream.
When a new category of bug is found in OpenBSD, the entire tree is searched for occurrences of it. This often means that seemingly innocuous changes in something like OpenBSD's httpd turn out to have fixed things that are later found to be security holes.Re:Well done, the OpenBSD team. (Score:5, Funny)
Not really, since this has nothing to do with Linux. It's OpenBSD, not Linux.
Re:Well done, the OpenBSD team. (Score:5, Insightful)
(http://theravensnest.org/ | Last Journal: Sunday October 07, @07:05AM)
It's a feature (Score:4, Funny)
(Last Journal: Thursday June 07, @02:55PM)
I think they just found the Windows2003 Server Emulator.
Re:It's a feature (Score:5, Informative)
Some amusing interchanges b/t OpenBSD and CoreLabs (Score:2, Interesting)
* 2007-02-20: Acknowledgement of first notification received from the OpenBSD team.
* 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-02-26: OpenBSD team communicates that the issue is specific to OpenBSD. OpenBSD no longer uses the term "vulnerability" when referring to bugs that lead to a remote denial of service attack, as opposed to bugs that lead to remote control of vulnerable systems to avoid oversimplifying ("pablumfication") the use of the term.
* 2007-02-26: Core email sent to OpenBSD team explaining that Core considers a remote denial of service a security issue and therefore does use the term "vulnerability" to refer to it and that although remote code execution could not be proved in this specific case, the possibility should not be discarded. Core requests details about the bug and if possible an analysis of why the OpenBSD team may or may not consider the bug exploitable for remote code execution.
* 2007-02-28: OpenBSD team indicates that the bug results in corruption of mbuf chains and that only IPv6 code uses that mbuf code, there is no user data in the mbuf header fields that become corrupted and it would be surprising to be able to run arbitrary code using a bug so deep in the mbuf code. The bug simply leads to corruption of the mbuf chain.
* 2007-03-05: Core develops proof of concept code that demonstrates remote code execution in the kernel context by exploiting the mbuf overflow.
* 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-08: Core sends final draft advisory to OpenBSD requesting comments and official vendor fix/patch information.
* * 2007-03-09: OpenBSD team changes notice on the project's website to "security fix" and indicates that Core's advisory should reflect the requirement of IPv6 connectivity for a successful attack from outside of the local network.
* 2007-03-12: Advisory updates with fix and workaround information and with IPv6 connectivity comments from OpenBSD team. The "vendors contacted" section of the advisory is adjusted to reflect more accurately the nature of the communications with the OpenBSD team regarding this issue.
* 2007-03-12: Workaround recommendations revisited. It is not yet conclusive that the "scrub in inet6" directive will prevent exploitation. It effectively stops the bug from triggering according to Core's tests but OpenBSD's source code inspection does not provide a clear understanding of why that happens. It could just be that the attack traffic is malformed in some other way that is not meaningful for exploiting the vulnerability (an error in the exploit code rather than an effective workaround?). The "scrub" workaround recommendation is removed from the advisory as precaution.
* 2007-03-13: Core releases this advisory.
Got owned, OpenBSD?
Advisory Timeline (Score:4, Interesting)
(http://insecure.org/)
I'm a bit surprised that the summary didn't mention the rather interesting timeline in the Core advisory [seclists.org], which implies an attempted cover up. I don't know all the facts, so I'll let the document speak for itself:
-Fyodor
Insecure.Org [insecure.org]
Re:Advisory Timeline (Score:5, Interesting)
(Last Journal: Monday October 15, @11:53PM)
Cover up? The OpenBSD team believed it was only a remote DoS vulnerability until proof of concept code was provided, and re-labeled it as such immediately.
What part seems suspicious to you?
Re:Advisory Timeline (Score:4, Informative)
(http://www.chriswareham.net/)
A remote kernel panic is a reliability issue - you can't exploit a paniced system! The OpenBSD team couldn't see a way to exploit the issue, Core subsequently proved that a panic could be avoided and exploit code executed, at which time it was upgraded to a security issue by the OpenBSD team. No conspiracy necessary.
Re:Advisory Timeline (Score:4, Insightful)
(http://blog.jrock.us/ | Last Journal: Sunday October 10 2004, @04:11AM)
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.
They've earned a mulligan, I think (Score:4, Insightful)
(http://peacefinder.net/ | Last Journal: Wednesday October 24, @04:06PM)
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.
Re:Advisory Timeline (Score:5, Informative)
(http://insecure.org/)
That could be. And don't get me wrong -- I'm a big OpenBSD fan and even have one of their posters framed and hanging in my home. But I think they could have handled this better. Given that security is their main selling point, I'd like to see the OpenBSD guys treat all buffer overflows as potentially exploitable. In this case, 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. The problem with requiring a working exploit from bug reporters is that most of them lack the ability or inclination (or both) to produce one. This bug just happened to be reported by some of the best exploit writers in the world.
Also, even if the bug did only allow anyone to cause remote kernel panic on your OpenBSD firewall or server with a single packet, that is still a security vulnerability. They can call it a DoS vulnerability if they are sure one cannot lead to code execution.
-Fyodor [insecure.org]
Re:Advisory Timeline (Score:4, Insightful)
(http://theravensnest.org/ | Last Journal: Sunday October 07, @07:05AM)
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...
Obligatory (Score:1, Funny)
Update the firewall? (Score:1)
Doesn't matter how good a C programmer you are (Score:2, Interesting)
I know, those who don't understand what I'm talking about will leap in and say, "Java has to run in a JVM and what language is the JVM written in? Ha! It's in C (or assembler) so it can still have buffer overflows!" This is so naive. First, the JVM runs Java code, which has no memory access. It does not run untrusted code handed to it over the net. Second, and most important, it is a very small piece of code with a rigorous definition of what it should do. It's possible to verify a small, rarely-changing bit of C code with a rigorous specification. It's not really possible to verify correctness of a huge constantly-changing C codebase, like the OpenBSD kernel and system utilities.
Anyway, trying to have a huge secure codebase in C is an exercise in futility, as OpenBSD has shown. Relative to other operating systems, OpenBSD is small and feature-poor. And their dev team must be among the best in the world for eliminating these types of bugs. And yet they still get bitten by them.
Re:Doesn't matter how good a C programmer you are (Score:4, Interesting)
(http://www2.hawaii.edu/~crippen | Last Journal: Monday March 29 2004, @03:22PM)
Also, it's less efficient to simply use one heap for everything. Instead, an OS kernel written in a language with automatic memory management usually maintains large blocks of memory for the various tasks to work in, like an area for packet construction, an area for I/O buffers, etc. The automatic allocator and GC are told which area to work in, and then create or delete stuff in that area as needed.
So no, it's not generally reasonable to implement the lower levels of any OS with automatic memory management. You're free to try, though.
Barely "remote" (Score:5, Informative)
(http://drew.intercarve.net/)
Re:Barely "remote" (Score:5, Informative)
(Last Journal: Wednesday March 09 2005, @03:04AM)
So nobody from the net can crack your machine, they must already me on your local net. This greatly reduces the scope of this attack.
OpenBSD - now TWICE as insecure (Score:3, Funny)
Holy Cow, an OpenBSD Vuln? (Score:5, Funny)
who the hell.. (Score:1, Insightful)
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!]).
I loved how core was... (Score:1)
pablumfication (Score:3, Interesting)
OpenBSD Website (Score:5, Informative)
Only two remote holes in the default install, in more than 10 years!
At least they don't hide it.
Needless sensationalism (Score:1)
More popular than you thought (Score:2)
(http://slashdot.org/)
If only.... (Score:1, Troll)
(http://what-was-lost.blogspot.com/ | Last Journal: Tuesday May 04 2004, @09:56PM)
Fixed in OpenBSD 4.1 (Score:3, Interesting)
(http://00f.net/)
Can we now please stop using C? (Score:3)
Can we please stop using C?
http://it.slashdot.org/comments.pl?sid=224594&cid
Re:Can we now please stop using C? (Score:5, Informative)
(http://libtom.org/)
C++ ? Out of the question. Too many hidden operations make development a nightmare.
Java? Are you even kiddin me? (yes, I know there are Java OSes, how those working out for you?)
C#?..
ooh ooh I know, Perl!!!
If you want to reduce your bugs [in any language] simple steps
1. Design code that you can verify and test
2. Write modular code
3. Re-use code as much as possible
In this case, it seems the mbuf pointer gets changed before it's accessed later in the function. If they had tracked the life of that variable they would have spotted it. That type of error could have happened in any language.