3.6.1.13 Ignore user-provided environment variables

Information

The PermitUserEnvironment option allows users to present environment options to the ssh daemon.

Rationale:

Permitting users the ability to set environment variables through the SSH daemon could potentially allow users to bypass security controls (e.g. setting an execution path that has ssh executing trojan'd programs)

Solution

Edit the/etc/ssh/sshd_config file:

vi /etc/ssh/sshd_config

Set:

PermitUserEnvironment no

Re-cycle the sshd daemon to pick up the configuration changes:

stopsrc -s sshd
startsrc -s sshd

See Also

https://workbench.cisecurity.org/files/4119

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b.

Plugin: Unix

Control ID: 91ac4a85fb1a4133a4a49baf9916e70aa19c2e31bd52b31412bd94c5aaf980ff