Bugtraq mailing list archives

Re: safe logging xterm


From: adam () bwh harvard edu (Adam Shostack)
Date: Tue, 14 Mar 1995 16:46:16 -0500 (EST)


Margarita Suarez wrote:

| we have modified xterm to make use of the POSIX saved id where possible;
| otherwise, it uses setreuid() to switch back and forth between user and
| superuser.  we provide enable() and disable() functions which swap the
| euid and ruid so that the running xterm can give up root and take it
| back.

| can anyone see a problem with this fix?

Yes, it leaves setuid on a program that is way too large.  Xterm tends
to be setuid so it can write to utmp.  Thats a bad reason to make a
large program setuid.

Adam



Current thread: