0.2.0 • Published 3 months ago

@fast-check/poisoning v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

@fast-check/poisoning

fast-check logo

Set of utilities to ease detection and revert of poisoning


Why?

In JavaScript, "prototype poisoning" is one of the most common source for CVEs or zero days. It allows attackers to change the behaviour of some defaults like Array.prototype.map, Map, Set... so that they behave differently and can be leveraged for evil stuffs. This package can be used in addition to fast-check in order to detect poisoning that may occur during your property based tests.

Easy to use

The package comes with:

  • assertNoPoisoning: assert that the defaults known when first importing the package in your code have not been changed
  • restoreGlobals: restore the defaults so that any change that could have been detected by assertNoPoisoning will be resolved

Minimal requirements

  • Node ≥12.17.0
0.2.0

3 months ago

0.1.0

6 months ago

0.0.8

8 months ago

0.0.7

12 months ago

0.0.6

1 year ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.5

1 year ago

0.0.4

2 years ago

0.0.1

2 years ago