The rlogin command of multiple Unix vendor contains a flaw that may allow a remote attacker to bypass authentication settings. The issue is triggered when using the '-froot' parameter, which allows a remote attacker to gain root access on a system without being prompted for a password resulting in a loss of integrity.
Classification
Location:
Local / Remote
Attack Type:
Input Manipulation
Impact:
Loss of Integrity
Solution:
Patch
Exploit:
Exploit Available
Disclosure:
OSVDB Verified,
Discovered in the Wild
Technical
The flaw is a result of the way login parses its arguments as passed by rlogind. The problem is that login parses the command line option -fUSER as -f USER when using the getopt() function with the 'f:' opt string. An unauthenticated user can gain root access through rlogin by simply specifying '-froot' as a remote loginname which will be interpreted by rlogin as '-f root'.
Solution
Contact your vendor for an appropriate patch. It is also possible to correct the flaw by implementing the following workaround: comment out the 'rlogin' line in /etc/inetd.conf and restart the inetd process.
This was reported on a very limited Linux Kernel 0.9x distribution and actively exploited at the time. However, no one seems to have documented the exact version or release (Slackware maybe?).