The SSH daemon must ignore .rhosts files.

From Red Hat Enterprise Linux 6 Security Technical Implementation Guide

Part of SRG-OS-000106

Associated with: CCI-000766

SV-50412r1_rule The SSH daemon must ignore .rhosts files.

Vulnerability discussion

SSH trust relationships mean a compromise on one host can allow an attacker to move trivially to other hosts.

Check content

To determine how the SSH daemon's "IgnoreRhosts" option is set, run the following command: # grep -i IgnoreRhosts /etc/ssh/sshd_config If no line, a commented line, or a line indicating the value "yes" is returned, then the required value is set. If the required value is not set, this is a finding.

Fix text

SSH can emulate the behavior of the obsolete rsh command in allowing users to enable insecure access to their accounts via ".rhosts" files. To ensure this behavior is disabled, add or correct the following line in "/etc/ssh/sshd_config": IgnoreRhosts yes

Pro Tips

Lavender hyperlinks in small type off to the right (of CSS class id, if you view the page source) point to globally unique URIs for each document and item. Copy the link location and paste anywhere you need to talk unambiguously about these things.

You can obtain data about documents and items in other formats. Simply provide an HTTP header Accept: text/turtle or Accept: application/rdf+xml.

Powered by sagemincer