Arbitrary File Write in cli
Low severity
GitHub Reviewed
Published
Feb 18, 2019
to the GitHub Advisory Database
•
Updated Jan 9, 2023
Description
Published to the GitHub Advisory Database
Feb 18, 2019
Reviewed
Jun 16, 2020
Last updated
Jan 9, 2023
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 thecli
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.
Recommendation
Update to version 1.0.0 or later.
References