Lucene search

K
nodejsSteve KempNODEJS:95
HistoryMar 28, 2016 - 9:24 p.m.

Arbitrary File Write

2016-03-2821:24:14
Steve Kemp
www.npmjs.com
13

0.001 Low

EPSS

Percentile

41.1%

Overview

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.

References

CPENameOperatorVersion
clilt1.0.0

0.001 Low

EPSS

Percentile

41.1%