Advisory

GHSA-2548-q746-x5x6

Also known as: CVE-2021-23359

Summary

Code injection in port-killer

Details

This affects all versions of package port-killer. If (attacker-controlled) user input is given, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization. Running this PoC will cause the command touch success to be executed, leading to the creation of a file called success.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-04-13 15:20 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

port-killer

npm · All systems

Affected

  • introduced 0, last affected 1.0.1 (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