BugTraq
Samba 3.x + kernel 2.6.x local root vulnerability Feb 09 2004 09:23PM
Michal Medvecky (M Medvecky sh cvut cz) (3 replies)
Re: Samba 3.x + kernel 2.6.x local root vulnerability Feb 10 2004 12:07AM
Felipe Franciosi (ozzybugt terra com br)
Re: Samba 3.x + kernel 2.6.x local root vulnerability Feb 09 2004 10:24PM
Michael Kjorling (michael kjorling com)
Re: Samba 3.x + kernel 2.6.x local root vulnerability Feb 09 2004 10:03PM
Seth Arnold (sarnold wirex com) (2 replies)
On Mon, Feb 09, 2004 at 10:23:03PM +0100, Michal Medvecky wrote:
> Confirmed to work on all 2.6.x kernels, not confirmed on 2.4.x.

I haven't got a clue what you're trying to accomplish. If you don't want
a setuid execute, DON'T RUN chmod +s! You don't even need samba to
accomplish this:

$ cat > a.c <<EOF
> main()
> {
> setuid(0);
> setgid(0);
> system("/bin/bash");
> }
> EOF
$ make a
cc a.c -o a
$ sudo chown root:root a
Password:
$ sudo chmod +s a
$ ./a
$ id
uid=0(root) gid=0(root) groups=500(sarnold)
$ exit

I expect this behaviour out of every Linux, BSD, commercial Unix,
Windows NT with POSIX emulation, QNX, etc. (For the curious, this was
run on Linux 2.4.21-9.EL_imnx_2smp.)

Can you please explain what specifically bothers you?

Thanks :)

--
Immunix Secured Linux Distribution: http://immunix.org/

[ reply ]
Re: Samba 3.x + kernel 2.6.x local root vulnerability Feb 10 2004 07:42AM
Frank Louwers (frank openminds be) (2 replies)
Re: Samba 3.x + kernel 2.6.x local root vulnerability Feb 12 2004 12:50AM
Darren Reed (avalon caligula anu edu au)
Re: Samba 3.x + kernel 2.6.x local root vulnerability Feb 11 2004 09:42PM
Urban Widmark (urban teststation com)
Re: Samba 3.x + kernel 2.6.x local root vulnerability Feb 09 2004 11:07PM
Patrick J. Volkerding (security slackware com)


 

Privacy Statement
Copyright 2010, SecurityFocus