[pkg-kolab] kolab-cyrus-imapd and sasl_decode64

Fabian Fagerholm fabbe at paniq.net
Fri Jul 13 13:16:03 UTC 2007


Hello Debian Kolab Maintainers,

Your Debian package kolab-cyrus-imapd uses the sasl_decode64 function,
which is part of libsasl2. In etch, the Cyrus SASL packaging team
included a patch that allows base64 input data to be terminated by CR,
LF, or CRLF. This is against RFC 4648, which defines base64. Upstream
fixed their code to be RFC-compliant but since some applications
incorrectly assume the old behaviour, and since it was very late in the
etch release cycle, we decided to err on the side of caution and not
risk breakage in applications using Cyrus SASL.

We would like to be RFC compliant and follow our upstream as close as
possible, and we are therefore preparing to drop the patch in the near
future. This means that some applications could stop working because
they don't properly sanitise base64 data before passing it to
sasl_decode64, resulting in an error. Proper sanitation means removing
trailing CR/LF/CRLF from strings passed to sasl_decode64, if there is a
possibility that there will be such trailing garbage in the base64 data.

If you suspect that your package doesn't properly sanitise base64 data,
please take it up with your upstream and get the issue fixed. We will
try to help you in any way we can, but we rely on your expertise of your
own package and your ability to judge the gravity of this issue for your
users.

We would appreciate a note from you, giving your input on the issue --
if you foresee any problems, if you know your package already properly
sanitises base64 data, if you already know when you would be able to
apply a fix, and so on. We will try to confirm as many packages as
possible before removing the patch, but we will also not wait
indefinitely, as this change needs to get proper field testing and we
are targeting the lenny release.

Since your package has the same upstream as ours, there shouldn't be any
problems. However, better safe than sorry.

References: Debian bugs #431191 and #400955,
kolab-cyrus-imapd-2.2.13/imap/saslserver.c
kolab-cyrus-imapd-2.2.13/imap/saslclient.c
kolab-cyrus-imapd-2.2.13/installsieve/isieve.c
kolab-cyrus-imapd-2.2.13/installsieve/installscript.c
kolab-cyrus-imapd-2.2.13/timsieved/parser.c
kolab-cyrus-imapd-2.2.13/perl/sieve/lib/isieve.c
kolab-cyrus-imapd-2.2.13/netnews/inn.diffs
kolab-cyrus-imapd-2.2.13/imtest/imtest.c

Thanks for your cooperation,
-- 
Fabian Fagerholm <fabbe at paniq.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/pkg-kolab-devel/attachments/20070713/103635f9/attachment.pgp 


More information about the pkg-kolab-devel mailing list