update WPVDB link type

This commit is contained in:
firefart
2021-02-06 12:20:03 +01:00
parent debe4242c9
commit 1af4aaeb91
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -180,7 +180,7 @@ class Msftidy
when 'ZDI'
warn("Invalid ZDI reference") if value !~ /^\d{2}-\d{3,4}$/
when 'WPVDB'
warn("Invalid WPVDB reference") if value !~ /^\d+$/
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}?$/
when 'PACKETSTORM'
warn("Invalid PACKETSTORM reference") if value !~ /^\d+$/
when 'URL'
@@ -196,6 +196,8 @@ class Msftidy
warn("Please use 'US-CERT-VU' for '#{value}'")
elsif value =~ /^https?:\/\/wpvulndb\.com\/vulnerabilities\//
warn("Please use 'WPVDB' for '#{value}'")
elsif value =~ /^https?:\/\/wpscan\.com\/vulnerability\//
warn("Please use 'WPVDB' for '#{value}'")
elsif value =~ /^https?:\/\/(?:[^\.]+\.)?packetstormsecurity\.(?:com|net|org)\//
warn("Please use 'PACKETSTORM' for '#{value}'")
end
+1 -1
View File
@@ -35,7 +35,7 @@ def types
'EDB' => 'http://www.exploit-db.com/exploits/#{in_ctx_val}',
'US-CERT-VU' => 'http://www.kb.cert.org/vuls/id/#{in_ctx_val}',
'ZDI' => 'http://www.zerodayinitiative.com/advisories/ZDI-#{in_ctx_val}',
'WPVDB' => 'https://wpvulndb.com/vulnerabilities/#{in_ctx_val}',
'WPVDB' => 'https://wpscan.com/vulnerability/#{in_ctx_val}',
'PACKETSTORM' => 'https://packetstormsecurity.com/files/#{in_ctx_val}',
'URL' => '#{in_ctx_val}'
}