Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 152153

Summary: kde-base/kdelibs-3.5.2/3 KSSL weak cipher vulnerability
Product: Gentoo Security Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: RESOLVED FIXED    
Severity: minor CC: corsair, dertobi123, gustavoz, killerfox, tcort, tsunam
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard: A4? [noglsa] jaervosz
Package list:
Runtime testing required: ---
Bug Depends on: 147570    
Bug Blocks:    
Attachments:
Description Flags
fix-weak-ciphers.diff
none
kdelibs-3.5.2-r6.ebuild
none
kdelibs-3.5.2-fix-weak-ciphers.patch none

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-20 12:13:32 UTC
From: Dirk Mueller <mueller@kde.org>
  To: kde-packager@kde.org
  CC: security@kde.org
  Date: Yesterday 23:40:00
  
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-20 12:13:32 UTC
From: Dirk Mueller <mueller@kde.org>
  To: kde-packager@kde.org
  CC: security@kde.org
  Date: Yesterday 23:40:00
   
I'm writing an advisory now anyway, but it is not a security vulnerability per 
se, as it depends on a server configuration that allows to negotiate weak 
ciphers even if stronger ones are available. This advisory comes rather late
as it took some time to make sure that the patch remains regression free
and fixes all issues that were found. 

Affected:
         All KDE versions up to including KDE 3.5.3. KDE 3.5.4 and 3.5.5 
         are unaffected. 

Overview: 

         KSSL might decide to negotiate a weak cipher with a remote server
         even though the remote server supports a stronger one. In addition
         upgrade handling between SSLv3 / TLSv1 was broken, which caused
         it to use SSLv3 even if TLSv1 was possible, and to not connect at
         all if the server only supported TLSv1. 

         There are three bugs: 
            a) KDE 3.5.x by accident sorted the list of ciphers to try in 
                 alphabetic order, rather than by "strength indicator". 
            b) older KDE versions did not sort them at all but picked the
                 server order, which seems to be not sorted by strength. 
            c) The "Use TLSv1 if server supports it" checkbox in KSSL
                 configuration didn't quite work like intended.
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-20 12:14:23 UTC
Created attachment 100100 [details, diff]
fix-weak-ciphers.diff
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-20 12:21:55 UTC
Created attachment 100101 [details]
kdelibs-3.5.2-r6.ebuild
Comment 4 Stefan Cornelius (RETIRED) gentoo-dev 2006-10-21 03:23:32 UTC
Ok liaisons, you know the drill: please test and report back, dont commit anything yet. Thanks!
Comment 5 Markus Rothe (RETIRED) gentoo-dev 2006-10-21 03:43:46 UTC
patch needs to be renamed to kdelibs-3.5.2-fix-weak-ciphers.patch, although it fails to apply:

patching file kio/kssl/ksslsettings.cc
Hunk #1 FAILED at 179.
1 out of 1 hunk FAILED -- saving rejects to file kio/kssl/ksslsettings.cc.rej

(ebuild should be -r7, not -r6?)
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-21 04:24:22 UTC
Err I think I did a mess with the patches, hold on a second.
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-21 04:30:10 UTC
Created attachment 100124 [details, diff]
kdelibs-3.5.2-fix-weak-ciphers.patch

It was less of a mess than I was afraid of :) Simply forgot to attach the patch used by the ebuild and simply attached the official one :P
One hunk is removed because was related to a change in 3.5.2->3 that was being reversed.
Comment 8 Thomas Cort (RETIRED) gentoo-dev 2006-10-21 14:19:05 UTC
looks good on amd64.
Comment 9 Markus Rothe (RETIRED) gentoo-dev 2006-10-22 01:44:12 UTC
looks good on ppc64, too.
Comment 10 Gustavo Zacarias (RETIRED) gentoo-dev 2006-10-23 06:53:19 UTC
looks ok on sparc.
Comment 11 Joshua Jackson (RETIRED) gentoo-dev 2006-10-23 08:36:42 UTC
x86 seems to be fine here in x86 land.
Comment 12 Tobias Scherbaum (RETIRED) gentoo-dev 2006-10-24 08:47:11 UTC
works for ppc.
Comment 13 René Nussbaumer (RETIRED) gentoo-dev 2006-10-24 09:55:17 UTC
Works on hppa
Comment 14 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2006-11-03 05:50:10 UTC
What's about the disclosure of that bug? I've seen a Suse fix that talks about this issue but that's all, and no advisory (and it's not a big security issue). The Suse bug is still closed : https://bugzilla.novell.com/show_bug.cgi?id=181169

Any news from here ? (release date for example)
Comment 15 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-11-03 05:57:58 UTC
I was waiting for Mueller to say something else on the topic but seen nothing. I'd be looking forward tonight for adding this then, with the stables present.
Comment 16 Bryan Østergaard (RETIRED) gentoo-dev 2006-11-04 10:22:21 UTC
Looks good on Alpha.
Comment 17 Stefan Cornelius (RETIRED) gentoo-dev 2006-11-07 02:56:28 UTC
(In reply to comment #13)
> What's about the disclosure of that bug? I've seen a Suse fix that talks about
> this issue but that's all, and no advisory (and it's not a big security issue).

Is this fix public? If so, they leaked it first and we can probably do a sneaky commit (no suspicious words in the commit-msg)?

Comment 18 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-11-07 04:09:51 UTC
> On Tuesday 07 November 2006 11:42, Ismail Donmez wrote:
> 
> > Dirk when do you intend to apply this?
> 
> The patch has been developed in SVN and applied for KDE 3.5.4, which was 
> released a few months ago. This was a mere notice that if you ship an older 
> version of KDE (you shouldn't) you might consider applying this fix.
Comment 19 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-11-18 13:53:52 UTC
So, kdelibs-3.5.5 is being marked stable... I suppose this means that this bug is pointless as soon as the security supported arches mark 3.5.5 stable.
Comment 20 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2006-11-20 23:23:43 UTC
Yeah, I'll close this one when it is all stable.
Comment 21 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-01-17 01:21:13 UTC
Everything but mips is done, and mips is not security supported, IIRC.
Comment 22 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-02-04 12:13:06 UTC
kdelibs 3.5.2 is no more in the tree. Security please close :)
Comment 23 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2007-02-06 15:30:17 UTC
asusualfeelfreetoreopenifyoudisagreeblabla