Possible security leak at CalDav login

Get help from the community here.

Moderator: Developers

Possible security leak at CalDav login

Postby JoergHerzinger » Tue Jul 26, 2011 3:38 pm

Hi, I just tried logging into caldav (https://my.group.office.install.com/caldav) and mistyped my password and something strange happened:


<d:error>
<s:exception>Exception</s:exception>
<s:message>Falscher Benutzername oder Passwort</s:message>

<s:file>
/usr/local/share/groupoffice/modules/imapauth/classes/imapauth.class.inc.php
</s:file>
<s:line>170</s:line>
<s:code>0</s:code>

<s:stacktrace>
#0 [internal function]: imapauth::before_login('username@domain...', '<MY_CLEARTEXT_PASSWORD_HERE>', false)
#1 /usr/local/share/groupoffice/classes/base/events.class.inc.php(109): call_user_func_array(Array, Array)
#2 /usr/local/share/groupoffice/classes/base/auth.class.inc.php(183): GO_EVENTS->fire_event('before_login', Array)
#3 /usr/local/share/groupoffice/modules/dav/DAV/Auth_Backend.class.inc.php(69): GO_AUTH->login('username@domain...', '<MY_CLEARTEXT_PASSWORD_HERE>', 'normal', false)
#4 /usr/local/share/groupoffice/modules/dav/SabreDAV/lib/Sabre/DAV/Auth/Plugin.php(107): GO_DAV_Auth_Backend->authenticate(Object(GO_CalDAV_Server), 'Group-Office Ca...')
#5 [internal function]: Sabre_DAV_Auth_Plugin->beforeMethod('GET', '')
#6 /usr/local/share/groupoffice/modules/dav/SabreDAV/lib/Sabre/DAV/Server.php(409): call_user_func_array(Array, Array)
#7 /usr/local/share/groupoffice/modules/dav/SabreDAV/lib/Sabre/DAV/Server.php(431): Sabre_DAV_Server->broadcastEvent('beforeMethod', Array)
#8 /usr/local/share/groupoffice/modules/dav/SabreDAV/lib/Sabre/DAV/Server.php(201): Sabre_DAV_Server->invokeMethod('GET', '')
#9 /usr/local/share/groupoffice/modules/caldav/calendar.php(52): Sabre_DAV_Server->exec()
#10 {main}
</s:stacktrace>
<s:sabredav-version>1.4.3</s:sabredav-version>
</d:error>


This happens every time I try to login with a wrong password and as you can see it holds the password I typed in cleartext.
JoergHerzinger
 
Posts: 53
Joined: Mon Nov 16, 2009 11:09 am

Re: Possible security leak at CalDav login

Postby WilmarVB » Wed Jul 27, 2011 1:52 pm

Hello Joerg,

I suppose what you see in the trace are the (false) username and (false) password you just entered?
Kind regards,
WilmarVB
Intermesh
User avatar
WilmarVB
Group-Office Developer
 
Posts: 86
Joined: Mon May 10, 2010 3:47 pm
Location: Den Bosch, Netherlands

Re: Possible security leak at CalDav login

Postby JoergHerzinger » Thu Jul 28, 2011 3:58 pm

Yes, of course, but still these usernames and passwords are really really close to the correct ones, so they should not ever be visible, logged or anything.
JoergHerzinger
 
Posts: 53
Joined: Mon Nov 16, 2009 11:09 am

Re: Possible security leak at CalDav login

Postby Intermesh » Fri Jul 29, 2011 6:36 am

don't print stack traces on production servers. We can't hide those passwords because they are required for those functions. In general you should disable display_errors in php.ini but even better is to set everything to production values.
Best regards,

Merijn Schering
Intermesh
User avatar
Intermesh
Site Admin
 
Posts: 7085
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch


Return to General help

Who is online

Users browsing this forum: No registered users and 0 guests