Check: UBTU-16-010790
Canonical Ubuntu STIG:
UBTU-16-010790
(in versions v1 r2 through v1 r1)
Title
Local initialization files must not execute world-writable programs. (Cat II impact)
Discussion
If user start-up files execute world-writable programs, especially in unprotected directories, they could be maliciously modified to destroy user files or otherwise compromise the system at the user level. If the system is compromised at the user level, it is easier to elevate privileges to eventually compromise the system at the root and network level.
Check Content
Verify that local initialization files do not execute world-writable programs. Check the system for world-writable files with the following command: # sudo find / -perm -002 -type f -exec ls -ld {} \; | more For all files listed, check for their presence in the local initialization files with the following commands: Note: The example will be for a system that is configured to create users’ home directories in the "/home" directory. # grep <file> /home/*/.* If any local initialization files are found to reference world-writable files, this is a finding.
Fix Text
Set the mode on files being executed by the local initialization files with the following command: # chmod 0755 <file>
Additional Identifiers
Rule ID: SV-90253r1_rule
Vulnerability ID: V-75573
Group Title:
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000366 |
The organization implements the security configuration settings. |
Controls
Number | Title |
---|---|
CM-6 |
Configuration Settings |