Re: [patch 7/8] fdmap v2 - implement sys_socket2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jun 08, 2007 at 07:10:03PM -0700, Ulrich Drepper wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Al Viro wrote:
> > Any real-world examples of exploitable holes based on that?
> 
> Return to libc exploit, calling dup2, where some privileged data is
> redirected from the normal file descriptor to one of the attackers
> choosing.  The latter could be an outgoing socket connection which would
> result in leaking the data to the outside.
> 
>          normal code                         intruder
> 
>                                           so = socket()
> 
>     fd = open ("local-file")
> 
>                                           dup2(so, fd);
> 
>     write (fd, privileged data)
> 
> 
> It's just a little function call.  If the arguments of dup2() are known
> this is not a big issue to construct.

So which code is supposed to do that open/write in your example?  Library?
Unmodified application?  Application specifically modified to make *that*
open() randomized?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux