forked from inno-v/safe-regex
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
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:
- Make the Heuristic#1 configurable like the other Heuristic#2, which takes in options from the user and matches the start height to that particular config.
- Usage of Range Quantifier as a factor for vulnerability.
Please share your thoughts on the above improvements and their feasibility. I will be happy to raise a PR for it. :)
Metadata
Metadata
Assignees
Labels
No labels