CVE-2020-7602
CRITICALnode-prompt-here <= 1.0.1 - OS Command Injection via getDevices Function
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2020-7602. PoCs published by dannyEndorTest.
AI-analyzed exploit summary This repository demonstrates a command injection vulnerability in 'node-prompt-here' (CVE-2020-7602) by passing an unsanitized environment variable (NM_CLI) to a shell command. The Dockerfile and main.js show how arbitrary commands can be executed via the NM_CLI_OVERRIDE environment variable.
Description
node-prompt-here through 1.0.1 allows execution of arbitrary commands. The "runCommand()" is called by "getDevices()" function in file "linux/manager.js", which is required by the "index. process.env.NM_CLI" in the file "linux/manager.js". This function is used to construct the argument of function "execSync()", which can be controlled by users without any sanitization.
Exploits (1)
This repository demonstrates a command injection vulnerability in 'node-prompt-here' (CVE-2020-7602) by passing an unsanitized environment variable (NM_CLI) to a shell command. The Dockerfile and main.js show how arbitrary commands can be executed via the NM_CLI_OVERRIDE environment variable.
References (1)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H