Advisory

GHSA-7qmm-q394-fmch

Also known as: CVE-2021-23355

Summary

Command Injection in ps-kill

Details

This affects all versions of package ps-kill. If (attacker-controlled) user input is given to the kill function, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization in the index.js file.

PoC (provided by reporter):

var ps_kill = require('ps-kill');
ps_kill.kill('$(touch success)', function() {});

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-03-19 21:19 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

ps-kill

npm · All systems

Affected

  • introduced 0, last affected 1.0.0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences