NetSight
hoch7.5

CVE-2016-3956

npm Token Leak in npm

Auswirkung

Affected versions of the `npm` package include the bearer token of the logged in user in every request made by the CLI, even if the request is not directed towards the user's active registry. An attacker could create an HTTP server to collect tokens, and by various means including but not limited to install scripts, cause the npm CLI to make a request to that server, which would compromise the user's token. This compromised token could be used to do anything that the user could do, including publishing new packages. ## Recommendation 1. Update npm with `npm install npm@latest -g` 2. [Revoke your Tokens](https://www.npmjs.com/settings/tokens) 3. Enable [Two-Factor Authentication](https://docs.npmjs.com/getting-started/using-two-factor-authentication)

Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden.

Betroffene Pakete

ÖkosystemPaketBetroffenBehoben in
npmnpm<= 2.15.02.15.1

Betroffene Produkte

HerstellerProduktBetroffene Versionen
IBMSdk
bis einschließlich 1.1.0.20
bis einschließlich 1.2.0.10
bis einschließlich 4.4.1.0
Node.jsNode.js
Versionen 0.10.0, 0.10.1, 0.10.2, 0.10.3, 0.10.4, 0.10.5
Npmjsnpm
vor 2.15.1
ab 3.0.0 vor 3.8.3

Schwachstellenklasse

Referenzen