File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ def check_ref_identifiers
180
180
when 'ZDI'
181
181
warn ( "Invalid ZDI reference" ) if value !~ /^\d {2}-\d {3,4}$/
182
182
when 'WPVDB'
183
- warn ( "Invalid WPVDB reference" ) if value !~ /^\d +$/
183
+ warn ( "Invalid WPVDB reference" ) if value !~ /^\d +$/ and value !~ /^[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}?$/
184
184
when 'PACKETSTORM'
185
185
warn ( "Invalid PACKETSTORM reference" ) if value !~ /^\d +$/
186
186
when 'URL'
@@ -196,6 +196,8 @@ def check_ref_identifiers
196
196
warn ( "Please use 'US-CERT-VU' for '#{ value } '" )
197
197
elsif value =~ /^https?:\/ \/ wpvulndb\. com\/ vulnerabilities\/ /
198
198
warn ( "Please use 'WPVDB' for '#{ value } '" )
199
+ elsif value =~ /^https?:\/ \/ wpscan\. com\/ vulnerability\/ /
200
+ warn ( "Please use 'WPVDB' for '#{ value } '" )
199
201
elsif value =~ /^https?:\/ \/ (?:[^\. ]+\. )?packetstormsecurity\. (?:com|net|org)\/ /
200
202
warn ( "Please use 'PACKETSTORM' for '#{ value } '" )
201
203
end
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def types
35
35
'EDB' => 'http://www.exploit-db.com/exploits/#{in_ctx_val}' ,
36
36
'US-CERT-VU' => 'http://www.kb.cert.org/vuls/id/#{in_ctx_val}' ,
37
37
'ZDI' => 'http://www.zerodayinitiative.com/advisories/ZDI-#{in_ctx_val}' ,
38
- 'WPVDB' => 'https://wpvulndb .com/vulnerabilities /#{in_ctx_val}' ,
38
+ 'WPVDB' => 'https://wpscan .com/vulnerability /#{in_ctx_val}' ,
39
39
'PACKETSTORM' => 'https://packetstormsecurity.com/files/#{in_ctx_val}' ,
40
40
'URL' => '#{in_ctx_val}'
41
41
}
You can’t perform that action at this time.
0 commit comments