Cron must not execute programs in, or subordinate to, world-writable directories.

From Oracle Linux 5 Security Technical Implementation Guide

Part of GEN003020

Associated with: CCI-000225

SV-64403r1_rule Cron must not execute programs in, or subordinate to, world-writable directories.

Vulnerability discussion

If cron programs are located in or subordinate to world-writable directories, they become vulnerable to removal and replacement by malicious users or system intruders.

Check content

List all cronjobs on the system. Procedure: # ls /var/spool/cron # ls /etc/cron.d /etc/crontab /etc/cron.daily /etc/cron.hourly /etc/cron.monthly /etc/cron.weekly or # ls /etc/cron*|grep -v deny If cron jobs exist under any of the above directories, use the following command to search for programs executed by at: # more Perform a long listing of each directory containing program files found in the cron file to determine if the directory is world-writable. # ls -ld If cron executes programs in world-writable directories, this is a finding.

Fix text

Remove the world-writable permission from the cron program directories identified. Procedure: # chmod o-w

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