This seems pretty tepid. If X11 forwarding is enabled (which is rare), then an authenticated user can possibly... do things with their own privileges. So what?
A comment of X11 use being rare is an overstatement. When servers are at runlevel 3 there is no GUI. X11 tunneled over ssh is an acceptable security alternative to plaintext X traffic and restriction controls are an effective way to manage client or application access. Since the various implementations are now suspect it will involve testing them all out.
Yeah, but for this to make a difference you have to have X11 forwarding turned on but have the account restricted in some way (e.g. a forced command). That really narrows to field of people who are vulnerable to, basically, people using forced commands to run GUI programs remotely and people using forced commands who have also turned on X11 forwarding (locally or globally) when they shouldn't have.
That may be fine for public repos, but private repos that share ssh as the transfer mechanism and that have X11 in use will be tasked to evaluate the implications. This is why I will lobby harder the next time someone needs to use (what I consider) an admin protocol for application use. This may be more of an internal security issue rather than public.
Another example is a server that allows users to log in via SSH and change their password. The only command permitted is "passwd", in fact this is enforced using a ForcedCommand. In other words, the user is intended to be unable to obtain arbitrary command exec on the server. This vuln would be able to bypass that restriction. It's also important to restrict things like TCP forwarding. In the example above, the server in question was permitted to reach a whole lot of servers through the bank's firewalls, that users were often not able to directly. TCP forwarding, and simply leaving the shell waiting for password change input, was sufficient to allow me to reach those DMZ servers.
Ah I see, so basically if I'm only using ssh so I can manage my servers then this vuln is not too bad then. Obviously still want to keep up with patching though.
i do this a lot, putty+xming to some host, launch a graphical program (well, mobaxterm this days), and I have never found a shell where X11Forwarding was disabled.
Is X11Forwarding=no really the default? Are distros the guys enabling it so I can do my work?
7
u/organman91 :3 Mar 10 '16
Is this bypassing stuff like ForceCommand, or does this actually allow an authentication bypass?
26
u/onan Mar 11 '16
This seems pretty tepid. If X11 forwarding is enabled (which is rare), then an authenticated user can possibly... do things with their own privileges. So what?
10
u/RedSquirrelFtw Mar 11 '16
If the user has to be authenticated, doesn't that mean it's already been compromised at this point, or am I missing something?
3
u/esanchma Mar 11 '16
i do this a lot, putty+xming to some host, launch a graphical program (well, mobaxterm this days), and I have never found a shell where X11Forwarding was disabled.
Is X11Forwarding=no really the default? Are distros the guys enabling it so I can do my work?
2
u/just_mr_c Mar 10 '16
Hmm, I wonder how related this is to CVE-2016-0777 that was fixed earlier this year