search menu icon-carat-right cmu-wordmark

CERT Coordination Center

System V derived login contains a remotely exploitable buffer overflow

Vulnerability Note VU#569272

Original Release Date: 2001-12-12 | Last Revised: 2002-04-11

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.

Vendor Information

569272
 

View all 15 vendors View less vendors


CVSS Metrics

Group Score Vector
Base
Temporal
Environmental

References

Acknowledgements

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: CVE-2001-0797
CERT Advisory: CA-2001-34
Severity Metric: 18.00
Date Public: 2001-12-12
Date First Published: 2001-12-12
Date Last Updated: 2002-04-11 18:03 UTC
Document Revision: 38

Sponsored by CISA.