child_process.exec()

The node:child_process function that runs a whole command string through a shell and buffers all its output in memory.

Building an exec() command from user input lets attackers run any command with your service's permissions.

In more detail

Because the shell interprets the string, any user input pasted into it can add extra commands. Output larger than maxBuffer kills the child.

Related terms

Taught in

References