Files executed through a mail aliases file must be owned by root and must reside within a directory owned and writable only by root.

From SUSE Linux Enterprise Server v11 for System z Security Technical Implementation Guide

Part of GEN004400

Associated with: CCI-000225

SV-45851r1_rule Files executed through a mail aliases file must be owned by root and must reside within a directory owned and writable only by root.

Vulnerability discussion

If a file executed through a mail aliases file is not owned and writable only by root, it may be subject to unauthorized modification. Unauthorized modification of files executed through aliases may allow unauthorized users to attain root privileges.

Check content

Verify the ownership of files referenced within the sendmail aliases file. Procedure: # more /etc/aliases Examine the aliases file for any utilized directories or paths. # ls -lL Check the owner for any paths referenced. Check if the file or parent directory is owned by root. If not, this is a finding.

Fix text

Edit the /etc/aliases file (alternatively, /usr/lib/sendmail.cf). Locate the entries executing a program. They will appear similar to the following line: Aliasname: : /usr/local/bin/ls (or some other program name) Ensure root owns the programs and the directory(ies) they reside in by using the chown command to change owner to root. Procedure: # chown root

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