search menu icon-carat-right cmu-wordmark

CERT Coordination Center

Sun Solaris telnet authentication bypass vulnerability

Vulnerability Note VU#881872

Original Release Date: 2007-02-12 | Last Revised: 2008-07-21

Overview

A vulnerability in the Sun Solaris telnet daemon (in.telnetd) could allow a remote attacker to log on to the system with elevated privileges.

Description

The Sun Solaris telnet daemon may accept authentication information via the USER environment variable. However, the daemon does not properly sanitize this information before passing it to the login program, and login makes unsafe assumptions about the information. This may allow a remote attacker to trivially bypass the telnet and login authentication mechanisms. In some default configurations of Solaris this vulnerability cannot be exploited to gain access to the root account, but it can be used to gain privileges of other accounts, such as adm and lp.

According to Sun, Solaris 10 (SunOS 5.10) and Solaris "Nevada" (SunOS 5.11) are affected by this issue. More information is available in Sun Alert Notification 102802 and in Alan Hargreaves' blog, here and here.

This vulnerability is being exploited by a worm, for more information see the Security Sun Alert Feed and Technical Alert TA07-059A.

Impact

A remote attacker could log on to a vulnerable system via telnet and gain elevated privileges.

Solution

Apply a patch
Apply the patches referenced in Sun Alert Notification 102802.


Disable telnet

Disable telnet if it's not needed. Telnet can be disabled by issuing the following command:

    # svcadm disable telnet
Restrict access

You may wish to block access to the vulnerable software from outside your network perimeter, specifically by blocking access to the ports used by Sun Solaris telnet (typically 23/tcp). This will limit your exposure to attacks.

Prefer SSH over telnet

SSH provides a comparatively more secure method for remotely logging into a system than telnet. As general advice, we recommend using SSH rather than telnet.

Vendor Information

881872
 
Affected   Unknown   Unaffected

Sun Microsystems, Inc.

Notified:  February 12, 2007 Updated:  February 16, 2007

Status

  Vulnerable

Vendor Statement

No statement is currently available from the vendor regarding this vulnerability.

Vendor Information

The vendor has not provided us with any further information regarding this vulnerability.

Addendum

Please see Sun Alert Notification 102802.

If you have feedback, comments, or additional information about this vulnerability, please send us email.


CVSS Metrics

Group Score Vector
Base N/A N/A
Temporal N/A N/A
Environmental N/A

References

Credit

This vulnerability was reported by Kingcope.

This document was written by Art Manion and Chris Taschner.

Other Information

CVE IDs: CVE-2007-0882
Severity Metric: 67.50
Date Public: 2007-02-10
Date First Published: 2007-02-12
Date Last Updated: 2008-07-21 18:13 UTC
Document Revision: 75

Sponsored by the Department of Homeland Security Office of Cybersecurity and Communications.