CVE-2016-10538
UNKNOWN
Published 2018-05-31T20:00:00Z
Actions:
Expert Analysis
Professional remediation guidance
Get tailored security recommendations from our analyst team for CVE-2016-10538. We'll provide specific mitigation strategies based on your environment and risk profile.
No CVSS data available
Description
The package `node-cli` before 1.0.0 insecurely uses the lock_file and log_file. Both of these are temporary, but it allows the starting user to overwrite any file they have access to.
Available Exploits
No exploits available for this CVE.
Related News
No news articles found for this CVE.
Affected Products
Affected Versions:
GitHub Security Advisories
Community-driven vulnerability intelligence from GitHub
Advisory 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
npm
cli
ECOSYSTEM:
≥0
<1.0.0
CVSS Scoring
CVSS Score
2.5
References
Advisory provided by GitHub Security Advisory Database. Published: February 18, 2019, Modified: August 31, 2020
References
Published: 2018-05-31T20:00:00Z
Last Modified: 2024-09-17T01:36:47.221Z
Copied to clipboard!