[33552] in bugtraq
Re: Samba 3.x + kernel 2.6.x local root vulnerability
daemon@ATHENA.MIT.EDU (Seth Arnold)
Mon Feb 9 22:06:15 2004
Date: Mon, 9 Feb 2004 14:03:47 -0800
From: Seth Arnold <sarnold@wirex.com>
To: bugtraq@securityfocus.com
Message-ID: <20040209220347.GH17237@wirex.com>
Mail-Followup-To: bugtraq@securityfocus.com
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; boundary="VkVuOCYP9O7H3CXI"
Content-Disposition: inline
In-Reply-To: <20040209212303.GD18775@slovakia.sh.cvut.cz>
--VkVuOCYP9O7H3CXI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
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=3D0(root) gid=3D0(root) groups=3D500(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 :)
--=20
Immunix Secured Linux Distribution: http://immunix.org/
--VkVuOCYP9O7H3CXI
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQFAKAPC+9nuM9mwoJkRAuXgAJ95xtmQfIUgO6o2gq8LWOoAbDc4ZQCgq6i8
C5rD/r4MdHNDsqrA7PN2WrM=
=vD12
-----END PGP SIGNATURE-----
--VkVuOCYP9O7H3CXI--