Skip to content

Commit e9493c9

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/multi/http/invision_customcss_rce.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ 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
8787
CheckCode::Safe("IPS version #{version} appears patched (> 5.0.6)")

0 commit comments

Comments
 (0)