CentOS 3 : rsh (CESA-2005:074)

medium Nessus Plugin ID 21796

Synopsis

The remote CentOS host is missing one or more security updates.

Description

Updated rsh packages that fix various bugs and a theoretical security issue are now available.

This update has been rated as having low security impact by the Red Hat Security Response Team

The rsh package contains a set of programs that allow users to run commands on remote machines, login to other machines, and copy files between machines, using the rsh, rlogin, and rcp commands. All three of these commands use rhosts-style authentication.

The rcp protocol allows a server to instruct a client to write to arbitrary files outside of the current directory. This could potentially cause a security issue if a user uses rcp to copy files from a malicious server. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CVE-2004-0175 to this issue.

These updated packages also address the following bugs :

The rexec command failed with 'Invalid Argument', because the code used sigaction() as an unsupported signal.

The rlogind server reported 'SIGCHLD set to SIG_IGN but calls wait()' message to the system log because the original BSD code was ported incorrectly to linux.

The rexecd server did not function on systems where client hostnames were not in the DNS service, because server code called gethostbyaddr() for each new connection.

The rcp command incorrectly used the 'errno' variable and produced erroneous error messages.

The rexecd command ignored settings in the /etc/security/limits file, because the PAM session was incorrectly initialized.

The rexec command prompted for username and password regardless of the ~/.netrc configuration file contents. This updated package contains a patch that no longer skips the ~/.netrc file.

All users of rsh should upgrade to these updated packages, which resolve these issues.

Solution

Update the affected rsh packages.

See Also

http://www.nessus.org/u?035a9f34

http://www.nessus.org/u?31f88127

http://www.nessus.org/u?1ec086a5

http://www.nessus.org/u?83900f9b

http://www.nessus.org/u?c384a982

Plugin Details

Severity: Medium

ID: 21796

File Name: centos_RHSA-2005-074.nasl

Version: 1.21

Type: local

Agent: unix

Published: 7/3/2006

Updated: 1/4/2021

Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Azure, Frictionless Assessment Agent, Agentless Assessment, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.6

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Vector: CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N

Vulnerability Information

CPE: p-cpe:/a:centos:centos:rsh, p-cpe:/a:centos:centos:rsh-server, cpe:/o:centos:centos:3

Required KB Items: Host/local_checks_enabled, Host/CentOS/release, Host/CentOS/rpm-list

Patch Publication Date: 5/18/2005

Vulnerability Publication Date: 8/18/2004

Reference Information

CVE: CVE-2004-0175

CWE: 22

RHSA: 2005:074