Hash: SHA1

             AUSCERT External Security Bulletin Redistribution

                        ESB-2007.0139 -- [Solaris]
                          Sun Solaris Telnet Worm
                               1 March 2007


        AusCERT Security Bulletin Summary

Product:              in.telnetd
Publisher:            US-CERT
Operating System:     Solaris 10
Impact:               Root Compromise
Access:               Remote/Unauthenticated
CVE Names:            CVE-2007-0882

Ref:                  AA-2007.0006

Original Bulletin:    http://www.us-cert.gov/cas/techalerts/TA07-059A.html

Comment: This worm targets the vulnerability reported previously
         in AusCERT advisory AA-2007.0006.
         AusCERT has not observed a large volume of telnet
         scan sources within Australia at this point.

- --------------------------BEGIN INCLUDED TEXT--------------------

Hash: SHA1

                     National Cyber Alert System

               Technical Cyber Security Alert TA07-059A

Sun Solaris Telnet Worm

   Original release date: February 28, 2007
   Last revised: --
   Source: US-CERT

Systems Affected

     * Sun Solaris 10 (SunOS 5.10)
     * Sun "Nevada" (SunOS 5.11)

   Both SPARC and Intel (x86) architectures are affected.


   A worm is exploiting a vulnerability (VU#881872) in the Sun Solaris
   telnet daemon (in.telnetd).

I. Description

   A worm is exploiting a vulnerability in the telnet daemon
   (in.telnetd) on unpatched Sun Solaris systems. The vulnerability
   allows the worm (or any attacker) to log in via telnet (23/tcp)
   with elevated privileges. Further details about the vulnerability
   are available in Vulnerability Note VU#881872 (CVE-2007-0882).

   Because VU#881872 is trivial to exploit and sufficient technical
   detail is publicly available, any attacker, not just this worm,
   could exploit vulnerable systems.

   Characteristics of the worm include, but are not limited to:
     * Exploiting VU#881872 to log in via telnet as the users adm or lp
     * Changing permissions on /var/adm/wtmpx to -rw-r--rw-
     * Creating the directory .adm in /var/adm/sa/
     * Adding .profile files to /var/adm/ and /var/spool/lp/
     * Installing an authenticated backdoor shell on port 32982/tcp
     * Modifying crontab entries for the users adm and lp
     * Scanning for other hosts running telnet (23/tcp)

   Sun has published information about the worm in the Security Sun
   Alert Feed including an inoculation script that disables the telnet
   daemon and reverses known changes made by the worm.

II. Impact

   VU#881872 allows remote attacker to log on to a vulnerable system
   via telnet and gain elevated privileges. The worm exploits this
   vulnerability to compromise systems as described above. Since the
   worm installs a backdoor shell, it is possible for an attacker with
   knowledge of the authentication tokens to access a compromised
   system and take any action with the privileges of the backdoor
   shell process, likely adm or lp.

III. Solution

Apply a patch

   To address VU#881872, apply the appropriate patches referenced in
   Sun Alert Notification 102802.

Run inoculation script

   To recover compromised systems, Sun has provided an inoculation script
   that disables the telnet daemon and reverses known changes made by the

   Note that the inoculation script only recovers from this particular
   worm. Running the inoculation script does not guarantee system
   integrity. A vulnerable system may be compromised in different ways
   by attackers exploiting VU#881872 or using the backdoor installed
   by the worm. To fully recover, it may be necessary to rebuild a
   compromised system using trusted software sources. For more
   information, see Recovering from an Incident.

IV. Workarounds

   Until the appropriate patches can be applied, consider the
   following workarounds.

Disable telnet

   Telnet can be disabled by issuing the following command as root:

     # /usr/sbin/svcadm disable telnet

Restrict telnet access

   Restrict access to telnet (23/tcp) from untrusted networks such as
   the Internet.

Use SSH instead of 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.

V. References

     * US-CERT Vulnerability Note VU#881872 -

     * Recovering from an Incident -

     * Sun Alert Notification 102802 -

     * Solaris in.telnetd worm seen in the wild + inoculation script -

     * inoculate.local -

     * CVE-2007-0882 -


   The most recent version of this document can be found at:


   Feedback can be directed to US-CERT Technical Staff. Please send
   email to <cert@cert.org> with "TA07-059A Feedback VU#881872" in the

   For instructions on subscribing to or unsubscribing from this
   mailing list, visit <http://www.us-cert.gov/cas/signup.html>.

   Produced 2007 by US-CERT, a government organization.

   Terms of use:


Revision History

   February 28, 2007: Initial release

Version: GnuPG v1.2.1 (GNU/Linux)


- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:


If you believe that your computer system has been compromised or attacked in 
any way, we encourage you to let us know by completing the secure National IT 
Incident Reporting Form at:


Australian Computer Emergency Response Team
The University of Queensland
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.

Comment: http://www.auscert.org.au/render.html?it=1967