- Allow only X509 certs to verify the SAML token signature.
This commit is contained in:
parent
574359d30a
commit
80346230b2
@ -0,0 +1,37 @@
|
|||||||
|
From 2dc6f33e455c7d0dceb2d444632b35806613c510 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Miroslav Rezanina <mrezanin@redhat.com>
|
||||||
|
Date: Thu, 7 Sep 2023 02:27:50 -0400
|
||||||
|
Subject: [PATCH] VGAuth: Allow only X509 certs to verify the SAML token
|
||||||
|
signature.
|
||||||
|
|
||||||
|
RH-Author: Miroslav Rezanina <mrezanin@redhat.com>
|
||||||
|
RH-Bugzilla: 2236544
|
||||||
|
RH-CVE: CVE-2023-20900
|
||||||
|
|
||||||
|
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
||||||
|
---
|
||||||
|
open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c | 9 ++++++++-
|
||||||
|
1 file changed, 8 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c b/open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c
|
||||||
|
index f5541a9a..0b2a945b 100644
|
||||||
|
--- a/open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c
|
||||||
|
+++ b/open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c
|
||||||
|
@@ -1335,7 +1335,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;
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.39.3
|
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
Name: open-vm-tools
|
Name: open-vm-tools
|
||||||
Version: %{toolsversion}
|
Version: %{toolsversion}
|
||||||
Release: 2%{?dist}.2.alma.1
|
Release: 2%{?dist}.3.alma.1
|
||||||
Summary: Open Virtual Machine Tools for virtual machines hosted on VMware
|
Summary: Open Virtual Machine Tools for virtual machines hosted on VMware
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: https://github.com/vmware/%{name}
|
URL: https://github.com/vmware/%{name}
|
||||||
@ -57,6 +57,8 @@ Patch1: ovt-Remove-some-dead-code.patch
|
|||||||
# Patches were taken from:
|
# Patches were taken from:
|
||||||
# https://github.com/vmware/open-vm-tools/commit/9d458c53a7a656d4d1ba3a28d090cce82ac4af0e.patch
|
# https://github.com/vmware/open-vm-tools/commit/9d458c53a7a656d4d1ba3a28d090cce82ac4af0e.patch
|
||||||
Patch2: Track-Linux-filesystem-id-FSID-for-quiesced-frozen-filesystems.patch
|
Patch2: Track-Linux-filesystem-id-FSID-for-quiesced-frozen-filesystems.patch
|
||||||
|
# https://gitlab.com/redhat/centos-stream/rpms/open-vm-tools/-/raw/fd4d578cf736199d35bd8531b9a53d2fcabc22ae/ovt-VGAuth-Allow-only-X509-certs-to-verify-the-SAML-toke.patch
|
||||||
|
Patch3: ovt-VGAuth-Allow-only-X509-certs-to-verify-the-SAML-toke.patch
|
||||||
|
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
@ -415,6 +417,9 @@ fi
|
|||||||
%{_bindir}/vmware-vgauth-smoketest
|
%{_bindir}/vmware-vgauth-smoketest
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 21 2023 Eduard Abdullin <eabdullin@almalinux.org> - 12.1.5-1.el8_8.3.alma.1
|
||||||
|
- Allow only X509 certs to verify the SAML token signature.
|
||||||
|
|
||||||
* Tue Sep 12 2023 Eduard Abdullin <eabdullin@almalinux.org> - 12.1.5-1.el8_8.2.alma.1
|
* Tue Sep 12 2023 Eduard Abdullin <eabdullin@almalinux.org> - 12.1.5-1.el8_8.2.alma.1
|
||||||
- Track Linux filesystem id (FSID) for quiesced (frozen) filesystems
|
- Track Linux filesystem id (FSID) for quiesced (frozen) filesystems
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user