UCF STIG Viewer Logo

The /etc/hosts file must not have an extended ACL.


Overview

Finding ID Version Rule ID IA Controls Severity
V-22326 GEN001369 SV-26414r1_rule ECLP-1 Medium
Description
The /etc/hosts file (or equivalent) configures local host name to IP address mappings typically taking precedence over DNS resolution. If this file is maliciously modified, it could cause the failure or compromise of security functions requiring name resolution, which may include time synchronization, centralized authentication, and remote system logging.
STIG Date
SOLARIS 9 SPARC SECURITY TECHNICAL IMPLEMENTATION GUIDE 2015-10-01

Details

Check Text ( C-27495r2_chk )
Verify /etc/hosts has no extended ACL.
# ls -lL /etc/hosts
If the permissions include a "+", the file has an extended ACL and this is a finding.
Fix Text (F-23601r1_fix)
Remove the extended ACL from the file.
# getfacl /etc/hosts
Remove each ACE returned.
# setfacl -d [ACE] /etc/hosts