]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Security concern: Certificates contain identifying information
authorOliver Kurth <okurth@vmware.com>
Fri, 9 Nov 2018 21:22:24 +0000 (13:22 -0800)
committerOliver Kurth <okurth@vmware.com>
Fri, 9 Nov 2018 21:22:24 +0000 (13:22 -0800)
Do not log the contents of certificates which contain identifying
information such as e-mail addresses.

open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c

index 787a5faa8cb1c9fe9b61c19087d42622cc98252b..9fa2aab299fa348118fd79ba76b6e34043ab389a 100644 (file)
@@ -1128,7 +1128,19 @@ BuildCertChain(xmlNodePtr x509Node,
          g_warning("PEM cert: %s\n", pemCert);
          VMXLog_Log(VMXLOG_LEVEL_WARNING,
                     "%s: Failed to add cert to key manager\n", __FUNCTION__);
-         VMXLog_Log(VMXLOG_LEVEL_WARNING, "PEM cert: %s\n", pemCert);
+         /*
+          * XXX
+          *
+          * Certificates can have data (eg email addresses)
+          * we don't want to log those to the VMX due to privacy concerns.
+          * So let's not log to VMX at all until we have a reliable way to
+          * cleanse them -- assuming that doesn't make them worthless
+          * since the data won't match anything in the aliasStore
+          * or a SAML token.
+          */
+#if 0
+           VMXLog_Log(VMXLOG_LEVEL_WARNING, "PEM cert: %s\n", pemCert);
+#endif
          goto done;
       }