Re: init scripts and su

2004-08-25 Thread Jan Minar
Hi all! Has anyone made any progress in solving the su/sudo/super TIOCSTI ioctl vulnerability? -- Jan pgpAFoEO7DWgl.pgp Description: PGP signature

Re: init scripts and su

2004-08-01 Thread Jan Minar
msg.pgp Description: PGP message

Re: init scripts and su

2004-08-01 Thread Andrew Pimlott
On Sun, Aug 01, 2004 at 08:24:29PM +0200, Jan Minar wrote: On Wed, Jul 28, 2004 at 04:54:35AM -0400, Andrew Pimlott wrote: I verified that if I su - andrew bash as root, then andrew can write to root's terminal, even after bash exits (just hold the fd open). Did You use

su/sudo arbitrary character injection in keyboard buffer [Was: init scripts and su]

2004-07-31 Thread Jan Minar
Hi. I've filed bugs against su (package `login') sudo. I've made a simple proof-of-concept program (attached). Despite of what has been said earlier, it can ioctl(0,TIOCSTI,c), even after fork(). It's important to realize that the actual mechanism of making the ioctl()s happen is not as

Re: init scripts and su

2004-07-28 Thread Russell Coker
On Tue, 27 Jul 2004 07:48, Andrew Pimlott [EMAIL PROTECTED] wrote: During the time between the daemon launch and it closing it's file handles and calling setsid(2) (which some daemons don't do because they are buggy) any other code running in the same UID could take over the process via

Re: init scripts and su

2004-07-28 Thread Andrew Pimlott
On Wed, Jul 28, 2004 at 04:56:20PM +1000, Russell Coker wrote: On Tue, 27 Jul 2004 07:48, Andrew Pimlott [EMAIL PROTECTED] wrote: If this is a real problem (which it sounds like), it's not specific to init scripts. Shouldn't it be fixed in su? Ideally yes. But that involves proxying all

Re: init scripts and su

2004-07-28 Thread Giacomo A. Catenazzi
Russell Coker wrote: On Tue, 27 Jul 2004 07:48, Andrew Pimlott [EMAIL PROTECTED] wrote: Maybe your changes should happen in su by default, with a --leak-tty option if you want to keep the terminal. I can't imagine us changing the way su works by default. The only way to make su user not have

Re: init scripts and su

2004-07-26 Thread Andrew Pimlott
On Mon, Jul 26, 2004 at 02:53:56PM +1000, Russell Coker wrote: The start scripts for some daemons do su - user or use start-stop-daemon -c to launch the daemon, postgresql is one example. During the time between the daemon launch and it closing it's file handles and calling setsid(2) (which

init scripts and su

2004-07-25 Thread Russell Coker
The start scripts for some daemons do su - user or use start-stop-daemon -c to launch the daemon, postgresql is one example. During the time between the daemon launch and it closing it's file handles and calling setsid(2) (which some daemons don't do because they are buggy) any other code