GHSA-6cpc-mj5c-m9rq

    Dashboard / Vulnerabilities / GHSA-6cpc-mj5c-m9rq

    GHSA-6cpc-mj5c-m9rq

    Published: 18 Feb 2019Last Modified: 8 Nov 2023

    Summary: Arbitrary File Write in cli

    Details: Affected versions of `cli` use predictable temporary file names. If an attacker can create a symbolic link at the location of one of these temporarly file names, the attacker can arbitrarily write to any file that the user which owns the `cli` process has permission to write to. ## Proof of Concept By creating Symbolic Links at the following locations, the target of the link can be written to. ``` lock_file = '/tmp/' + cli.app + '.pid', log_file = '/tmp/' + cli.app + '.log'; ``` ## Recommendation Update to version 1.0.0 or later.

    Affected packages

    Package

    Name: cli

    Purl: pkg:npm/cli

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -1.0.0

    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