Bugtraq mailing list archives
Re: Samba 3.x + kernel 2.6.x local root vulnerability
From: Seth Arnold <sarnold () wirex com>
Date: Mon, 9 Feb 2004 14:03:47 -0800
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/
Attachment:
_bin
Description:
Current thread:
- Samba 3.x + kernel 2.6.x local root vulnerability Michal Medvecky (Feb 09)
- Re: Samba 3.x + kernel 2.6.x local root vulnerability Michael Kjorling (Feb 09)
- Re: Samba 3.x + kernel 2.6.x local root vulnerability Seth Arnold (Feb 09)
- Re: Samba 3.x + kernel 2.6.x local root vulnerability Patrick J. Volkerding (Feb 09)
- Re: Samba 3.x + kernel 2.6.x local root vulnerability Frank Louwers (Feb 11)
- Re: Samba 3.x + kernel 2.6.x local root vulnerability Urban Widmark (Feb 12)
- Re: Samba 3.x + kernel 2.6.x local root vulnerability Darren Reed (Feb 13)
- Message not available
- Message not available
- Re: Samba 3.x + kernel 2.6.x local root vulnerability Guille -bisho- (Feb 10)
- Message not available
- Re: Samba 3.x + kernel 2.6.x local root vulnerability Felipe Franciosi (Feb 11)
- <Possible follow-ups>
- RE: Samba 3.x + kernel 2.6.x local root vulnerability John . Airey (Feb 11)