Command Injectionsysteminformation is a simple system and OS information library.
Affected versions of this package are vulnerable to Command Injection through the checkLinuxDCHPInterfaces() function in lib/network.js. An attacker can execute arbitrary commands by supplying a malicious source path in a Linux interfaces(5) configuration file that networkInterfaces() parses. The vulnerable code reads /etc/network/interfaces and recursively follows source directives, then interpolates the parsed path unquoted into a shell command passed to execSync(). Any process calling networkInterfaces() on a system where an attacker can influence a sourced interfaces file can be made to run injected commands with the privileges of that Node.js process.
How to fix Command Injection? Upgrade systeminformation to version 5.31.7 or higher.
| |
Command Injectionsysteminformation is a simple system and OS information library.
Affected versions of this package are vulnerable to Command Injection in the networkInterfaces function when handling NetworkManager connection profile names obtained from nmcli device status output. An attacker can execute arbitrary shell commands with the privileges of the calling Node.js process by creating or renaming an active NetworkManager connection profile to include shell metacharacters, which are then unsafely interpolated into shell commands executed by the process.
How to fix Command Injection? Upgrade systeminformation to version 5.31.6 or higher.
| |
Command Injectionsysteminformation is a simple system and OS information library.
Affected versions of this package are vulnerable to Command Injection via the wifiNetworks() function. Although the iface parameter is sanitized, it is passed unsanitized to execSync() when a timeout triggers a retry. An attacker can execute arbitrary operating system commands by supplying crafted input to the iface parameter.
How to fix Command Injection? Upgrade systeminformation to version 5.30.8 or higher.
| |
Command Injectionsysteminformation is a simple system and OS information library.
Affected versions of this package are vulnerable to Command Injection via the versions() function, which executes a locate command to find a PostgreSQL installation on Linux. An attacker who can write files to the target filesystem can execute arbitrary commands with the privileges of the running process by planting a file whose name contains shell metacharacters. The attacker must have sufficient permissions to write files in directories indexed by updatedb.
How to fix Command Injection? Upgrade systeminformation to version 5.31.0 or higher.
| |
Command Injectionsysteminformation is a simple system and OS information library.
Affected versions of this package are vulnerable to Command Injection via the fsSize function when the drive parameter is concatenated into a PowerShell command without proper sanitization. An attacker can execute arbitrary commands on the underlying Windows system by supplying crafted input to the drive parameter.
##Workaround
This vulnerability could be mitigated by applying util.sanitizeShellString() to the drive parameter, consistent with other functions in the codebase.
How to fix Command Injection? Upgrade systeminformation to version 5.27.14 or higher.
| |
Arbitrary Code Injectionsysteminformation is a simple system and OS information library.
Affected versions of this package are vulnerable to Arbitrary Code Injection through the getWindowsIEEE8021x() function. An attacker can execute arbitrary commands on the system by injecting malicious commands into an SSID and convincing a user to connect to it. The function then passes this value to the command line without proper sanitization.
Note: This is only exploitable on Windows.
How to fix Arbitrary Code Injection? Upgrade systeminformation to version 5.23.8 or higher.
| |
Arbitrary Command Injectionsysteminformation is a simple system and OS information library.
Affected versions of this package are vulnerable to Arbitrary Command Injection via the wifiConnections() and wifiNetworks() functions. An attacker can inject malicious commands by crafting detected SSIDs.
How to fix Arbitrary Command Injection? Upgrade systeminformation to version 5.21.7 or higher.
| |