4.4.1.5 Ensure NFS exports use allow lists

Information

Only allow explicitly defined host access to NFS exported filesystems and directories.

The NFS server should be configured to only allow explicitly defined hosts to mount filesystems from the server. If an unauthorized host is denied the permission to mount a filesystem, then the unauthorized users on that host will not be able to access the server's files.

The default value of access allows any machine to mount any exported filesystems/directories.

Solution

Ensure that all exports defined in /etc/exports have explicit client access options which clearly define the host or hosts allowed access: Review the content of /etc/exports and that all exports have explicit access lists:

showmount -e | grep "(everyone)"

Ensure that each NFS export has an explicit access line, for example, modify:

/export/repo (everyone)

to:

/export/repo x071
- The option -c is used to specify clients permitted access:

chnfsexp -d /export/repo -c x071

See Also

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

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: 2fed0c8d01b660a53b56ba4116b98ebbaf812d7a3cdaa58377e7b9b0e06493c4