Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 22 Mar 2013 15:46:56 -0500
From: John Lightsey <john@...nuts.net>
To: oss-security@...ts.openwall.com
Subject: Re: CVE request: mod_ruid2 before 0.9.8

On 03/22/2013 03:36 PM, Kurt Seifried wrote:
> On 03/22/2013 09:08 AM, John Lightsey wrote:

>> In versions of mod_ruid2 before 0.9.8, the filedescriptor used to
>> break out of the chroot is inherited by all Apache subprocesses.
>> This allows CGI scripts to also to break out of the chroot by
>> performing a fchdir() across the inherited file descriptor.
> 
> 
>> http://sourceforge.net/mailarchive/forum.php?thread_name=514C503E.4020109%40users.sourceforge.net&forum_name=mod-ruid-announce
> 
> Can
> 
> you provide a link to the source code fix? thanks.
> 

https://github.com/mind04/mod-ruid2/commit/1fed9dda70cd44d54301df19730a29ae0989e0a2

The key part of the fix is the block at line 366:

} else if (fcntl(root_handle, F_SETFD, FD_CLOEXEC) < 0) {
...


Download attachment "signature.asc" of type "application/pgp-signature" (901 bytes)

Powered by blists - more mailing lists

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.