OL08-00-010384 - OL 8 must require reauthentication when using the 'sudo' command.

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 organization requires the user to reauthenticate when using the 'sudo' command.

If the value is set to an integer less than 0, the user's time stamp will not expire and the user will not have to reauthenticate for privileged actions until the user's session is terminated.

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

Solution

Configure the 'sudo' command to require re-authentication.

Edit the /etc/sudoers file:
$ sudo visudo

Add or modify the following line:
Defaults timestamp_timeout=[value]

Note: The '[value]' must be a number that is greater than or equal to '0'.

Remove any duplicate or conflicting lines from /etc/sudoers and /etc/sudoers.d/ files.

See Also

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

Item Details

Category: IDENTIFICATION AND AUTHENTICATION

References: 800-53|IA-11, CAT|II, CCI|CCI-002038, CCI|CCI-004895, Rule-ID|SV-248585r1015036_rule, STIG-ID|OL08-00-010384, Vuln-ID|V-248585

Plugin: Unix

Control ID: de45cb6873b230e33ef0e7fdf5f0b49222058ea36509496ac4bc4f17bd25a5fd