Skip to content

Commit f65ccbe

Browse files
Chocapikkjvoisin
andauthored
Update modules/exploits/multi/http/spip_porte_plume_previsu_rce.rb
Co-authored-by: Julien Voisin <[email protected]>
1 parent 6ad0b56 commit f65ccbe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/exploits/multi/http/spip_porte_plume_previsu_rce.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ def check
8888

8989
print_status("SPIP Version detected: #{version}")
9090

91-
if Rex::Version.new(version) <= Rex::Version.new('4.2.12')
92-
return CheckCode::Appears("The detected SPIP version (#{version}) is vulnerable.")
93-
else
94-
return CheckCode::Safe("The detected SPIP version (#{version}) is not vulnerable.")
91+
if Rex::Version.new(version) > Rex::Version.new('4.2.12')
92+
return CheckCode::Safe("The detected SPIP version (#{version}) is not vulnerable.")
9593
end
94+
95+
return CheckCode::Appears("The detected SPIP version (#{version}) is vulnerable.")
9696
end
9797

9898
def php_exec_cmd(encoded_payload)

0 commit comments

Comments
 (0)