2003-03-20 14:06:51

by Christoph Baumann

[permalink] [raw]
Subject: ptrace patch

FYI:
The ptrace patch at
http://www.hardrock.org/kernel/2.4.20/linux-2.4.20-ptrace.patch does not
seem to work.
I tried the exploit at http://sinuspl.net/ptrace/isec-ptrace-kmod-exploit.c
on a machine running the patched kernel and it still brought up a root
shell.


Mit freundlichen Gruessen / Best regards
Dipl.-Phys. Christoph Baumann
---
SORCUS Computer GmbH
Im Breitspiel 11 c
D-69126 Heidelberg

Tel.: +49(0)6221/3206-0
Fax: +49(0)6221/3206-66


2003-03-20 14:22:28

by Tomas Szepe

[permalink] [raw]
Subject: re: ptrace patch

> [[email protected]]
>
> FYI:
> The ptrace patch at
> http://www.hardrock.org/kernel/2.4.20/linux-2.4.20-ptrace.patch does not
> seem to work.
> I tried the exploit at http://sinuspl.net/ptrace/isec-ptrace-kmod-exploit.c
> on a machine running the patched kernel and it still brought up a root
> shell.

Your post is a hoax. Check your binary for +s.

--
Tomas Szepe <[email protected]>

2003-03-20 14:35:00

by James Bourne

[permalink] [raw]
Subject: Re: ptrace patch

On Thu, 20 Mar 2003, Christoph Baumann wrote:

> FYI:
> The ptrace patch at
> http://www.hardrock.org/kernel/2.4.20/linux-2.4.20-ptrace.patch does not
> seem to work.
> I tried the exploit at http://sinuspl.net/ptrace/isec-ptrace-kmod-exploit.c
> on a machine running the patched kernel and it still brought up a root
> shell.

Hi,
Here is a test:

bash$ md5sum isec-ptrace-kmod-exploit.c
f3a5c17bf8d207d3f4828020d1bcfa0a isec-ptrace-kmod-exploit.c
bash$ make isec-ptrace-kmod-exploit
cc isec-ptrace-kmod-exploit.c -o isec-ptrace-kmod-exploit
bash$ ./isec-ptrace-kmod-exploit
[-] Unable to attach: Operation not permitted
Killed
bash$ id
uid=151(myusername)
gid=151(myusername)
groups=151(mygrpname)
bash$ uname -a
Linux myhostname 2.4.20-9-PE2650-6650 #1 SMP Mon Mar 17 11:22:15 MST 2003 i686 unknown
bash$

Thankfully it does work.

Check your binary for suid root.

Regards,
James Bourne

>
>
> Mit freundlichen Gruessen / Best regards
> Dipl.-Phys. Christoph Baumann
> ---
> SORCUS Computer GmbH
> Im Breitspiel 11 c
> D-69126 Heidelberg
>
> Tel.: +49(0)6221/3206-0
> Fax: +49(0)6221/3206-66
>
> -
> 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/
>

--
James Bourne, Supervisor Data Centre Operations
Mount Royal College, Calgary, AB, CA
http://www.mtroyal.ab.ca

******************************************************************************
This communication is intended for the use of the recipient to which it is
addressed, and may contain confidential, personal, and or privileged
information. Please contact the sender immediately if you are not the
intended recipient of this communication, and do not copy, distribute, or
take action relying on it. Any communication received in error, or
subsequent reply, should be deleted or destroyed.
******************************************************************************


"There are only 10 types of people in this world: those who
understand binary and those who don't."

2003-03-20 14:47:56

by Christoph Baumann

[permalink] [raw]
Subject: Re: ptrace patch

Oh, stupid me! Of course it makes suid root.

/me is banging his head against the monitor...

Mit freundlichen Gruessen / Best regards
Dipl.-Phys. Christoph Baumann
---
SORCUS Computer GmbH
Im Breitspiel 11 c
D-69126 Heidelberg

Tel.: +49(0)6221/3206-0
Fax: +49(0)6221/3206-66