GEN005201 - X11 forwarding for SSH must be disabled.

Information

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.

Solution

The root role is required.

Modify the sshd_config file.

# vi /etc/ssh/sshd_config

Locate the line containing:

X11Forwarding

Change it to:

X11Forwarding no

Restart the SSH service.

# svcadm restart svc:/network/ssh

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-233302r603286_rule, STIG-ID|GEN005201, Vuln-ID|V-233302

Plugin: Unix

Control ID: f47c65496339ef8fc40e9ab418156569036c69cf4a677b2c14c747ea087d8762