Skip to content

Commit

Permalink
Allow only X509 certs to verify the SAML token signature.
Browse files Browse the repository at this point in the history
  • Loading branch information
fkaty committed Aug 25, 2023
1 parent d089aa2 commit 74b6d0d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c
Expand Up @@ -1356,7 +1356,14 @@ VerifySignature(xmlDocPtr doc,
*/
bRet = RegisterID(xmlDocGetRootElement(doc), "ID");
if (bRet == FALSE) {
g_warning("failed to register ID\n");
g_warning("Failed to register ID\n");
goto done;
}

/* Use only X509 certs to validate the signature */
if (xmlSecPtrListAdd(&(dsigCtx->keyInfoReadCtx.enabledKeyData),
BAD_CAST xmlSecKeyDataX509Id) < 0) {
g_warning("Failed to limit allowed key data\n");
goto done;
}

Expand Down

0 comments on commit 74b6d0d

Please sign in to comment.