Check: GEN003020
HP-UX 11.31 STIG:
GEN003020
(in versions v1 r19 through v1 r13)
Title
Cron must not execute programs in, or subordinate to, world-writable directories. (Cat II impact)
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 -lL /var/spool/cron/crontabs If cron jobs exist under any of the above directories, search for programs executed by cron: Procedure: # more <cron job file> Determine if the directory containing programs executed from cron is world-writable. Procedure: # ls -lLd <cron program directory> 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 <cron program directory>
Additional Identifiers
Rule ID: SV-38544r1_rule
Vulnerability ID: V-977
Group Title: GEN003020
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000225 |
Employ the principle of least privilege, allowing only authorized accesses for users (or processes acting on behalf of users) which are necessary to accomplish assigned organizational tasks. |
Controls
Number | Title |
---|---|
AC-6 |
Least Privilege |