CVE-2020-7602

node-prompt-here through 1.0.1 allows execution of arbitrary commands

published March 15, 2020

CVSS
—
EPSS
3%
Percentile
85.6
In the wild
Unconfirmed
What it is

⚠️ There's a sneaky flaw in node-prompt-here that lets unchecked user input execute arbitrary commands! Just think of it as a pizza restaurant that takes orders without checking if someone wants pineapple on their pizza. 🍕 This vulnerability is like a takeout order where the chef never checks the customer’s ID before making any dish. Imagine a customer asking for an 'explosive' topping—no questions asked, and the kitchen goes to work! An attacker could craft a command that allows them to execute whatever they want on your system. This could lead to data loss, unauthorized access, or even a full takeover of your environment—absolutely devastating if left unchecked!

Put simply

This vulnerability is like a takeout order where the chef never checks the customer’s ID before making any dish. Imagine a customer asking for an 'explosive' topping—no questions asked, and the kitchen goes to work! The vulnerability arises in version 1.0.1 of node-prompt-here, where the 'getDevices()' function calls 'runCommand()' using user-controlled input without proper sanitization before executing it with 'execSync()'. This allows attackers to inject and run arbitrary shell commands.

What to do

An attacker could craft a command that allows them to execute whatever they want on your system. This could lead to data loss, unauthorized access, or even a full takeover of your environment—absolutely devastating if left unchecked! To mitigate this risk, update node-prompt-here to a patched version (if available). Additionally, ensure any user inputs are thoroughly sanitized before being passed to command execution functions. Use tools like `escapeshellcmd()` to help with sanitization. You've got this! Fix these issues and keep your applications secure—you're a security hero! 🦸‍♂️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02670 · 85.6th percentile
Published
2020-03-15T21:26Z
EPSS history
Timeline
  • 15 MAR 21:26Z
    node-prompt-here through 1.0.1 allows execution of arbitrary commands
    cvelistv5