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 #17

Open
BlackFan opened this issue Jun 16, 2021 · 0 comments
Open

Prototype Pollution #17

BlackFan opened this issue Jun 16, 2021 · 0 comments

Comments

@BlackFan
Copy link

BlackFan commented Jun 16, 2021

The parse function is vulnerable to Prototype Pollution.

Example:

var query = require('querystring');
query.parse('__proto__[123]=VULN');

Attacker could set the property Object.prototype[NUMBER], which could result in XSS.

Example of XSS exploitation in combination with the Knockout.js library (only numeric-only keys are used):
https://github.com/BlackFan/client-side-prototype-pollution/blob/master/gadgets/knockout.md

Originally found by @masatokinugawa in a third-party library that uses component/querystring.

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

Successfully merging a pull request may close this issue.

1 participant