OL07-00-010342 - The Oracle Linux operating system must use the invoking user's password for privilege escalation when using 'sudo' - sudo.

Information

The sudoers security policy requires that users authenticate themselves before they can use sudo. When sudoers requires authentication, it validates the invoking user's credentials. If the rootpw, targetpw, or runaspw flags are defined and not disabled, by default the operating system will prompt the invoking user for the 'root' user password.
For more information on each of the listed configurations, reference the sudoers(5) manual page.

Solution

Define the following in the Defaults section of the /etc/sudoers file or a configuration file in the /etc/sudoers.d/ directory:
Defaults !targetpw
Defaults !rootpw
Defaults !runaspw

Remove any configurations that conflict with the above from the following locations:
/etc/sudoers
/etc/sudoers.d/

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Oracle_Linux_7_V3R1_STIG.zip

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-6(5), CAT|II, CCI|CCI-002227, Rule-ID|SV-237628r991589_rule, STIG-ID|OL07-00-010342, Vuln-ID|V-237628

Plugin: Unix

Control ID: 2827bc6983d16c64acb0717b19f3b8e987abbb01e9cf69535f4163b70321e59e