QID 150503
Date Published: 2022-04-28
QID 150503: NodeJS Command Injection Vulnerability (CVE-2021-21315)
Node.js is an open-source, cross-platform, back-end JavaScript runtime environment that runs on the V8 engine and executes JavaScript code outside a web browser.
The System Information Library for Node.JS (npm package "systeminformation") is an open source collection of functions to retrieve detailed hardware, system and OS information. In systeminformation before version 5.3.1 there is a command injection vulnerability.
Affected Versions:
System Information Library prior to 5.3.1
QID Detection Logic (Unauthenticated):
This QID sends a HTTP GET request to "api/getServices" endpoint with specially crafted Out of Band payload inside "name" where vulnerable servers will make a DNS query that will trigger Qualys Periscope detection mechanism.
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary commands on the target system.
As a workaround instead of upgrading, be sure to check or sanitize service parameters that are passed to si.inetLatency(), si.inetChecksite(), si.services(), si.processLoad() ... do only allow strings, reject any arrays. String sanitation works as expected.
CVEs related to QID 150503
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| Security Advisory |
|