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

bug in regex in vuln.rb:461 #34

Closed
misterpaul opened this issue Jun 26, 2013 · 1 comment
Closed

bug in regex in vuln.rb:461 #34

misterpaul opened this issue Jun 26, 2013 · 1 comment

Comments

@misterpaul
Copy link

vuln.rb:461 currently has this regex:

expiration_date =~ /\A\desc{4}-(\desc{2})-(\desc{2})\z/

I believe it should be:

expiration_date =~ /\A\d{4}-(\d{2})-(\d{2})\z/

@mdaines-r7
Copy link
Contributor

Nice catch. Looks like a weird refactoring bug. (Of course raises the question of why this is being validated manually, but this code pre-dates me.)

I've pushed the fix.

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

No branches or pull requests

2 participants