<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-text-plain" wrap="true" graphical-quote="true"
style="font-family: -moz-fixed; font-size: 12px;" lang="x-western">
<pre wrap="">Package: libsasl2-modules-ldap
Version: 2.1.25.dfsg1-5
Severity: important
Tags: upstream security patch
Hi,
there is problem with ldap-based username canonicalization, when the
canon_attr attribute (that is not RDN) value returned by LDAP is shorter
(fever characters) than original username (provided as input to auxprop)
had. For example:
original login: <a class="moz-txt-link-abbreviated" href="mailto:ptomulik@example.com">ptomulik@example.com</a>
canonical val: 1<a class="moz-txt-link-abbreviated" href="mailto:1234@example.com">234@example.com</a>
result: 1<a class="moz-txt-link-abbreviated" href="mailto:1234@example.comcom">234@example.com.com</a>
This may be observed, for example, if one does canonicalization with auxprop +
ldapdb and passes canonical name to saslauthd.
It's enough to look into 'plugins/ldapdb.c' to see the cause . The problematic
function is ldapdb_canon_server() which sometimes forgots to append trailing
'\0' to output buffer.
I attach patch which fixes this issue.
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libsasl2-modules-ldap depends on:
ii libc6 2.13-35
ii libldap-2.4-2 2.4.31-1
ii libsasl2-modules 2.1.25.dfsg1-5
libsasl2-modules-ldap recommends no packages.
libsasl2-modules-ldap suggests no packages.
</pre>
</div>
<pre class="moz-signature" cols="72">--
Paweł Tomulik, tel. +48 22 234 7374
Instytut Techniki Lotniczej i Mechaniki Stosowanej
Politechnika Warszawska
</pre>
</body>
</html>