Skip to content

Commit 1d1aa58

Browse files
committed
Use Gem::Version to compare versions in check
1 parent 42744e5 commit 1d1aa58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/unix/webapp/actualanalyzer_ant_cookie_exec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def check
8080
elsif res.code == 200 && res.body =~ /title="ActualAnalyzer Lite \(free\) ([\d\.]+)"/
8181
version = $1
8282
vprint_status("#{peer} - Found version: #{version}")
83-
return Exploit::CheckCode::Vulnerable if version =~ /^2\.(81|80|[0-7])/
83+
return Exploit::CheckCode::Vulnerable if Gem::Version.new(version) <= Gem::Version.new('2.81')
8484
return Exploit::CheckCode::Detected
8585
elsif res.code == 200 && res.body =~ /ActualAnalyzer Lite/
8686
return Exploit::CheckCode::Detected

0 commit comments

Comments
 (0)