File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
lib/msf/core/exploit/remote/http
modules/exploits/multi/http Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -75,11 +75,8 @@ def spip_plugin_version(plugin_name)
75
75
end
76
76
77
77
# Case 2: Check for plugin version directly in Composed-By
78
- composed_by . split ( ',' ) . each do |entry |
79
- if entry =~ /#{ plugin_name } \( (\d +(\. \d +)+)\) /
80
- return Rex ::Version . new ( ::Regexp . last_match ( 1 ) )
81
- end
82
- end
78
+ plugin_version = parse_plugin_version ( composed_by , plugin_name )
79
+ return plugin_version if plugin_version
83
80
84
81
# Case 3: Fallback to fetching /local/config.txt directly
85
82
vprint_status ( 'No version found in Composed-By header. Attempting to fetch /local/config.txt directly.' )
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ def check
96
96
97
97
vulnerable_ranges . each do |range |
98
98
if rversion . between? ( range [ :start ] , range [ :end ] )
99
- print_good ( ' SPIP version #{rversion} is vulnerable.' )
99
+ print_good ( " SPIP version #{ rversion } is vulnerable." )
100
100
break
101
101
end
102
102
end
You can’t perform that action at this time.
0 commit comments