1.1.19 Ensure nosuid is set on users' home directories.

Information

The operating system must be configured so that file systems containing user home directories are mounted to prevent files with the setuid and setgid bit set from being executed.

The nosuid mount option causes the system to not execute setuid and setgid files with owner privileges. This option must be used for mounting any file system not containing approved setuid and setguid files. Executing files from untrusted file systems increases the opportunity for unprivileged users to attain unauthorized administrative access.

Solution

Configure the /etc/fstab to use the nosuid option on file systems that contain user home directories.

Example: vim /etc/fstab

Update any of the file systems listed without the nosuid option"

UUID=a411dc99-f2a1-4c87-9e05-184977be8539 /home ext4 rw,relatime,discard,data=ordered,nosuid 0 2

See Also

https://workbench.cisecurity.org/benchmarks/8415

Item Details

Category: ACCESS CONTROL, MEDIA PROTECTION

References: 800-53|AC-3, 800-53|AC-5, 800-53|AC-6, 800-53|MP-2, CSCv7|14.6

Plugin: Unix

Control ID: f087208ca5d1af81fb1c66a5f2acae9061448658a2124a852fe84fe7e1a72e4a