RHEL-08-010380 - RHEL 8 must require users to provide a password for privilege escalation.

Information

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://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RHEL_8_V1R7_STIG.zip

Item Details

References: CAT|II, CCI|CCI-002038, Rule-ID|SV-230271r833301_rule, STIG-ID|RHEL-08-010380, Vuln-ID|V-230271

Plugin: Unix

Control ID: 87d010e076ffd8397f8b151470e66bc7a3e036a467f4130d1c7d0c21b3390a5c