Debian Codegraph @

debian/NEWS

raw
1 pykerberos (1.1.5-1) unstable; urgency=medium
2
3 The python-kerberos checkPassword() method has been badly insecure in
4 previous releases. It used to do (and still does by default) a kinit
5 (AS-REQ) to ask a KDC for a TGT for the given user principal, and
6 interprets the success or failure of that as indicating whether the
7 password is correct. It does not, however, verify that it actually spoke
8 to a trusted KDC: an attacker may simply reply instead with an AS-REP
9 which matches the password he just gave you.
10 .
11 Imagine you were verifying a password using LDAP authentication rather
12 than Kerberos: you would, of course, use TLS in conjunction with LDAP to
13 make sure you were talking to a real, trusted LDAP server. The same
14 requirement applies here. kinit is not a password-verification service.
15 .
16 The usual way of doing this is to take the TGT you've obtained with the
17 user's password, and then obtain a ticket for a principal for which the
18 verifier has keys (e.g. a web server processing a username/password form
19 login might get a ticket for its own HTTP/host@REALM principal), which
20 it can then verify. Note that this requires that the verifier has its
21 own Kerberos identity, which is mandated by the symmetric nature of
22 Kerberos (whereas in the LDAP case, the use of public-key cryptography
23 allows anonymous verification).
24 .
25 The fact of pykerberos being susceptible to KDC spoofing attacks has
26 been filed as CVE-2015-3206.
27 .
28 With this version of the pykerberos package a new option is introduced
29 for the checkPassword() method. Setting verify to True when using
30 checkPassword() will perform a KDC verification. For this to work, you
31 need to provide a krb5.keytab file containing service principal keys for
32 the service you intend to use.
33 .
34 As the default krb5.keytab file in /etc is normally not accessible by
35 non-root users/processes, you have to make sure a custom krb5.keytab
36 file containing the correct principal keys is provided to your
37 application using the KRB5_KTNAME environment variable.
38
39 -- Guido Günther <[email protected]> Sat, 22 Aug 2015 12:08:41 +0200