Thursday, June 22. 2006setuid() madnessTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
I wouldn't call it a new class of attacks. People have known about this before. there used to be some codepath in the linux kernel which also allowed this (this was a couple of years so), it has since been changed, this got mentioned in david wheelers secure programming for linux and unix HOWTO.
The whole thing basicly comes down to checking returnvalues in general. If posix says something can fail, then assume it can, no matter what a specific unix kernel does. another nice example here is the close() systemcall. posix says it can be interrupted by a signal. Most unices don't implement this, but they could! Incase some unix does this, it could basicly lead to fd leaks. Which could in turn lead to DoS'es (filing up the fd table for a process or even the whole os), fd leaks in suids (which could very well turn into a local root bug, for example, what if some suid that opens /etc/passwd read write leaks that fd to a process it spawns), or potentially fd_set overflows. |
Calendar
QuicksearchArchivesCategoriesBlog Administration |
|||||||||||||||||||||||||||||||||||||||||||||||||