SOL-11.1-040331 - The sshd server must bind the X11 forwarding server to the loopback address.

Information

As enabling X11 Forwarding on the host can permit a malicious user to secretly open another X11 connection to another remote client during the session and perform unobtrusive activities such as keystroke monitoring, if the X11 services are not required for the system's intended function, they should be disabled or restricted as appropriate to the user's needs.
By default, sshd binds the forwarding server to the loopback address and sets the hostname part of the DISPLAY environment variable to 'localhost'. This prevents remote hosts from connecting to the proxy display.

Solution

The root role is required.

Modify the sshd_config file.

# vi /etc/ssh/sshd_config

Locate the line containing:

X11UseLocalhost

Change it to:

X11UseLocalhost yes

Restart the SSH service.

# svcadm restart svc:/network/ssh

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-233301r959010_rule, STIG-ID|SOL-11.1-040331, Vuln-ID|V-233301

Plugin: Unix

Control ID: fe8ed910a3de75dbd73e07a01ee1e119f50cbfc1f5df701c770498fb56b7d1e8