Command Injection in ps-kill
Critical severity
GitHub Reviewed
Published
Mar 19, 2021
to the GitHub Advisory Database
•
Updated Sep 5, 2023
Description
Published by the National Vulnerability Database
Mar 15, 2021
Reviewed
Mar 16, 2021
Published to the GitHub Advisory Database
Mar 19, 2021
Last updated
Sep 5, 2023
This affects all versions of package ps-kill. If (attacker-controlled) user input is given to the kill function, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization in the index.js file.
PoC (provided by reporter):
References