News for hackers. Stuff that matters.
Re: The Linux Security Circus: On GUI isolation by tedunangst on Saturday April 23, 2011 @08:53PM (#2478001)
Note that hasn't been true for years and years. -Y and -X are different.
Re: The Linux Security Circus: On GUI isolation by rst on Saturday April 23, 2011 @09:03PM (#2478019)
[deleted former mummery after five-minute fact-check]

Unfortunately, the documentation on -X and -Y is awfully confusing. On a casual read, it looks like -Y is less safe, since practically the only thing the docs for -Y say is that forwarded connections are "not subjected to X11 SECURITY extension controls"...

Re: The Linux Security Circus: On GUI isolation by tedunangst on Saturday April 23, 2011 @09:10PM (#2478032)
You were apparently more right the first time. -X establishes an untrusted connection, subject to limitations. -Y says "trust me, no limits". -Y is the less safe option.
Re: The Linux Security Circus: On GUI isolation by rst on Saturday April 23, 2011 @09:44PM (#2478078)
So, trying again... here are the caveats on -X, from the man page on the current version[1]:

     -X      Enables X11 forwarding.  This can also be specified on a per-host
             basis in a configuration file.

             X11 forwarding should be enabled with caution.  Users with the
             ability to bypass file permissions on the remote host (for the
             user's X authorization database) can access the local X11 display
             through the forwarded connection.  An attacker may then be able
             to perform activities such as keystroke monitoring.
So, it's not documented as being proof against hostile parties with root at the remote end; in fact, it's documented as being vulnerable...

[1] http://www.openbsd.org/cgi-bin/man.cgi?query=ssh&sektion...

Re: The Linux Security Circus: On GUI isolation by tedunangst on Saturday April 23, 2011 @11:53PM (#2478229)
That's why the next paragraph exists.

    For this reason, X11 forwarding is subjected to X11
    SECURITY extension restrictions by default.  Please
    refer to the ssh -Y option and the ForwardX11Trusted
    directive in ssh_config(5) for more information.
Re: The Linux Security Circus: On GUI isolation by tshtf on Saturday April 23, 2011 @09:03PM (#2478018)
That's why I mentioned the -X option... -Y handles the problem the correct way and doesn't have the same issues.

Edit: Ignore this, I was incorrect.

Re: The Linux Security Circus: On GUI isolation by tedunangst on Saturday April 23, 2011 @09:08PM (#2478028)
You have that backwards.