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.

Rationale:

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.

NOTE: Nessus has provided the target output to assist in reviewing the benchmark to ensure target compliance.

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/files/3636

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CCI|CCI-000366, CSCv7|14.6, Rule-ID|SV-204480r603838_rule, STIG-ID|RHEL-07-021000

Plugin: Unix

Control ID: 351a27c3a4aa45d1bf28e25e9afae46f010f51abe93808dc34f49abfec4f36d9