Files
CVEs-PoC/2021/CVE-2021-23359.md
T
2024-06-18 02:51:15 +02:00

18 lines
875 B
Markdown

### [CVE-2021-23359](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23359)
![](https://img.shields.io/static/v1?label=Product&message=port-killer&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=%3E%3D%200%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=Arbitrary%20Command%20Injection&color=brighgreen)
### Description
This affects all versions of package port-killer. If (attacker-controlled) user input is given, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization. Running this PoC will cause the command touch success to be executed, leading to the creation of a file called success.
### POC
#### Reference
- https://snyk.io/vuln/SNYK-JS-PORTKILLER-1078533
#### Github
No PoCs found on GitHub currently.