Security fix for dll load paths in Tools and vgauth.
/*********************************************************
- * Copyright (C) 2007-2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 2007-2019 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
#include "vmcheck.h"
#if defined(_WIN32)
#include "getoptwin32.h"
+#include "vmware/tools/win32util.h"
#endif
#include "checkvm_version.h"
uint32 screensize = 0;
uint32 hwVersion;
+#if defined(_WIN32)
+ WinUtil_EnableSafePathSearching(TRUE);
+#endif
+
if (!VmCheck_IsVirtualWorld()) {
fprintf(stdout, "Not running in a virtual machine.\n");
return 1;
/*********************************************************
- * Copyright (C) 2006-2017 VMware, Inc. All rights reserved.
+ * Copyright (C) 2006-2019 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
#include "str.h"
#include "vmware/tools/log.h"
#include "vmware/tools/utils.h"
+#ifdef _WIN32
+#include "vmware/tools/win32util.h"
+#endif
#include "hgfsclient_version.h"
#include "vm_version.h"
main(int argc, // IN
char *argv[]) // IN
{
+#ifdef _WIN32
+ WinUtil_EnableSafePathSearching(TRUE);
+#endif
if (argc == 2 &&
(!strncmp(argv[1], "-h", 2) ||
!strncmp(argv[1], "--help", 6))) {
/*********************************************************
- * Copyright (C) 2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 2016-2019 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
#include "dynbuf.h"
#include "vmware/tools/guestrpc.h"
#include "vmware/tools/log.h"
+#if defined(_WIN32)
+#include "vmware/tools/win32util.h"
+#endif
#include "debug.h"
// Core Namespace commands
{ NULL }
};
+#if defined(_WIN32)
+ WinUtil_EnableSafePathSearching(TRUE);
+#endif
+
gAppName = g_path_get_basename(argv[0]);
g_set_prgname(gAppName);
/*********************************************************
- * Copyright (C) 2002-2017 VMware, Inc. All rights reserved.
+ * Copyright (C) 2002-2019 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
#include "rpcout.h"
#include "str.h"
#include "backdoor_def.h"
+#ifdef _WIN32
+#include "vmware/tools/win32util.h"
+#endif
#define NOT_VMWARE_ERROR "Failed sending message to VMware.\n"
{
int ret = 1;
+#ifdef _WIN32
+ WinUtil_EnableSafePathSearching(TRUE);
+#endif
+
if (argc <= 1) {
PrintUsage();
return 1;
/*********************************************************
- * Copyright (C) 2008-2018 VMware, Inc. All rights reserved.
+ * Copyright (C) 2008-2019 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
#include "vmware/tools/i18n.h"
#include "vmware/tools/log.h"
#include "vmware/tools/utils.h"
+#if defined(_WIN32)
+#include "vmware/tools/win32util.h"
+#endif
+
#include "vm_version.h"
#include "vm_product_versions.h"
#if defined(_WIN32)
char **argv;
+
+ WinUtil_EnableSafePathSearching(TRUE);
+
Unicode_InitW(argc, wargv, NULL, &argv, NULL);
#else
Unicode_Init(argc, &argv, NULL);
/*********************************************************
- * Copyright (C) 2011-2018 VMware, Inc. All rights reserved.
+ * Copyright (C) 2011-2019 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
main(int argc,
char *argv[])
{
+#ifdef _WIN32
+ WinUtil_EnableSafePathSearching();
+#endif
+
gPrefs = Pref_Init(VGAUTH_PREF_CONFIG_FILENAME);
/*
/*********************************************************
- * Copyright (C) 2006-2017 VMware, Inc. All rights reserved.
+ * Copyright (C) 2006-2019 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
#include "xferlogs_version.h"
#include "vm_version.h"
+#ifdef _WIN32
+#include "vmware/tools/win32util.h"
+#endif
#include "embed_version.h"
VM_EMBED_VERSION(XFERLOGS_VERSION_STRING);
{
int status;
+#ifdef _WIN32
+ WinUtil_EnableSafePathSearching(TRUE);
+#endif
+
if (argc == 2 &&
(!strncmp(argv[1], "-h", 2) ||
!strncmp(argv[1], "--help", 6))) {