]> git.ipfire.org Git - thirdparty/krb5.git/commit
Prevent requires_preauth bypass [CVE-2015-2694]
authorGreg Hudson <ghudson@mit.edu>
Tue, 24 Mar 2015 16:02:37 +0000 (12:02 -0400)
committerTom Yu <tlyu@mit.edu>
Tue, 28 Apr 2015 19:36:23 +0000 (15:36 -0400)
commitdf8afc60d970a7176a55ffe7ce21cfd57ba423cd
treefb533b3e8d2b8b2b06b3bd032e3f15f9597f06bb
parent1e21529e8ddb98f9b00aa8b1be35b7c69c0b3c76
Prevent requires_preauth bypass [CVE-2015-2694]

In the OTP kdcpreauth module, don't set the TKT_FLG_PRE_AUTH bit until
the request is successfully verified.  In the PKINIT kdcpreauth
module, don't respond with code 0 on empty input or an unconfigured
realm.  Together these bugs could cause the KDC preauth framework to
erroneously treat a request as pre-authenticated.

CVE-2015-2694:

In MIT krb5 1.12 and later, when the KDC is configured with PKINIT
support, an unauthenticated remote attacker can bypass the
requires_preauth flag on a client principal and obtain a ciphertext
encrypted in the principal's long-term key.  This ciphertext could be
used to conduct an off-line dictionary attack against the user's
password.

    CVSSv2 Vector: AV:N/AC:M/Au:N/C:P/I:P/A:N/E:POC/RL:OF/RC:C

(cherry picked from commit e3b5a5e5267818c97750b266df50b6a3d4649604)

ticket: 8160
version_fixed: 1.13.2
status: resolved
src/plugins/preauth/otp/main.c
src/plugins/preauth/pkinit/pkinit_srv.c