From 1af4aaeb9145cfa60587aa1b670f1663f2bb9303 Mon Sep 17 00:00:00 2001 From: firefart Date: Sat, 6 Feb 2021 12:20:03 +0100 Subject: [PATCH] update WPVDB link type --- tools/dev/msftidy.rb | 4 +++- tools/modules/module_reference.rb | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/dev/msftidy.rb b/tools/dev/msftidy.rb index dafe35a8a5..fdfd5092ab 100755 --- a/tools/dev/msftidy.rb +++ b/tools/dev/msftidy.rb @@ -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 diff --git a/tools/modules/module_reference.rb b/tools/modules/module_reference.rb index f12225403a..32724deedc 100755 --- a/tools/modules/module_reference.rb +++ b/tools/modules/module_reference.rb @@ -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}' }