OS Command Injection in node-prompt-here
Critical severity
GitHub Reviewed
Published
May 7, 2021
to the GitHub Advisory Database
•
Updated Sep 13, 2023
Description
Published by the National Vulnerability Database
Mar 15, 2020
Reviewed
May 3, 2021
Published to the GitHub Advisory Database
May 7, 2021
Last updated
Sep 13, 2023
node-prompt-here through 1.0.1 allows execution of arbitrary commands. The
runCommand()
is called bygetDevices()
function in filelinux/manager.js
, which is required by theindex. process.env.NM_CLI
in the filelinux/manager.js
. This function is used to construct the argument of functionexecSync()
, which can be controlled by users without any sanitization.References