Command Injection Vulnerability
+Affected versions:
+ < 4.31.1
+ Date: 2020-12-11
+ CVE indentifier (not yet)
+
Impact
+Here we had an issue that there was a possibility to inject commands to the command line of your machine via systeminformation. Affected commands: inetLatency().
+ +Patch
+Problem was fixed with a shell string sanitation fix. Please upgrade to version >= 4.31.1
+ +Workarround
+If you cannot upgrade, be sure to check or sanitize service parameter strings that are passed to inetLatency()
+ +command injection vulnerability - prototype pollution
Affected versions:
< 4.30.5
diff --git a/lib/util.js b/lib/util.js
index 205e574..1931a88 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -521,6 +521,8 @@ function sanitizeShellString(str) {
s[i] === '\\' ||
s[i] === '\t' ||
s[i] === '\n' ||
+ s[i] === '\'' ||
+ s[i] === '`' ||
s[i] === '"')) {
result = result + s[i];
}