Skip to content

Commit 14501a6

Browse files
committed
Add lower bound version
1 parent 5a436d2 commit 14501a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/multi/http/invision_customcss_rce.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ def check
8181
version = Rex::Version.new(Regexp.last_match(1))
8282
print_status("Detected IPS version: #{version}")
8383

84-
if version <= Rex::Version.new('5.0.6')
84+
if version.between?(Rex::Version.new('5.0.0'), Rex::Version.new('5.0.6'))
8585
CheckCode::Vulnerable("IPS version #{version} is vulnerable (≤ 5.0.6)")
8686
else
87-
CheckCode::Safe("IPS version #{version} appears patched (> 5.0.6)")
87+
CheckCode::Safe("IPS version #{version} is not vulnerable")
8888
end
8989
end
9090

0 commit comments

Comments
 (0)