Check: RHEL-07-010460
Red Hat Enterprise Linux 7 STIG:
RHEL-07-010460
(in versions v3 r14 through v1 r1)
Title
The Red Hat Enterprise Linux operating system must not allow users to override SSH environment variables. (Cat II impact)
Discussion
Failure to restrict system access to authenticated users negatively impacts operating system security.
Check Content
Verify the operating system does not allow users to override environment variables to the SSH daemon. Check for the value of the "PermitUserEnvironment" keyword with the following command: # grep -i permituserenvironment /etc/ssh/sshd_config PermitUserEnvironment no If the "PermitUserEnvironment" keyword is not set to "no", is missing, or is commented out, this is a finding.
Fix Text
Configure the operating system to not allow users to override environment variables to the SSH daemon. Edit the "/etc/ssh/sshd_config" file to uncomment or add the line for "PermitUserEnvironment" keyword and set the value to "no": PermitUserEnvironment no The SSH service must be restarted for changes to take effect.
Additional Identifiers
Rule ID: SV-204434r877377_rule
Vulnerability ID: V-204434
Group Title: SRG-OS-000480-GPOS-00229
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000366 |
The organization implements the security configuration settings. |
Controls
Number | Title |
---|---|
CM-6 |
Configuration Settings |