From a687e718329da34ba1d48877618aacff0b92776b Mon Sep 17 00:00:00 2001 From: Roberto Soares Date: Thu, 30 Jul 2015 01:22:48 -0300 Subject: [PATCH 1/2] Added check for the WPVDB in msftidy. --- tools/msftidy.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/msftidy.rb b/tools/msftidy.rb index 3857c311c2..f78b4e9c64 100755 --- a/tools/msftidy.rb +++ b/tools/msftidy.rb @@ -191,6 +191,8 @@ class Msftidy warn("Invalid US-CERT-VU reference") if value !~ /^\d+$/ when 'ZDI' warn("Invalid ZDI reference") if value !~ /^\d{2}-\d{3}$/ + when 'WPVDB' + warn("Invalid WPVDB reference") if value !~ /^\d+$/ when 'URL' if value =~ /^http:\/\/www\.osvdb\.org/ warn("Please use 'OSVDB' for '#{value}'") @@ -204,6 +206,8 @@ class Msftidy warn("Please use 'EDB' for '#{value}'") elsif value =~ /^http:\/\/www\.kb\.cert\.org\/vuls\/id\// warn("Please use 'US-CERT-VU' for '#{value}'") + elsif value =~ /^http:\/\/wpvulndb\.com\/vulnerabilities\// + warn("Please use 'WPVDB' for '#{value}'") end end end From 77f96769da01cdccf148b7fda7a56f34640f155d Mon Sep 17 00:00:00 2001 From: Roberto Soares Date: Thu, 30 Jul 2015 01:33:48 -0300 Subject: [PATCH 2/2] Update msftidy. --- tools/msftidy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/msftidy.rb b/tools/msftidy.rb index f78b4e9c64..34ec47a17b 100755 --- a/tools/msftidy.rb +++ b/tools/msftidy.rb @@ -206,7 +206,7 @@ class Msftidy warn("Please use 'EDB' for '#{value}'") elsif value =~ /^http:\/\/www\.kb\.cert\.org\/vuls\/id\// warn("Please use 'US-CERT-VU' for '#{value}'") - elsif value =~ /^http:\/\/wpvulndb\.com\/vulnerabilities\// + elsif value =~ /^https:\/\/wpvulndb\.com\/vulnerabilities\// warn("Please use 'WPVDB' for '#{value}'") end end