Skip to content

detect-vuln: test on expanded pattern space#49

Merged
davisjam merged 1 commit intomasterfrom
DetectorEnhancement_AnchoredRegex
Apr 23, 2018
Merged

detect-vuln: test on expanded pattern space#49
davisjam merged 1 commit intomasterfrom
DetectorEnhancement_AnchoredRegex

Conversation

@davisjam
Copy link
Copy Markdown
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