Skip to content

Commit 4c240e8

Browse files
committed
Fix rapid7#4098 - False negative check for script_mvel_rce
Fix rapid7#4098, thanks @arnaudsoullie
1 parent fee49b0 commit 4c240e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/multi/elasticsearch/script_mvel_rce.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def parse_result(res)
127127
end
128128

129129
begin
130-
result = json['hits']['hits'][0]['fields']['msf_result'][0]
130+
result = json['hits']['hits'][0]['fields']['msf_result']
131131
rescue
132132
return nil
133133
end

0 commit comments

Comments
 (0)