Vulnerability Note VU#569272

System V derived login contains a remotely exploitable buffer overflow

Original Release date: 12 Dec 2001 | Last revised: 11 Apr 2002

Overview

A remotely exploitable buffer overflow exists in implementations of login, derived from System V. An attacker can use this vulnerability to gain the privileges of the process that invoked login, user root in the cases of in.telnetd, or in.rlogind. We have been able to determine that several vendors are affected.

Description

Implementations of login, derived from System V, use a fixed-size buffer to store environment and argument variables that are received from other programs. This buffer can be overflowed by inputing numerous variables. An attacker can use this vulnerability to gain the privileges of the process that invoked login. If an attacker with a local shell invokes login directly, they can only gain the privileges of the shell they already have. However, if the attacker can invoke login via a suid root program, such as the in.telnetd or in.rlogind daemons, they can gain the privileges of the invoking suid program, typically root. And of course, because in.telnetd and in.rlogind are available over the network, an attacker without any previous access to the system could use this vulnerability to gain root access directly.

An exploit exists and may be circulating.

Impact

A remote intruder can gain a root shell.

Solution

Apply a patch when one becomes available. If patches are not available for your version, upgrade to a supported version and apply all patches.

Disable telnet, rlogin, and other programs that use login for authentication. Use programs that use SSH instead and do not use login by default.

Systems Affected (Learn More)

VendorStatusDate NotifiedDate Updated
CiscoAffected-11 Apr 2002
Hewlett PackardAffected24 Oct 200119 Dec 2001
IBMAffected24 Oct 200121 Dec 2001
SCOAffected24 Oct 200114 Dec 2001
SGIAffected-18 Dec 2001
SunAffected-17 Dec 2001
AppleNot Affected24 Oct 200125 Oct 2001
BSDINot Affected-12 Nov 2001
CalderaNot Affected24 Oct 200125 Oct 2001
Compaq Computer CorporationNot Affected-12 Nov 2001
CrayNot Affected-12 Nov 2001
MandrakeSoftNot Affected24 Oct 200112 Dec 2001
NetBSDNot Affected-12 Nov 2001
Red HatNot Affected24 Oct 200124 Oct 2001
NCRUnknown-07 Jan 2002
If you are a vendor and your product is affected, let us know.

CVSS Metrics (Learn More)

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

References

Credit

Our thanks to Mark Dowd and ISS for the report and information contained in their advisory and to Sun Microsystems for their help in identifing the location of the vulnerability.

This document was written by Jason Rafail.

Other Information

  • CVE IDs: Unknown
  • CERT Advisory: CA-2001-34
  • Date Public: 12 Dec 2001
  • Date First Published: 12 Dec 2001
  • Date Last Updated: 11 Apr 2002
  • Severity Metric: 18.00
  • Document Revision: 36

Feedback

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