CVE-2022-2031 s4:kdc: Reject tickets during the last two minutes of their life
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 30 May 2022 07:18:17 +0000 (19:18 +1200)
committerJule Anger <janger@samba.org>
Wed, 27 Jul 2022 10:52:36 +0000 (10:52 +0000)
commitffb599050ae2c1b9d0746addfdac1e41866aa819
tree5006885005016201f20a76ff93a958b74174903f
parent018bdbc29db035e14019f0f58aba035cc86b534e
CVE-2022-2031 s4:kdc: Reject tickets during the last two minutes of their life

For Heimdal, this now matches the behaviour of Windows. The object of
this requirement is to ensure we don't allow kpasswd tickets, not having
a lifetime of more than two minutes, to be passed off as TGTs.

An existing requirement for TGTs to contain a REQUESTER_SID PAC buffer
suffices to prevent kpasswd ticket misuse, so this is just an additional
precaution on top.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15047

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
selftest/knownfail_heimdal_kdc
source4/kdc/wdc-samba4.c