Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Prevent prototype pollution of returned diff object #87

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

Merged
mattphillips merged 2 commits into main from mp/pollution
Nov 12, 2022
Merged

Conversation

@mattphillips
Copy link
Owner

@mattphillips mattphillips commented Nov 12, 2022
edited
Loading

Fixes #85

Copy link

codecov-commenter commented Nov 12, 2022
edited
Loading

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage 👍

Coverage data is based on head (55f9c3c) compared to base (ba84464).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@ Coverage Diff @@
## main #87 +/- ##
=========================================
 Coverage 100.00% 100.00% 
=========================================
 Files 7 7 
 Lines 109 102 -7 
 Branches 36 36 
=========================================
- Hits 109 102 -7 
Impacted Files Coverage Δ
src/added.js 100.00% <100.00%> (ø)
src/deleted.js 100.00% <100.00%> (ø)
src/diff.js 100.00% <100.00%> (ø)
src/updated.js 100.00% <100.00%> (ø)
src/utils.js 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link

@Retr02332 Retr02332 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to my tests, I can no longer contaminate the prototype:

image

Copy link

Since the library was the one who executed the vulnerable action, it must be the one who validates the prototype. Therefore, if it is a security flaw.

Thank you very much for fixing this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer

@Retr02332 Retr02332 Retr02332 left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Critical security vulnerability

AltStyle によって変換されたページ (->オリジナル) /