* Fri Sep 08 2023 Miroslav Rezanina <mrezanin@redhat.com> - 12.2.5-2
- ovt-VGAuth-Allow-only-X509-certs-to-verify-the-SAML-toke.patch [bz#2236544] - Resolves: bz#2236544 (CVE-2023-20900 open-vm-tools: SAML token signature bypass [rhel-9])
This commit is contained in:
parent
592b750d34
commit
fd4d578cf7
@ -32,7 +32,7 @@
|
||||
|
||||
Name: open-vm-tools
|
||||
Version: %{toolsversion}
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Open Virtual Machine Tools for virtual machines hosted on VMware
|
||||
License: GPLv2
|
||||
URL: https://github.com/vmware/%{name}
|
||||
@ -52,6 +52,8 @@ ExclusiveArch: %{ix86} x86_64 aarch64
|
||||
%endif
|
||||
|
||||
#Patch0: name.patch
|
||||
# For bz#2236544 - CVE-2023-20900 open-vm-tools: SAML token signature bypass [rhel-9]
|
||||
Patch1: ovt-VGAuth-Allow-only-X509-certs-to-verify-the-SAML-toke.patch
|
||||
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
@ -409,6 +411,11 @@ fi
|
||||
%files test
|
||||
%{_bindir}/vmware-vgauth-smoketest
|
||||
%changelog
|
||||
* Fri Sep 08 2023 Miroslav Rezanina <mrezanin@redhat.com> - 12.2.5-2
|
||||
- ovt-VGAuth-Allow-only-X509-certs-to-verify-the-SAML-toke.patch [bz#2236544]
|
||||
- Resolves: bz#2236544
|
||||
(CVE-2023-20900 open-vm-tools: SAML token signature bypass [rhel-9])
|
||||
|
||||
* Mon Jul 10 2023 Miroslav Rezanina <mrezanin@redhat.com> - 12.2.5-1
|
||||
- Rebaer to open-vm-tools 12.2.5
|
||||
- Resolves: bz#2214862
|
||||
|
@ -0,0 +1,38 @@
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user