Skip to content

ReDoS: testing a parameterised ReDoS module#10604

Closed
erik-krogh wants to merge 35 commits intogithub:mainfrom
erik-krogh:redosMod
Closed

ReDoS: testing a parameterised ReDoS module#10604
erik-krogh wants to merge 35 commits intogithub:mainfrom
erik-krogh:redosMod

Conversation

@erik-krogh
Copy link
Copy Markdown
Contributor

@erik-krogh erik-krogh commented Sep 28, 2022

TODO:

I've only added the required classes/members/predicates to the signatures.
I'm quite sure that all the current regex parsers implement a superset of the features required in the signature.

There is a lot of duplicated member predicates in the implementations that just forward to the super class.
That's because I cannot extend a class that comes from a signature.


codeql test run -j0 javascript/ql/test/query-tests/Security/CWE-400/ReDoS ruby/ql/test/query-tests/security/cwe-1333-* python/ql/test/query-tests/Security/CWE-730-* java/ql/test/query-tests/security/CWE-730/ javascript/ql/test/query-tests/Security/CWE-116 java/ql/test/query-tests/security/CWE-020 python/ql/test/query-tests/Security/CWE-116-BadTagFilter ruby/ql/test/query-tests/security/cwe-116 javascript/ql/test/query-tests/Security/CWE-020 java/ql/test/query-tests/security/CWE-020 python/ql/test/query-tests/Security/CWE-020-SuspiciousRegexpRange ruby/ql/test/query-tests/security/cwe-020/SuspiciousRegexpRange java/ql/test/library-tests/regex/parser/RegexParseTests.ql

@github-actions github-actions bot added the JS label Sep 28, 2022
Copy link
Copy Markdown

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found 63 potential problems in the proposed changes. Check the Files changed tab for more details.

@erik-krogh erik-krogh added the WIP This is a work-in-progress, do not merge yet! label Oct 28, 2022
@erik-krogh erik-krogh force-pushed the redosMod branch 6 times, most recently from 7d5f4e7 to 577b203 Compare October 31, 2022 11:48
Copy link
Copy Markdown

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CodeQL found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.

@erik-krogh
Copy link
Copy Markdown
Contributor Author

Closing, this was just a test PR, the parts have been merged now.

@erik-krogh erik-krogh closed this Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Java JS Python Ruby WIP This is a work-in-progress, do not merge yet!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant