KCMS Configure, a tool that is used to configure an X11 window system for use with the KCMS library, is vulnerable to a buffer overflow. Since this tool is also SUID root, this enables a malicious user to gain root access to the local machine.
A Solaris root exploit for /usr/openwin/bin/kcms_configure follows:
------------
/**
*** kcmsex - i386 Solaris root exploit for /usr/openwin/bin/kcms_configure
***
*** Tested and confirmed under Solaris 2.6 i386
***
*** Usage: % kcmsex [offset]
***
*** where offset (if present) is the number of bytes to add to the stack
*** pointer to calculate your target return address; try -1000 to 1000 in
*** increments of 100 for starters. Thanks go to Sun for cranking out
*** such sloppy privileged code. Keep those holes a coming, boys!
***
*** Cheez Whiz
*** cheezbeast@hotmail.com
***
*** December 17, 1998
**/