Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2020-7602 EUVD-2021-1055GHSA-f8fh-8rgm-227hSNYK-JS-NODEPROMPTHERE-560115

OS Command Injection in node-prompt-here

Published Mar 15, 2020 · Updated Aug 4, 2024 · Assigned by snyk

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.

Affected products

VendorProductAffectedFixed
— node-prompt-here All versions including 1.0.1 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm node-prompt-here <= 1.0.1 — GHSA-f8fh-8rgm-227h

References