Slashdot Log In
Cambridge Researcher Breaks OpenBSD Systrace
Posted by
kdawson
on Thu Aug 09, 2007 09:19 AM
from the without-a-trace dept.
from the without-a-trace dept.
An anonymous reader writes "University of Cambridge researcher Robert Watson has published a paper at the First USENIX Workshop On Offensive Technology in which he describes serious vulnerabilities in OpenBSD's Systrace, Sudo, Sysjail, the TIS GSWTK framework, and CerbNG. The technique is also effective against many commercially available anti-virus systems. His slides include sample exploit code that bypasses access control, virtualization, and intrusion detection in under 20 lines of C code consisting solely of memcpy() and fork(). Sysjail has now withdrawn their software, recommending against any use, and NetBSD has disabled Systrace by default in their upcoming release."
Related Stories
Firehose:OpenBSD's Systrace broken by Cambridge researcher by Anonymous Coward
This discussion has been archived.
No new comments can be posted.
Cambridge Researcher Breaks OpenBSD Systrace
|
Log In/Create an Account
| Top
| 194 comments
| Search Discussion
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.

SELinux and the same ... (Score:5, Informative)
(http://t3.dotgnu.info/ | Last Journal: Monday September 26 2005, @06:32AM)
James Morris has put up an analysis [livejournal.com] of the same vulnerabilities.
And pushing the system code down into lower echelons of execution (i.e kernel), the way SELinux does it, is a valid fix.
Re:SELinux and the same ... (Score:5, Insightful)
Linux?` (Score:3, Insightful)
(http://stylus-toolbox.sf.net/ | Last Journal: Tuesday May 15, @11:50AM)
Re:Linux? (Score:5, Informative)
(http://www.theinternetisboring.net/)
Re:Linux? (Score:4, Interesting)
(It's a straight forward time-of-use vs. time-of-check attack. And we were at least partially aware of it when we wrote GSWTK. The problem is that the original system calls require memory in the processes space, so you can't just copy in the string after you validate it to keep the process from changing it. I wrote some methods for Linux that allocated extra pages in the processes memory space so we could copy in the string, but that just makes the attack harder via obscurity. It doesn't address the fundamental issue at all.)
Since NetBSD seems to be affected as well... (Score:1)
Re:I'm not worried (Score:5, Funny)
(http://www.kickthebobo.com/erotech/index.html | Last Journal: Friday October 26, @11:51AM)
Re:I'm not worried (Score:4, Funny)
No need for alarm! (Score:5, Funny)
Re:No need for alarm! (Score:5, Funny)
All twelve of them. :)
I like the thought of openbsd, though, having never used it. I'm sure everything will be fine.
Re:No need for alarm! (Score:5, Funny)
(http://peacefinder.net/ | Last Journal: Wednesday October 24, @04:06PM)
We yell really loud.
(And I actually yelled "Wow!". We're not a homogenous lot.)
why give much of a crap (Score:3, Informative)
Re:why give much of a crap (Score:5, Insightful)
(http://www.alioth.net/ | Last Journal: Friday November 09, @03:53PM)
If you allow scripting on your server, then you've essentially given your users shell access, anyway.
OpenBSD Security (Score:4, Funny)
As long as I'm dreaming, I also want a pony.
No released version of sudo affected (Score:5, Informative)
(http://www.courtesan.com/todd/)
- todd
Code isn't up (thank goodness) (Score:2)
(http://www.voiceofthehive.com/)
Ha Ha (Score:5, Funny)
$#%#^&&!#$@$
[CONNNECTION LOST]
Brace for impact... (Score:5, Funny)
"cambrige researcher"... (Score:4, Informative)
Article? (Score:1)
problem affects a variety of software (Score:1, Informative)
This is exactly why I love OpenBSD! (Score:5, Insightful)
(http://www.iphone.org/ | Last Journal: Friday September 07, @01:31PM)
Am I missing something? (Score:1, Redundant)
Isn't it well known that you should not validate some data that the user might still be able to modify? That's security 101.
What's the problem with copying parameters to some memory space that the user can't reach, like the system heap? Surely moving a few bytes isn't going to be a big performance hit, compared to the time it takes to validate parameters.
OpenBSD's man page for systrace mentions this? (Score:5, Informative)
(http://op59.net/)
OpenBSD's systrace manpage appears to mention this problem in the BUGS section:
Or see http://www.openbsd.org/cgi-bin/man.cgi?query=systr ace&apropos=0&sektion=0&manpath=OpenBSD+Current&ar ch=i386&format=html [openbsd.org]
m0n0wall /pfsense? (Score:2)
The quick explanation (Score:1, Informative)
If you validate and trust the user buffer, a second thread sharing the same address space can change the buffer between the two steps, leading to trusting invalid data, which leads to Bad Things.
But some applications are trying to "wrap" system calls, validating the parameters before letting the system call proceed, and they're running into the same problems. It's more of a challenge for a wrapper, because there's no "safe" place to copy the parameters to.
In any case, this is not a kernel vulnerability, but an overoptimistic application vulnerability.
OpenBSD record: Good (Score:2, Insightful)
This race bug was known for ages. It's even hinted in the man page. Stop the FUD.
Sysjail is really just one guy (Score:3, Informative)
Don't use dev tools as security tools... (Score:2)
(http://anti-trend.org/ | Last Journal: Saturday November 18 2006, @07:06PM)
Undeadly coverage (Score:4, Informative)
Coverage on Undeadly [undeadly.org].
To answer some anti-OpenBSD bias from the summary above: systrace is really Niels Provos toy, OpenBSD just includes it in the base install just as NetBSD does; regarding sudo, it has been addressed in a comment above (not vulnerable in the actual released version); and by saying that NetBSD has disabled systrace that implies that OpenBSD has it still enabled. Except that it is a tool that isn't used by the default install at all - you have to enable and configure it yourself. And as the Undeadly post states: Since 2002, the systrace(1) man page included a warning in the BUGS section about the possibility of escaping the policy enforcement because of the behavior of certain system calls..
Personally I have never liked the idea of systrace - leaves way to much to to me as a system administrator to fuck up.
Systrace.org post on this alleged bug (Score:2, Informative)
Re:so much for... (Score:1)
Re:so much for... (Score:5, Funny)
(http://www.mrnaz.com/)
Re:so much for... (Score:5, Informative)
And it still only has had two remote holes in the default install in more than 10 years. This isn't a remotely exploitable hole, it allows privilege escalation, which requires access to the system and thus is a local hole. It's still a whopper of a hole though...
Re:so much for... (Score:5, Funny)
In other words... it's in your list of the 5 best OSS projects.
(sorry)
Re:fix shedules ? (Score:4, Informative)
Well, the fix for now appears to be don't use the vulnerable software, but considering that the vulnerability allows you to break the software such that it behaves as if it wasn't running, I have to wonder if people should use it anyway and just accept that for now anyone that knows how can bypass that particular security check. Also, if it was something simple like a buffer overrun that would be trivial to patch, but because of the way this particular vulnerability functions (concurrency attack) there's not simple solution. Some have suggested pushing the code to kernel space, but as they've also pointed out, that's rather risky in its own regard. Short of some kind of provision in the kernel to prevent the attacks I'm not sure how this could be fixed (although I haven't seen to many details, just that it involves re-writing some args after they've already been scanned by systrace).
Re:fix shedules ? (Score:4, Informative)
(Last Journal: Saturday February 25 2006, @11:02PM)
Re:Why??? (Score:5, Interesting)
Because the fastest way to learn about something is to break it. Why do you think physicists spend all that time and money on particle accelerators?
Re:no (Score:2, Insightful)
Guess you get what you deserve when you put a machine on the internet.
Sure it is only an unprivileged local user, what could you do with that.
Oh, wait. You could get root if you had a local user using an other exploit.
Re:no (Score:5, Funny)
Re:no (Score:2)
(Last Journal: Monday November 28 2005, @12:21PM)
Re:no (Score:3)
While we're disabling any form of shell access for any reason whatsoever, why not stop all those HTTP servers as well and the SMTP, DNS and all that crap as well. After all anybody who dares expose such a system on the internet when history tells us that there will be new vulnerabilities found in those software is obliviously an idiot.
Re:What should individual users do (Score:2)
Rumours of *BSD Death Premature (Score:1)
The rumours of the death of *BSD systems are overblown and premature. The so called facts from the above "anonymous coward" are not facts at all but simply an opinion expressed by someone with an agenda.
If you don't use *BSD why would you care if it's living or dying? Why would you care if it's increasing in market share or declining?
The "anonymous cowards" opinions are irrelevant and likely incorrect anyhow. OpenBSD, NetBSD and FreeBSD are viable systems that have user communities that use them. It's not relevant how large those communities are.
In fact the so called Linux community isn't one community after all since there are reportedly over 300 distributions of systems that use the Linux kernel. So it's really *Linux and each of those distributions would break down to similar small groupings of users.
If your system works for you use it. If it doesn't, then adapt it or choose one that is better suited.
Re:How vulnerable are Java apps, and why? (Score:2)
(http://scorch.quickfox.org/)
And before anyone mentions, no, I'm not interested on benchmarks done on multicore, 12GB RAM machines.
Re:The beauty of open source (Score:2)
The advantage is that users are ABLE to find things like security problems if they look, because the source is open. That doesn't guarantee they will find things, but you can see that it is at least possible.
Re:The beauty of open source (Score:1)
(Last Journal: Friday October 19, @09:21PM)