X2Go Bug report logs - #706
x2gobroker authservice fails to handle passwords with spaces in them

version graph

Package: x2gobroker-authservice; Maintainer for x2gobroker-authservice is X2Go Developers <x2go-dev@lists.x2go.org>; Source for x2gobroker-authservice is src:x2gobroker.

Reported by: Jason Alavaliant <alavaliant@ra09.com>

Date: Thu, 18 Dec 2014 02:10:01 UTC

Severity: normal

Tags: patch, pending

Found in version 0.0.2.3

Fixed in version 0.0.3.0

Done: X2Go Release Manager <git-admin@x2go.org>

Bug is archived. No further changes may be made.

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#706: x2gobroker authservice fails to handle passwords with spaces in them
Reply-To: Jason Alavaliant <alavaliant@ra09.com>, 706@bugs.x2go.org
Resent-From: Jason Alavaliant <alavaliant@ra09.com>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Thu, 18 Dec 2014 02:10:01 +0000
Resent-Message-ID: <handler.706.B.141886856324092@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: report 706
X-X2Go-PR-Package: x2gobroker-authservice
X-X2Go-PR-Keywords: patch
Received: via spool by submit@bugs.x2go.org id=B.141886856324092
          (code B); Thu, 18 Dec 2014 02:10:01 +0000
Received: (at submit) by bugs.x2go.org; 18 Dec 2014 02:09:23 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,
	T_FILL_THIS_FORM_SHORT,URIBL_BLOCKED autolearn=ham version=3.3.2
Received: from thetower.ra09.com (ra09.com [202.124.104.240])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id AB2545DB26
	for <submit@bugs.x2go.org>; Thu, 18 Dec 2014 03:09:20 +0100 (CET)
Received: from localhost ([127.0.0.1] helo=private.ra09.com)
	by thetower.ra09.com with esmtp (Exim 4.80)
	(envelope-from <alavaliant@ra09.com>)
	id 1Y1QWi-0002Hf-H3
	for submit@bugs.x2go.org; Thu, 18 Dec 2014 15:09:17 +1300
MIME-Version: 1.0
Content-Type: multipart/mixed;
 boundary="=_50e239c780a0524fd2e6f780f3ba2d2d"
Date: Thu, 18 Dec 2014 15:09:16 +1300
From: Jason Alavaliant <alavaliant@ra09.com>
To: submit@bugs.x2go.org
Message-ID: <1f449702f55c192bed3a6676f634afd8@private.ra09.com>
X-Sender: alavaliant@ra09.com
User-Agent: Roundcube Webmail/1.0.2
[Message part 1 (text/plain, inline)]
Package: x2gobroker-authservice
Version: 0.0.2.3
Tags: patch


Some of my users were getting authentication failed errors trying to 
login via our x2go broker setup (configured with http backend),     
further investigation revealed that the common factor was that they all 
had spaces in their passwords.

Digging through the code I found that the socket connection used by the 
x2gobroker authservice used spaces to separate the fields when passing 
user data to be validated which meant any password with a space was 
effectively truncated by the code when it was send to the authservice.   
    The two attached patches contain my proposed fix of changing the 
separation character to be \r instead which seems to fix the problem 
fine in my testing.

Thanks
Jason
[x2gobroker-authservice-handle-spaces-in-passwords.patch (text/x-diff, attachment)]
[authservice.py-handle-spaces-in-passwords.patch (text/x-diff, attachment)]

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Thu Nov 21 19:29:34 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.