Check the GSS-API checksum exists before trying to use it [CVE-2010-1321]

This was introduced by checking the Kerberos 5 checksum as a
alternative to the 8003 checksum.

Thanks to MIT Kerberos and Shawn Emery for forwarding this issue
This commit is contained in:
Love Hornquist Astrand
2010-05-26 11:53:31 -05:00
parent 7ecd5b5f9d
commit a7e8f05c9b
2 changed files with 7 additions and 5 deletions

View File

@@ -182,11 +182,6 @@ _gsskrb5_verify_8003_checksum(
int DlgOpt;
static unsigned char zeros[16];
if (cksum == NULL) {
*minor_status = 0;
return GSS_S_BAD_BINDINGS;
}
/* XXX should handle checksums > 24 bytes */
if(cksum->cksumtype != CKSUMTYPE_GSSAPI || cksum->checksum.length < 24) {
*minor_status = 0;