Skip to content

Conversation

@patched-codes
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
@sonarqubecloud
Copy link

sonarqubecloud 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.

1 participant