1.66 OL08-00-010380

Information

OL 8 must require users to provide a password for privilege escalation.

GROUP ID: V-248581
RULE ID: SV-248581r1050789

Without reauthentication, users may access resources or perform tasks for which they do not have authorization.

When operating systems provide the capability to escalate a functional capability, it is critical the user reauthenticate.

Satisfies: SRG-OS-000373-GPOS-00156, SRG-OS-000373-GPOS-00157, SRG-OS-000373-GPOS-00158

Solution

Configure the operating system to require users to supply a password for privilege escalation.

Check the configuration of the "/etc/sudoers" file with the following command:

$ sudo visudo

Remove any occurrences of "NOPASSWD" tags in the file.

Check the configuration of the /etc/sudoers.d/* files with the following command:

$ sudo grep -ir nopasswd /etc/sudoers.d

Remove any occurrences of "NOPASSWD" tags in the file.

See Also

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