It was reported that when forwarding X11 connections with ForwardX11Trusted=no, connections made after ForwardX11Timeout expired could be permitted and no longer subject to XSECURITY restrictions because of an ineffective timeout check in ssh(1) coupled with "fail open" behaviour in the X11 server when clients attempted connections with expired credentials. This problem was reported by Jann Horn. Upstream patches: http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/channels.c#rev1.347 http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/clientloop.c#rev1.274 Portable OpenSSH git commit with both above changes: https://anongit.mindrot.org/openssh.git/commit/?id=1bf477d3cdf1a864646d59820878783d42357a1d Upstream release notes: http://www.openssh.com/txt/release-6.9
Created openssh tracking bugs for this issue: Affects: fedora-all [bug 1238241]
openssh-6.6.1p1-13.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
openssh-6.9p1-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
The original reporter published a detailed write-up of this issue. External References: https://thejh.net/written-stuff/openssh-6.8-xsecurity
Statement: This issue does not affect the version of openssh package as shipped with Red Hat Enterprise Linux 7. This issue affects the version of openssh package as shipped with Red Hat Enterprise Linux 5 and 6. Red Hat Product Security has rated this issue as having Moderate security impact. This issue is not currently planned to be addressed in future updates.
The version of Xserver (xorg-x11-server) shipped with Red Hat Enterprise Linux 7, disables the XSECURITY extension. Hence this flaw does not affect the version of openssh shipped with Red Hat Enterprise Linux 7. The above also means that there is no way for openssh to do untrusted/restricted forwarding when X server does not have the XC-SECURITY extension.
This issue has been addressed in the following products: Red Hat Enterprise Linux 6 Via RHSA-2016:0741 https://rhn.redhat.com/errata/RHSA-2016-0741.html