GEN005528-ESXI5-000106 - The SSH daemon must not accept environment variables from the client or must only accept those pertaining to locale.

Information

Environment variables can be used to change the behavior of remote sessions and should be limited. Locale environment variables that specify the language, character set, and other features modifying the operation of software to match the user's preferences.

NOTE: Nessus has not performed this check. Please review the benchmark to ensure target compliance.

Solution

Disable lock down mode. Enable the ESXi Shell. Execute the following command(s):
# vi /etc/ssh/sshd_config

Add/modify the attribute line entry to the following (quotes for emphasis only):
'AcceptEnv LOCALE'
or
'AcceptEnv'

Re-enable lock down mode.

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Group-ID|V-39266, Rule-ID|SV-250597r798790_rule, STIG-ID|GEN005528-ESXI5-000106, STIG-Legacy|SV-51082, STIG-Legacy|V-39266, Vuln-ID|V-250597

Plugin: VMware

Control ID: 16c0029b638a784434ee227d09642b67e326a7d41db8975e3bf384c673d89c9b