|
|
3e8eac |
From 033aaf84f7d4802120aa63d3de7f126e2a790a0d Mon Sep 17 00:00:00 2001
|
|
|
3e8eac |
From: Cathy Avery <cavery@redhat.com>
|
|
|
3e8eac |
Date: Mon, 29 Aug 2022 12:50:45 -0400
|
|
|
3e8eac |
Subject: [PATCH] Properly check authorization on incoming guestOps requests.
|
|
|
3e8eac |
|
|
|
3e8eac |
RH-Author: Cathy Avery <cavery@redhat.com>
|
|
|
3e8eac |
RH-MergeRequest: 13: Properly check authorization on incoming guestOps requests.
|
|
|
3e8eac |
RH-Bugzilla: 2119285
|
|
|
3e8eac |
RH-Acked-by: Mohamed Gamal Morsy <mmorsy@redhat.com>
|
|
|
3e8eac |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
3e8eac |
RH-Commit: [1/1] 7c92651ede82ff9431eaaf7a24889d50ad77e7e3
|
|
|
3e8eac |
|
|
|
3e8eac |
Tested: Tested by QE
|
|
|
3e8eac |
Upstream Status: origin/master
|
|
|
3e8eac |
Conflicts: None
|
|
|
3e8eac |
|
|
|
3e8eac |
commit 70a74758bfe0042c27f15ce590fb21a2bc54d745
|
|
|
3e8eac |
Author: John Wolfe <jwolfe@vmware.com>
|
|
|
3e8eac |
Date: Sun Aug 21 07:56:49 2022 -0700
|
|
|
3e8eac |
|
|
|
3e8eac |
Properly check authorization on incoming guestOps requests.
|
|
|
3e8eac |
|
|
|
3e8eac |
Fix public pipe request checks. Only a SessionRequest type should
|
|
|
3e8eac |
be accepted on the public pipe.
|
|
|
3e8eac |
|
|
|
3e8eac |
Signed-off-by: Cathy Avery <cavery@redhat.com>
|
|
|
3e8eac |
---
|
|
|
3e8eac |
open-vm-tools/vgauth/serviceImpl/proto.c | 6 +++++-
|
|
|
3e8eac |
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
3e8eac |
|
|
|
3e8eac |
diff --git a/open-vm-tools/vgauth/serviceImpl/proto.c b/open-vm-tools/vgauth/serviceImpl/proto.c
|
|
|
3e8eac |
index db7159ee..6c672601 100644
|
|
|
3e8eac |
--- a/open-vm-tools/vgauth/serviceImpl/proto.c
|
|
|
3e8eac |
+++ b/open-vm-tools/vgauth/serviceImpl/proto.c
|
|
|
3e8eac |
@@ -1,5 +1,5 @@
|
|
|
3e8eac |
/*********************************************************
|
|
|
3e8eac |
- * Copyright (C) 2011-2016,2019-2021 VMware, Inc. All rights reserved.
|
|
|
3e8eac |
+ * Copyright (C) 2011-2016,2019-2022 VMware, Inc. All rights reserved.
|
|
|
3e8eac |
*
|
|
|
3e8eac |
* This program is free software; you can redistribute it and/or modify it
|
|
|
3e8eac |
* under the terms of the GNU Lesser General Public License as published
|
|
|
3e8eac |
@@ -1201,6 +1201,10 @@ Proto_SecurityCheckRequest(ServiceConnection *conn,
|
|
|
3e8eac |
VGAuthError err;
|
|
|
3e8eac |
gboolean isSecure = ServiceNetworkIsConnectionPrivateSuperUser(conn);
|
|
|
3e8eac |
|
|
|
3e8eac |
+ if (conn->isPublic && req->reqType != PROTO_REQUEST_SESSION_REQ) {
|
|
|
3e8eac |
+ return VGAUTH_E_PERMISSION_DENIED;
|
|
|
3e8eac |
+ }
|
|
|
3e8eac |
+
|
|
|
3e8eac |
switch (req->reqType) {
|
|
|
3e8eac |
/*
|
|
|
3e8eac |
* This comes over the public connection; alwsys let it through.
|
|
|
3e8eac |
--
|
|
|
3e8eac |
2.31.1
|
|
|
3e8eac |
|