STIGQter STIGQter: STIG Summary: Oracle Linux 7 Security Technical Implementation Guide Version: 2 Release: 3 Benchmark Date: 23 Apr 2021:

The Oracle Linux operating system must not allow users to override SSH environment variables.

DISA Rule

SV-221696r603260_rule

Vulnerability Number

V-221696

Group Title

SRG-OS-000480-GPOS-00229

Rule Version

OL07-00-010460

Severity

CAT II

CCI(s)

Weight

10

Fix Recommendation

Configure the operating system not to 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.

Check Contents

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.

Vulnerability Number

V-221696

Documentable

False

Rule Version

OL07-00-010460

Severity Override Guidance

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.

Check Content Reference

M

Target Key

4089

Comments