5.4.6 Ensure users must provide password for escalation

Information

The operating system must be configured so that users must provide a password for privilege escalation.

Rationale:

Without re-authentication, 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 re-authenticate.

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:

# vim /etc/sudoers

Remove any occurrences of NOPASSWD tags in the file.
Check the configuration of the /etc/sudoers.d/* files with the following command to get the list:

# grep -i nopasswd /etc/sudoers.d/*

Edit the list of files using this command:

# vim /etc/sudoers.d/path_of_file

Remove any occurrences of NOPASSWD tags in the file.

Notes:

This Benchmark recommendation maps to:

Red Hat Enterprise Linux 7 Security Technical Implementation Guide:

Version 2, Release: 3 Benchmark Date: 26 Apr 2019



Vul ID: V-71947

Rule ID: SV-86571r3_rule

STIG ID: RHEL-07-010340

Severity: CAT II

See Also

https://workbench.cisecurity.org/files/2688

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-3(7)

Plugin: Unix

Control ID: 0fe61761f48bea68b3b56e6e534cfef480e3369e89f4df9d8379d1dcc37aa857