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

Fix vulnerable regex in lib/cfpathcheck.js #746

Open
timbeadle opened this issue Jun 27, 2022 · 0 comments
Open

Fix vulnerable regex in lib/cfpathcheck.js #746

timbeadle opened this issue Jun 27, 2022 · 0 comments

Comments

@timbeadle
Copy link
Owner

Adding eslint-plugin-redos revealed this issue:

const includeMatches = matchAll(line, /\binclude\s['"](?<path>.*\.cfm)['"]/g);
Found a ReDoS vulnerable RegExp (2nd degree polynomial).eslint(redos/no-vulnerable)

Screenshot 2022-06-27 at 15 27 26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant