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

detect-vuln: test on expanded pattern space #49

Merged
merged 1 commit into from
Apr 23, 2018

Conversation

davisjam
Copy link
Owner

Problems:

  1. Detectors miss /a+$/
  2. Detectors choke on /a{1,100}a{1,100}a{1,100}$/

Solutions:

  1. Prefix with '^(.*)'
    Credit: Idea from Cox and discussion with Christy
  2. Convert a{1,100} to a+, etc.
    Credit: I think chalker suggested something like this

Fixes: #48.

Problems:
1. Detectors miss /a+$/
2. Detectors choke on /a{1,100}a{1,100}a{1,100}$/

Solutions:
1. Prefix with '^(.*)'
   Credit: Idea from Cox and discussion with Christy
2. Convert a{1,100} to a+, etc.
   Credit: I think chalker suggested something like this
@davisjam davisjam merged commit cf8c004 into master Apr 23, 2018
@davisjam davisjam mentioned this pull request May 1, 2018
6 tasks
jamesdonoh pushed a commit to jamesdonoh/vuln-regex-detector that referenced this pull request Feb 13, 2019
…oredRegex

detect-vuln: test on expanded pattern space
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.

Missed vulns
1 participant