X2Go Bug Tracking System | 24 May 2013 15:18

Processed: Re: Bug#219: x2gosqlitewrapper is looking for x2gosqlitewrapper.pl in /usr/local/lib/x2go directory

Processing commands for control <at> bugs.x2go.org:

> fixed #220 0.0.2.2
Bug #220 [x2gobroker-agent] Explicitly export PREFIX=/usr when building RPM packages
There is no source info for the package 'x2gobroker-agent' at version '0.0.2.2' with architecture ''
Unable to make a source version for version '0.0.2.2'
Marked as fixed in versions 0.0.2.2.
> close #220
Bug #220 [x2gobroker-agent] Explicitly export PREFIX=/usr when building RPM packages
Marked Bug as done
> thanks
Stopping processing here.

Please contact me if you need assistance.
--

-- 
220: http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=220
X2Go Bug Tracking System
Contact owner <at> bugs.x2go.org with problems
Mike Gabriel | 23 May 2013 00:20
Picon
Favicon

Bug#219: x2gosqlitewrapper is looking for x2gosqlitewrapper.pl in /usr/local/lib/x2go directory

Hi Mukesh Kr, hi Jan,

 <at> Jan: I guess this one is for you...

On Mi 22 Mai 2013 18:20:50 CEST Mukesh Singh wrote:

> Package: x2goserverVersion: 4.0.0.2
> I recently upgraded x2goserver to 4.0.0.2 on RHEL6 and it stopped  
> working. I found out that x2gosqlitewrapper is looking for  
> x2gosqlitewrapper.pl in /usr/local/lib/x2go directory. So when I  
> created a symlink in that directory it started working again.
> Please change the path for the file in source code or change the  
> package to create the link on installation.

For the Debian packages, there is a Makefile-like file called  
/debian/rules that coordinates all the packaging tasks. From this  
file, I explicitly have to export PREFIX=/usr to make the new  
x2gosqlitewrapper.c work.

 <at> Jan: can you check the RPM packages and make sure that the PREFIX  
path reaches the main Makefile of X2Go Server? A similar change to the  
packaging has to be introduced to x2gobroker.git.

Thanks!
Mike

--

-- 

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
(Continue reading)

Mike Gabriel | 22 May 2013 17:32
Picon
Favicon

Bug#216: X2Go issue (in src:x2gobroker) has been marked as closed

close #216
thanks

Hello,

we are very hopeful that X2Go issue #216 reported by you
has been resolved in the new release (0.0.2.2) of the
X2Go source project »src:x2gobroker«.

You can view the complete changelog entry of src:x2gobroker (0.0.2.2)
below, and you can use the following link to view all the code changes
between this and the last release of src:x2gobroker.

    http://code.x2go.org/gitweb?p=x2gobroker.git;a=commitdiff;h=b5809e0a2cb3a2cec44fa7587c58f64750862377;hp=e0e9815beaf7d6de843ca0386cd92ed6cd14433f

If you feel that the issue has not been resolved satisfyingly, feel
free to reopen this bug report or submit a follow-up report with
further observations described based on the new released version
of src:x2gobroker.

Thanks a lot for contributing to X2Go!!!

light+love
X2Go Git Admin (on behalf of the sender of this mail)

---
X2Go Component: src:x2gobroker
Version: 0.0.2.2
Status: RELEASE
Date: Wed, 22 May 2013 17:32:03 +0200
(Continue reading)

Mike Gabriel | 22 May 2013 17:29
Picon
Favicon

Bug#216: X2Go issue (in src:x2gobroker) has been marked as pending for release

tag #216 pending
fixed #216 0.0.2.2
thanks

Hello,

X2Go issue #216 (src:x2gobroker) reported by you has been
fixed in X2Go Git. You can see the changelog below, and you can
check the diff of the fix at:

    http://code.x2go.org/gitweb?p=x2gobroker.git;a=commitdiff;h=171e8df

The issue will most likely be fixed in src:x2gobroker (0.0.2.2).

light+love
X2Go Git Admin (on behalf of the sender of this mail)

