]> git.ipfire.org Git - thirdparty/krb5.git/commit
Allow gss_unwrap_iov() of unpadded RC4 tokens 1093/head
authorGreg Hudson <ghudson@mit.edu>
Sun, 12 Jul 2020 01:57:30 +0000 (21:57 -0400)
committerGreg Hudson <ghudson@mit.edu>
Wed, 22 Jul 2020 19:16:27 +0000 (15:16 -0400)
commit3f204ddd567715ef360b4bb0b32961b6a9877f9d
treeb67204c8a29122bd2a73cc5f6e3e95df158b61ad
parent99f7ad2831a01f264c07eed42a0a3a9336b86184
Allow gss_unwrap_iov() of unpadded RC4 tokens

Windows Remote Management, when used with an RC4 session key, appears
to generate GSS wrap tokens with no padding instead of the expected
one byte (RFC 4757 section 7.3).  These tokens cannot be decoded with
gss_unwrap() or a STREAM buffer (even with Microsoft SSPI), but SSPI
allows them to be decoded using explicit IOVs with either a
zero-length padding buffer or no padding buffer.  Allow these cases to
work in kg_fixup_padding_iov().  (It is already possible to make this
work with HEADER | DATA | DATA, but only by
accident--kg_fixup_padding_iov() doesn't find a data buffer because
kg_locate_iov() only looks for singleton buffers, so it exits early.)

ticket: 8926 (new)
tags: pullup
target_version: 1.18-next
src/lib/gssapi/krb5/util_crypt.c