Skip to content

Commit c441ff8

Browse files
committed
Update comment in wordpress/version.rb
The comment 'All versions are vulnerable' makes sense on line 163 where there is no introduced or fixed version. On line 175 though there is a fixed version, just no introduced version. Adjusting comment text.
1 parent c6806b4 commit c441ff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/http/wordpress/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def extract_and_check_version(body, type, item_type, fixed_version = nil, vuln_i
172172
# Version older than fixed version
173173
if Gem::Version.new(version) < Gem::Version.new(fixed_version)
174174
if vuln_introduced_version.nil?
175-
# All versions are vulnerable
175+
# Older than fixed version, no vuln introduction date, flag as vuln
176176
return Msf::Exploit::CheckCode::Appears
177177
# vuln_introduced_version provided, check if version is newer
178178
elsif Gem::Version.new(version) >= Gem::Version.new(vuln_introduced_version)

0 commit comments

Comments
 (0)