Several FreeBSD-3.3 vulnerabilities have been found (seyon, xmindpath)
3 Dec. 1999
Summary
Vulnerabilities in the 'seyon' and 'xmindpath' utilities can be used by attackers to gain elevate privileges.
Each of the programs was installed with the default permissions given when unpacked with sysinstall.
These permissions are:
-rwxr-sr-x 1 bin dialer 88480 Sep 11 00:55 /usr/X11R6/bin/seyon
-rwsr-xr-x 1 uucp bin 7780 Sep 11 05:15 /usr/X11R6/bin/xmindpath
Note that these programs may be installed on other systems with different permissions as a result of a version change or a different packing scheme.
Credit:
The information has been provided by: Brock Tellier.
To summarize: Seyon was not meant to run with additional privileges. There are numerous problems with seyon and probably not all of them were found. Those that were found are:
Buffer Overflows:
1. $HOME
2. seyon -emulator $BUF
3. seyon -modems $BUF
4. Many long text box input string overflows while in program
Input Validation:
1. seyon will search $PATH for "xterm" and "seyon-emu" and exec with fullprivs (as noted in previous advisory)
2. seyon -emulator /program/to/execute/with/full/privs
These privileges might be upgradeable to root if you are able to:
a. Trojan a dialer-writeable file
b. Use a symlink attack to clobber .rhosts or similar
c. Snoop device i/o.
Vulnerability #2 xmindpath
/usr/X11R6/bin/xmindpath (suid uucp by default), contains a buffer overflow that will allow any user to gain uucp privs.
Simply enough: xmindpath -f $BUF Exploits:
The Seyon exploit
seyon -emulator /program/to/execute
Note that you'll have to execute a program that will ignore the args that seyon passes to it automatically as shown: