[Forgot Password]
Login  Register Subscribe

30480

 
 

423868

 
 

253928

 
 

909

 
 

198006

 
 

282

Paid content will be excluded from the download.


Download | Alert*
CCE
view XML

CCE-99427-7

Platform: cpe:/o:amazon:linux:2Date: (C)2023-03-07   (M)2023-07-14



Description: The .rhosts file specifies an email address to forward the users mail to. Rationale: Use of this file is only meaningful if .rhosts support is permitted in the file /etc/pam.conf . Even though the .rhosts files are ineffective if support is disabled in /etc/pam.conf , they may have been brought over from other systems and could contain information useful to an attacker for those other systems. Audit: Run the following script and verify no results are returned: #!/bin/bash grep -E -v ^(root|halt|sync|shutdown) /etc/passwd | awk -F: ($7 != ""$(which nologin)"" && $7 != "/bin/false") { print $1 " " $6 } | while read user dir; do if [ ! -d "$dir" ]; then echo "The home directory ($dir) of user $user does not exist." else if [ ! -h "$dir/.d" -a -f "$dir/.rhosts" ]; then echo ".rhosts file $dir/.rhosts exists" fi fi done Remediation: Making global modifications to users' files without alerting the user community can result in unexpected outages and unhappy users. Therefore, it is recommended that a monitoring policy be established to report user .rhosts files and determine the action to be taken in accordance with site policy. Notes: On some distributions the /sbin/nologin should be replaced with /usr/sbin/nologin.


Parameter:

[yes/no]


Technical Mechanism:

Making global modifications to users files without alerting the user community can result in unexpected outages and unhappy users.Therefore, it is recommended that a monitoring policy be established to report user .forward files and determine the action to be taken in accordance with site policy.

CCSS Severity:CCSS Metrics:
CCSS Score : 9.4Attack Vector: NETWORK
Exploit Score: 3.9Attack Complexity: LOW
Impact Score: 5.5Privileges Required: NONE
Severity: CRITICALUser Interaction: NONE
Vector: AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:LScope: UNCHANGED
 Confidentiality: HIGH
 Integrity: HIGH
 Availability: LOW
  

References:
Resource IdReference
SCAP Repo OVAL Definitionoval:org.secpod.oval:def:87846


OVAL    1
oval:org.secpod.oval:def:87846
XCCDF    1
xccdf_org.secpod_benchmark_general_Amazon_Linux_2

© SecPod Technologies