All shell files must not have extended ACLs.

From Oracle Linux 5 Security Technical Implementation Guide

Part of GEN002230

Associated with: CCI-000225

SV-63017r1_rule All shell files must not have extended ACLs.

Vulnerability discussion

Shells with world/group write permissions give the ability to maliciously modify the shell to obtain unauthorized access.

Check content

If /etc/shells exists, check the permissions of each shell referenced. # cat /etc/shells | xargs -n1 ls -lL Otherwise, check any shells found on the system. # find / -name "*sh" | xargs -n1 ls -lL If the permissions include a '+', the file has an extended ACL. If the file has an extended ACL and it has not been documented with the IAO, this is a finding.

Fix text

Remove the extended ACL from the file. # setfacl --remove-all [shell]

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