MichMich/MagicMirror

The open source modular smart mirror platform.
Vulnerabilities 1 via 1 paths
Dependencies 314
Source GitHub
Commit 60b9a5b9

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#60b9a5b9dad36a7748a5d1bdb3b32c0c6384e4c0 express-ipfilter@0.3.1 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