All .rhosts, .shosts, or host.equiv files must only contain trusted host-user pairs.

From HP-UX 11.31 Security Technical Implementation Guide

Part of GEN002020

Associated with IA controls: ECCD-2, ECCD-1

Associated with: CCI-000366

SV-38438r1_rule All .rhosts, .shosts, or host.equiv files must only contain trusted host-user pairs.

Vulnerability discussion

If these files are not properly configured, they could allow malicious access by unknown malicious users from untrusted hosts who could compromise the system.

Check content

Locate and examine all .rhosts, .shosts, hosts.equiv, and shosts.equiv files. Procedure: # find / -name .rhosts # more //.rhosts # find / -name .shosts # more //.shosts # find / -name hosts.equiv # more //hosts.equiv # find / -name shosts.equiv # more //shosts.equiv If any .rhosts, .shosts, hosts.equiv, or shosts.equiv file contains anything other than host-user pairs, this is a finding.

Fix text

Locate and examine all .rhosts, .shosts, hosts.equiv, and shosts.equiv files. Procedure: # find / -name .rhosts # more //.rhosts # find / -name .shosts # more //.shosts # find / -name hosts.equiv # more //hosts.equiv # find / -name shosts.equiv # more //shosts.equiv If any .rhosts, .shosts, hosts.equiv, or shosts.equiv file contains anything other than host-user pairs, this is a finding.

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