Skip to content

Commit dc8f266

Browse files
committed
fix readme detection bug
1 parent 9df09a1 commit dc8f266

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/msf/http/wordpress/version.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,10 @@ def check_version_from_readme(type, name, fixed_version = nil, vuln_introduced_v
109109

110110
readmes = ['readme.txt', 'Readme.txt', 'README.txt']
111111

112-
readmes.each do |r|
113-
readme_url = normalize_uri(target_uri.path, wp_content_dir, folder, name, 'readme.txt')
112+
res = nil
113+
readmes.each do |readme_name|
114+
readme_url = normalize_uri(target_uri.path, wp_content_dir, folder, name, readme_name)
115+
vprint_status("#{peer} - Checking #{readme_url}")
114116
res = send_request_cgi(
115117
'uri' => readme_url,
116118
'method' => 'GET'

0 commit comments

Comments
 (0)