OSV 1.4.0 · github-reviewed · 修改于 2023-09-06 07:01
发布时间
2021-03-20 05:19
GitHub 审查时间
2021-03-17 06:05
NVD 发布时间
2021-03-16 01:15
源文件
advisories/github-reviewed/2021/03/GHSA-7qmm-q394-fmch/GHSA-7qmm-q394-fmch.json
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() {});