Research > Zero-Day Tracker > 20070212
Sun Solaris Telnet Bypass
A login bypass vulnerability exists within the Telnet daemon of Sun Solaris 10 and 11. This vulnerability allows an attacker to remotely login as a privileged user (i.e. 'root') if the telnet daemon is running with root privileges on the targeted host. The vulnerability exists because the Solaris Telnet service does not scrub the switches before passing the login name to the login process. Login will then auto-login the user specified following the '-f' switch, as demonstrated by the referenced proof of concept.
Anonymous Login as Privileged User
This vulnerability allows for a remote attacker to anonymously login as any privileged user (including root) into a Solaris 10/11 host running the telnet daemon as root. This allows for rapid system compromise without any user interaction.
eEye Research suggests that customers disable Telnet on all Solaris 10/11 hosts and switch to SSH instead.
Command to disable telnet: svcadm disable telnet
Another mitigation technique is to restrict telnet access to only those users who can provide valid authentication information.
Command: inetadm -m svc:/network/telnet:default exec="usr/sbin/in.telnetd -a user"
eEye's Retina® Network Security Scanner scans devices to detect for this vulnerability.
Sun Alert ID: 102802
ISC Diary - "Another Good Reason to Stop Using Telnet"
First Public PoC Code Disclosure (Remote Bypass)
2/12/2007: Advisory Posted
2/14/2007: Patch Released
Copyright ©1998-2011 eEye Digital Security
Permission is hereby granted for the redistribution of this alert electronically. It is not to be edited in any way without express consent of eEye. If you wish to reprint the whole or any part of this alert in any other medium excluding electronic medium, please email alert@eEye.com for permission.
The information within this paper may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are no warranties, implied or express, with regard to this information. In no event shall the author be liable for any direct or indirect damages whatsoever arising out of or in connection with the use or spread of this information. Any use of this information is at the user's own risk.