5.2.4 Ensure users must provide password for escalation

Information

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

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.

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

Solution

Based on the outcome of the audit procedure, use visudo -f <PATH TO FILE> to edit the relevant sudoers file.

Remove any line with occurrences of NOPASSWD tags in the file.

Impact:

This will prevent automated processes from being able to elevate privileges.

See Also

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

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-6, 800-53|AC-6(2), 800-53|AC-6(5), CSCv7|4.3, Rule-ID|SV-230271r854026_rule, Vuln-ID|V-230271

Plugin: Unix

Control ID: cd31723f9d0e4764f1191043374cfdb7bfb7ae2c7c2b50c00cc5ecafcb0b6b03