---
commit 171e8df1620f71bef0600fe3d8380c8d2a493758
Author: Mike Gabriel <mike.gabriel <at> das-netzwerkteam.de>
Date:   Wed May 22 17:29:27 2013 +0200

    Correctly incorporate path to x2gobroker-agent.pl into x2gobroker-agent setuid wrapper. (Fixes: #216).

diff --git a/debian/changelog b/debian/changelog
index 0749ee7..f14bb75 100644
--- a/debian/changelog
+++ b/debian/changelog
 <at>  <at>  -3,6 +3,8  <at>  <at>  x2gobroker (0.0.2.2-0~x2go1) UNRELEASED; urgency=low
   * New upstream version (0.0.2.2):
(Continue reading)

Anders Bruun Olsen | 22 May 2013 15:30
Picon
Favicon
Gravatar

Bug#218: x2gobroker: Hostname is used instead of FQDN

Package: x2gobroker
Version: 0.0.2.2

I am setting up a loadbalanced cluster of x2go servers with a broker in front. There are thinclients on the LAN accessing the broker/cluster and there will be users logging on from outside. Users on the LAN are served term1.example.lan and term2.example.lan, whereas users from outside get term1.example.com and term2.example.com. So far everything has worked fine, but now I have started testing outside access, which does not work. x2gobroker (with autologin) tells x2goclient to access term1 or term2 - it leaves out the rest of the domain name. This works fine on the LAN, because the machines there have example.lan set as their searchdomain, but machines from outside can't resolve "term1" to "term1.example.com" and need to be given the FQDN. Please note that the FQDNs is specified in the sessionprofiles, but x2goclient still tries to resolve the short version of the name.

--
Anders Bruun Olsen
It-ansvarlig
Det Danske Sprog- og Litteraturselskab
(Society for Danish Language and Literature)
_______________________________________________
X2Go-Dev mailing list
X2Go-Dev <at> lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev
Anders Bruun Olsen | 22 May 2013 15:18
Picon
Favicon
Gravatar

Bug#217: x2gobroker: better debugging af x2gobroker-agent calls

Package: x2gobroker
Version: 0.0.2.2 (git)
Severity: wishlist

While trying to debug the problems I had, leading to submitting bug #216, was quite painful. x2gobroker-agent dies silently if it can't run x2gobroker-agent.pl and nothing giving even a hint of a problem gets logged by x2gobroker to broker.log (on the broker, not the terminal server). It would be very helpful if nothing was ever allowed to die silently, but instead logged error messages.
I guess this goes for pretty much any part of x2go, but this bug is about the particular case with x2gobroker-agent.

--
Anders Bruun Olsen
It-ansvarlig
Det Danske Sprog- og Litteraturselskab
(Society for Danish Language and Literature)
_______________________________________________
X2Go-Dev mailing list
X2Go-Dev <at> lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev
Anders Bruun Olsen | 22 May 2013 15:01
Picon
Favicon
Gravatar

Bug#216: x2gobroker-agent: assumes wrong path for x2gobroker-agent.pl

Package: x2gobroker
Version: 0.0.2.2 (git)
Severity: critical

When I build debs (debuild -uc -us) for x2gobroker from git, after the recent security fix to x2gobroker-agent, the resulting x2gobroker-agent tries to run /usr/local/lib/x2go/x2gobroker-agent.pl instead of /usr/lib/x2go/x2gobroker-agent.pl. This means that autologin with x2gobroker does not work.

--
Anders Bruun Olsen
It-ansvarlig
Det Danske Sprog- og Litteraturselskab
(Society for Danish Language and Literature)
_______________________________________________
X2Go-Dev mailing list
X2Go-Dev <at> lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev
Adrien Basso | 22 May 2013 10:44
Picon

Python-x2go "Bringing up NX3 proxy failed" on Windows

Hi X2go-devs,
I try to use python-x2go api for an application on linux and windows.
I have no problem with linux but on windows, I can do  session.connect() but I still get the same error at start of sessions.
 
>>> session.start (cmd='LXDE")
 
(x2goproxy-pyib) ERROR: Bringing up NX3 proxy failed.
(x2goclient-pylib) WARN: HOOK_session_startup_failed: session startup for session profile ,,test failed.
 
The same script run perfectly on linux.
I installed python-x2go in this way :
 
 
I checked that I had nxproxy.exe in several paths, it's ok.
 
Do you have any idea of where it might come?
PS: The x2go-Client works perfectly well on my machine.
And the remote server is a Debian server.
 
Thanks for your time ,
Adrien
_______________________________________________
X2Go-Dev mailing list
X2Go-Dev <at> lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev
Richard RW. Weinberger | 21 May 2013 11:01
Picon

Re: x2go and (none)security

----- Ursprüngliche Mail -----
> > From: Oleksandr Shneyder <oleksandr.shneyder <at> obviously-nice.de>
> > Subject: Re: [X2Go-Dev] x2go and (none)security
> > Date: 21. Mai 2013 10:40:45 MESZ
> > To: x2go-dev <at> lists.berlios.de
> > Cc: david <at> sigma-star.at, t.dierl <at> sigma-star.at
> > 
> > Hello Richard,
> > 
> > Am 18.05.2013 21:48, schrieb Richard Weinberger:
> >> Hi x2go users/developers,
> >> 
> >> while reviewing x2go I've encountered issues which scared hell out
> >> of me.
> >> The client seems to perform zero input validation. A rough server
> >> can
> >> easily crash the client
> >> and most likely execute arbitrary code.
> >> For example x2goSession ONMainWindow::getSessionFromString ( const
> >> QString& string ), it is feed with input from the server.
> >> ---
> >>    QStringList lst=string.split ( '|' );
> >>    x2goSession s;
> >>    s.agentPid=lst[0];
> >>    s.sessionId=lst[1];
> >>    s.display=lst[2];
> >>    s.server=lst[3];
> >>    s.status=lst[4];
> >>    s.crTime=lst[5];
> >>    s.cookie=lst[6];
> >>    s.clientIp=lst[7];
> >>    s.grPort=lst[8];
> >>    s.sndPort=lst[9];
> >> ---
> >> If a line from the server, does not enough "|" we end up with
> >> out-of-bound array access.
> >> The source is full with such issues.
> > 
> > You are right, it is possible, that X2Go Client can be crashed with
> > the
> > wrong output from the server. This issue could (and should) be
> > easily
> > fixed by replacing operator "[n]" with method "value(n)". However,
> > I
> > don't think, that this issue is so dramatic as you described it.
> > Why
> > some one should open a SSH/X2GO connection to "rough" server? I
> > didn't
> > see such use case yet, when an administrator of server want to
> > crash the
> > client application on a machine of his user. If a user root on your
> > Linux system is not an evil person, who want crash the X2Go Client
> > on
> > your desktop, you should not worry about this issue. But if you
> > living
> > in the world of BOFH, please don't use the X2Go Client until this
> > issue
> > will be fixed. I'll fix it very soon.

Every thought about client security?
What happens if someone connects to another server?
E.g. a support guys which need to connect to other customers.
Using x2go you can take over his machine and sniff passwords to access
other customers.

> >> Finally I've also looked at the server.
> >> In short, the 90's calx2go-dev <at> lists.berlios.deled, they want their setuid bugs back.
> >> x2gosqlitewrapper.c just wrong, anyone can make it executing
> >> whatever
> >> binary he wants with higher privileges.
> > 
> > Sorry, I don't understand what are you talking about. I not found
> > the
> > file "x2gosqlitewrapper.c" in the source tree of package "x2go
> > server".
> > If you found a security problem in the recent x2goserver code,
> > please
> > open a bug report on bug tracker, describe the problem and show how
> > it
> > can be used. In best case show an example of exploit and send a bug
> > fix.
> > Saying "it is just wrong, anyone can do something" is just your
> > opinion
> > without any arguments.

I showed Mike already how the exploit works. He already released a fixed version
of x2goserver and x2gobroker. Both contained the same broken code.
If you don't understand the issue I'll happily explain it to you in private but I'll
not post exploits on a public mailinglist.

> > 
> >> But it's not only the code that worries me.
> >> On Windows the client executes per default sshd and x11. Both are
> >> listening on all available IP-Addresses.
> > 
> > Yes, this components are required by X2Go Client. This services are
> > configured by default to listen all IP-Adresses. It is possible to
> > configure them to listen for connections only on localhost, but I
> > see it
> > just as "nice to have" feature. Starting this services is not
> > creating
> > backdoor on the system, otherwise  most UNIX machines would be
> > backdoor'ed, because they running same services. Furthermore, SSHD
> > used
> > by X2Go is running only with user privileges and opening an access
> > for
> > only one user and only shortly for each SSHFS connection. The rest
> > time
> > SSHD don't accept a SSH-connections. In addition, each Windows
> > system
> > have a firewall that by default configured to drop incoming
> > TCP-connections. This make SSHD and X11 to be only accessible from
> > localhost.
> > 
> > 
> > 
> >> You silently install a user "sshuser" on Windows, which has the
> >> password
> >> of the currently logged in Windows user and give
> >> him a login shell.
> > 
> > This is so untrue! X2Go Client can not install users on Windows
> > system.

So? You install cygwin with a passwd file that maps to Windows users.
sshd.exe uses that passwd file and one can login via network.
Of course you need to know the passwort. But you open a security risk
just by making sshd and x11 listening on 0.0.0.0!

> > To be able to do something like that, X2Go Client must have an
> > administrator privileges. All X2Go Client components running with
> > user
> > privileges. A SSHD open SSH access for current user and this is
> > required
> > for SSHFS, which used to export client directories to server. If
> > you
> > don't trust your server, just don't export your directories. And
> > you
> > should not do this, independent what kind of network FS are you
> > using.
> > It is always possible, that untrusted server can manipulate your
> > data or
> > credentials. It's impossible to open a SSH-Connection to your
> > client
> > until you don't exporting directories to server.

Then please make sshd listen on localhost and forward the ssh port to the Server...

> > 
> >> I haven't seen such a trainwreck of software for a long time.
> >> By installing it on my system you've successfully backdoor'ed my
> >> clients
> >> and the server.
> > 
> > I appreciated your criticism, but writing something like that in
> > the ML
> > of a community project is just not respecting the work of people,
> > who
> > spent a lot of their time and costs to develop something useful for
> > others.

I'm criticizing your code not you.
If you cannot deal with that, not my problem.

Thanks,
//richard
_______________________________________________
X2Go-Dev mailing list
X2Go-Dev <at> lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev
Mike Gabriel | 20 May 2013 22:35
Picon
Favicon

Bug#177: X2Go issue (in src:x2goclient) has been marked as pending for release

tag #177 pending
fixed #177 4.0.1.1
thanks

Hello,

X2Go issue #177 (src:x2goclient) reported by you has been
fixed in X2Go Git. You can see the changelog below, and you can
check the diff of the fix at:

    http://code.x2go.org/gitweb?p=x2goclient.git;a=commitdiff;h=11af425

The issue will most likely be fixed in src:x2goclient (4.0.1.1).

light+love
X2Go Git Admin (on behalf of the sender of this mail)

---
commit 11af425a29087773df39806844bff9744cc99182
Author: Mike Gabriel <mike.gabriel <at> das-netzwerkteam.de>
Date:   Mon May 20 22:20:49 2013 +0200

    Use the session icon as tray icon, pop up notification bubble that informs about current session actions.
(Fixes: #177).

diff --git a/debian/changelog b/debian/changelog
index cbd012d..1a2a82a 100644
--- a/debian/changelog
+++ b/debian/changelog
 <at>  <at>  -20,6 +20,8  <at>  <at>  x2goclient (4.0.1.1-0~x2go1) UNRELEASED; urgency=low
   * New upstream version (4.0.1.1):
     - Fix detection of maximum screen area available for a session. (Fixes:
       #165).
+    - Use the session icon as tray icon, pop up notification bubble that informs
+      about current session actions. (Fixes: #177).

   [ Otto Kjell ]
   * New upstream version (4.0.1.1):
Matthew L. Dailey | 20 May 2013 21:52
Favicon

Bug#139: x2goclient: No keyboard input at login on OSX

Greetings,

I just wanted to report that we're seeing this identical behavior, but in a slightly different way on our Mac
OS X clients that are *not* running in broker mode.

When we run the client, everything works well and we are able to start a session. However, if we either
terminate or suspend the session, we are no longer able to enter a password in the dialog. The cursor is
blinking in the password field, but no characters can be entered. All other functionality seems to work,
however - other sessions can be clicked on the right side and settings of sessions can be edited. The
workaround is to quit and restart the client.

I had a look at the x2goclient code, and this is a bit out of my league, but something that looked suspicious to
me on first glance was passForm->setEnabled() in onmainwindow.cpp. I wonder if this is getting set to
false when then session runs and then not getting set back to true when the session ends or is suspended.
Just a thought...

Please let me know if you need any other info to help track this down.

--

-- 
Matthew L. Dailey
Systems Administrator
Thayer School of Engineering
Dartmouth College

Gmane