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

Patchwork PR: AutoFix #18

Open
wants to merge 1 commit into
base: patchwork-resolveprcomments-master
Choose a base branch
from

Conversation

patched-codes[bot]
Copy link

@patched-codes patched-codes bot commented Nov 1, 2024

This pull request from patched fixes 3 issues.


  • File changed: sqli/static/js/materialize.js
    Fix Regular Expression Denial of Service vulnerability Replaced dynamic regular expression with hardcoded one to avoid ReDoS.
    Fix ReDoS by using RE2 for regex Replaced the potentially vulnerable regex code with a safer alternative using the RE2 library, which prevents ReDoS by avoiding backtracking.
    Refactor regex usage to avoid ReDoS vulnerability Replaced the usage of RegExp constructor with a pre-defined safe regular expression to prevent user-supplied regex execution. This change is marked as medium risk in terms of compatibility.

@patched-codes patched-codes bot force-pushed the patchwork-autofix-patchwork-resolveprcomments-master branch from 67f6295 to 506c1f6 Compare November 1, 2024 06:52
Copy link

sonarcloud bot commented Nov 1, 2024

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.

0 participants