CVE-2016-10538
Arbitrary File Write in cli
Auswirkung
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.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, mit einem normalen Benutzerkonto, allerdings muss ein Nutzer etwas tun, etwa eine Datei oder einen Link öffnen. Bei Erfolg: geringes Risiko, dass Daten oder Systeme verändert werden.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| npm | cli | < 1.0.0 | 1.0.0 |
Betroffene Produkte
| Hersteller | Produkt | Betroffene Versionen |
|---|---|---|
| Cli Project | Cli | vor 1.0.0 |
| Debian | Debian Linux | Version 8.0 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809252
- https://github.com/node-js-libs/cli/issues/81
- https://nodesecurity.io/advisories/95
- https://github.com/advisories/GHSA-6cpc-mj5c-m9rq
- https://nvd.nist.gov/vuln/detail/CVE-2016-10538
- https://www.npmjs.com/advisories/95