2024-07-27 06:49:29 +00:00
|
|
|
# See https://github.com/netdata/netdata/pull/17377#issuecomment-2183017868
|
|
|
|
# https://github.com/netdata/netdata/security/advisories/GHSA-pmhq-4cxq-wj93
|
|
|
|
|
|
|
|
diff --git a/src/collectors/plugins.d/ndsudo.c b/src/collectors/plugins.d/ndsudo.c
|
2024-09-19 14:19:46 +00:00
|
|
|
index d53ca9f28..b42a121bf 100644
|
2024-07-27 06:49:29 +00:00
|
|
|
--- a/src/collectors/plugins.d/ndsudo.c
|
|
|
|
+++ b/src/collectors/plugins.d/ndsudo.c
|
|
|
|
@@ -357,9 +357,6 @@ int main(int argc, char *argv[]) {
|
|
|
|
return 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
- char new_path[] = "PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin";
|
|
|
|
- putenv(new_path);
|
|
|
|
-
|
2024-09-19 14:19:46 +00:00
|
|
|
setuid(0);
|
|
|
|
setgid(0);
|
|
|
|
setegid(0);
|