6.1.3 Disable SSH X11 Forwarding - Check if X11Forwarding is set to no and not commented for the server.

Information

The X11Forwarding parameter provides the ability to tunnel X11 traffic through the connection to enable remote graphic connections.

Solution

Edit the /etc/ssh/sshd_config file to set the parameter as follows-
awk '/^ X11Forwarding / { $2 = 'no' } { print }' /etc/ssh/sshd_config > /etc/ssh/sshd_config.new
/usr/bin/mv /etc/ssh/sshd_config.new /etc/ssh/sshd_config
/usr/sbin/pkgchk -f -n -p /etc/ssh/sshd_config
/usr/sbin/svcadm restart svc:/network/ssh

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CSCv6|3.1

Plugin: Unix

Control ID: b1dc1a2875a802abb386b1bdb38261f5cefb67c1bfc5affe92a1fcc509d743a1