Skip to content

Commit 39f81e0

Browse files
committed
Update check function
1 parent ee58313 commit 39f81e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/exploits/linux/http/ray_cpu_profile_cmd_injection_cve_2023_6019.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ def check
8585

8686
return Exploit::CheckCode::Unknown unless ray_version
8787

88-
return Exploit::CheckCode::Safe unless Rex::Version.new('2.2.0') <= Rex::Version.new(ray_version) && Rex::Version.new(ray_version) <= Rex::Version.new('2.6.3')
88+
ray_version = Rex::Version.new(ray_version)
89+
return Exploit::CheckCode::Safe unless Rex::Version.new('2.2.0') <= ray_version && ray_version <= Rex::Version.new('2.6.3')
8990

9091
@nodes = get_nodes
9192
return Exploit::CheckCode::Vulnerable unless @nodes.nil?

0 commit comments

Comments
 (0)