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

Tests for non-own property access #1280

Merged
merged 6 commits into from Nov 6, 2023
Merged

Conversation

ericcornelissen
Copy link
Owner

@ericcornelissen ericcornelissen commented Nov 3, 2023

Summary

Add a test to check for non-own property access which could be manipulated by prototype pollution. Fix such accesses to check if it is an own property first.

Because this is standard Node.js behavior I consider this a hardening measure, not a security bugfix.

@github-actions github-actions bot added the test Relates to testing label Nov 3, 2023
Copy link

codecov bot commented Nov 5, 2023

Codecov Report

Merging #1280 (5168f4c) into main (3182149) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main     #1280   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           16        16           
  Lines         1465      1482   +17     
=========================================
+ Hits          1465      1482   +17     
Flag Coverage Δ
e2e-MacOS 91.03% <100.00%> (+0.15%) ⬆️
e2e-Ubuntu 91.03% <100.00%> (+0.15%) ⬆️
e2e-Windows 90.27% <100.00%> (+0.20%) ⬆️
integration-MacOS 99.62% <100.00%> (+<0.01%) ⬆️
integration-Ubuntu 99.16% <100.00%> (+0.01%) ⬆️
integration-Windows 98.79% <100.00%> (+0.02%) ⬆️
unit 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/options.js 100.00% <100.00%> (ø)

@ericcornelissen ericcornelissen marked this pull request as ready for review November 5, 2023 15:16
@ericcornelissen ericcornelissen merged commit c766179 into main Nov 6, 2023
32 checks passed
@ericcornelissen ericcornelissen deleted the non-own-property-access-test branch November 6, 2023 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Relates to testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant