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

chore: Bump fast-check to version 3 #3301

Merged
merged 1 commit into from May 24, 2024
Merged

Conversation

dubzzz
Copy link
Contributor

@dubzzz dubzzz commented Sep 11, 2022

The version 3 of fast-check added something very interesting for libraries such as ramda: it can more likely produce values such as __proto__ or toString which are known sources for CVE.

On fast-check's side, I also worked on some tooling making poisoning related issues even simpler to detect with an automatic detection for poisoning on globals. I successfully found back several past CVEs of lodash thanks to it.

@dubzzz
Copy link
Contributor Author

dubzzz commented Oct 23, 2022

Next target will be to leverage fast-check to detect some potential prototype poisoning in the exposed APIs before they turn into CVEs.

The version 3 of fast-check added something very interesting for libraries such as ramda: it can more likely produce values such as `__proto__` or `toString` which are known sources for CVE.

On fast-check's side, I also worked on some tooling making poisoning related issues even simpler to detect with an automatic detection for poisoning on globals. I successfully found back several past CVEs of lodash thanks to it.
@dubzzz dubzzz changed the title Attempt to bump towards fast-check@3 chore: Bump fast-check to version 3 May 22, 2024
@dubzzz
Copy link
Contributor Author

dubzzz commented May 22, 2024

@kedashoe I just updated this PR. I believe it can be useful for the project to rely on the latest version of fast-check in order to benefit from all the improvements brought by v3. It includes prototype poisoning related detection which is something that can easily strike projects such as ramda.

Copy link

github-actions bot commented May 22, 2024

Coverage Summary
> ramda@0.30.0 coverage:summary
> BABEL_ENV=cjs nyc --reporter=text-summary mocha -- --reporter=min --require @babel/register

�[2J�[1;3H
1192 passing (911ms)


=============================== Coverage summary ===============================
Statements   : 94.06% ( 2486/2643 )
Branches     : 85.76% ( 970/1131 )
Functions    : 93.28% ( 555/595 )
Lines        : 94.34% ( 2332/2472 )
================================================================================

@dubzzz
Copy link
Contributor Author

dubzzz commented May 22, 2024

NOTE: I'm currently working on a version 4 of fast-check. It should not come with many breaking changes but still always to be closer to the latest release to simplify future bumps.

@kedashoe
Copy link
Contributor

ty @dubzzz sorry for missing this the first time

@kedashoe kedashoe merged commit de700e2 into ramda:master May 24, 2024
7 checks passed
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 this pull request may close these issues.

None yet

2 participants