From 528270e767a234d4390eced46ddb461e7d70067e Mon Sep 17 00:00:00 2001 From: Erwan Date: Fri, 6 Mar 2020 16:17:40 +0100 Subject: [PATCH] Updates Target#wordpress_from_meta_comments_or_scripts Xpath check --- lib/wpscan/target/platform/wordpress.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wpscan/target/platform/wordpress.rb b/lib/wpscan/target/platform/wordpress.rb index 96077ea1..b37c2e4e 100644 --- a/lib/wpscan/target/platform/wordpress.rb +++ b/lib/wpscan/target/platform/wordpress.rb @@ -48,7 +48,7 @@ module WPScan # @param [ Typhoeus::Response ] response # @return [ Boolean ] def wordpress_from_meta_comments_or_scripts?(response) - in_scope_uris(response, '//link/@href|//script/@src|//img/@src') do |uri| + in_scope_uris(response, '//link/@href|//script/@src') do |uri| return true if WORDPRESS_PATTERN.match?(uri.path) || WP_JSON_OEMBED_PATTERN.match?(uri.path) end