MichMich/MagicMirror

The open source modular smart mirror platform.
Vulnerabilities 1 via 1 paths
Dependencies 273
Source GitHub
Commit 6db61b43

Snyk continuously finds and fixes vulnerabilities in your dependencies.

Filter by issue type
  • 1
Filter by issue policy
  • 0
  • 0
low severity

Prototype Pollution

  • Vulnerable module: lodash
  • Introduced through: express-ipfilter@0.3.1

Detailed paths

  • Introduced through: magicmirror@MichMich/MagicMirror#6db61b43572d163efb6369f60238975c3e6c3efc express-ipfilter@0.3.1 lodash@3.10.1
    Remediation: Run snyk wizard to patch lodash@3.10.1.

Overview

lodash is a javaScript utility library delivering modularity, performance & extras.

Affected versions of this package are vulnerable to Prototype Pollution. The utilities function allow modification of the Object prototype. If an attacker can control part of the structure passed to this function, they could add or modify an existing property.

PoC by Olivier Arteau (HoLyVieR)

var _= require('lodash');
var malicious_payload = '{"__proto__":{"oops":"It works !"}}';

var a = {};
console.log("Before : " + a.oops);
_.merge({}, JSON.parse(malicious_payload));
console.log("After : " + a.oops);

Remediation

Upgrade lodash to version 4.17.5 or higher.

References