Rule ID
SV-240438r671055_rule
Version
V2R2
CCIs
If a file executed through a mail alias file has permissions greater than 0755, it can be modified by an unauthorized user and may contain malicious code or instructions that could compromise the system.
Examine the contents of the /etc/aliases file: # more /etc/aliases Examine the aliases file for any directories or paths that may be used: # ls -lL <file referenced from aliases> Check the permissions for any paths referenced. If any file referenced from the aliases file has a mode more permissive than "0755", this is a finding.
Use the "chmod" command to change the access permissions for files executed from the alias file: # chmod 0755 <file referenced from aliases>