SV-269433r1137695_rule
V-269433
SRG-OS-000138-GPOS-00069
ALMA-09-042260
CAT II
10
Configure all world-writable directories to have the sticky bit set to prevent unauthorized and unintended information transferred via shared system resources.
Set the sticky bit on all world-writable directories using the command, replace "[World-Writable Directory]" with any directory path missing the sticky bit:
$ chmod a+t [World-Writable Directory]
Verify that all world-writable directories have the sticky bit set.
Determine if all world-writable directories have the sticky bit set by running the following command:
$ find / -type d \( -perm -0002 -a ! -perm -1000 \) -exec ls -ld {} \;
drwxrwxrwt 7 root root 4096 Jul 26 11:19 /tmp
If any of the returned directories are world-writable and do not have the sticky bit set (trailing "t"), this is a finding.
V-269433
False
ALMA-09-042260
Verify that all world-writable directories have the sticky bit set.
Determine if all world-writable directories have the sticky bit set by running the following command:
$ find / -type d \( -perm -0002 -a ! -perm -1000 \) -exec ls -ld {} \;
drwxrwxrwt 7 root root 4096 Jul 26 11:19 /tmp
If any of the returned directories are world-writable and do not have the sticky bit set (trailing "t"), this is a finding.
M
5664