-
Notifications
You must be signed in to change notification settings - Fork 10
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
Heuristic #1 is very restricted and result in false negatives #49
Comments
@davisjam Can you please share your views on this? |
Hi @raghavgarg1257. Thanks for your interest! For a sound approach, see #17. I have some starter code I can share for this. For a simpler improvement to the heuristic, I would be happy to give feedback on an approach that:
Please @ me in any replies or PRs. |
Hello @davisjam, Thanks for sharing your thoughts. :) I will share an approach keeping the above points in mind and will try to create a poc for the same, before that I have a couple of doubts.
|
Context: Heuristic#1:
Star height > 1
, dictates there should be no repetition inside of repetition.Issue: The regex in question is
/abcd(-[0-9a-z]{10,20}){2}/
, which has repetition inside of repetition but it is not a vulnerable pattern because of fixed range quantifier.Probable Improvements:
Please share your thoughts on the above improvements and their feasibility. I will be happy to raise a PR for it. :)
The text was updated successfully, but these errors were encountered: