Skip to content

Commit fd16c1c

Browse files
committed
Fix issue-7295
1 parent 8cf62dc commit fd16c1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/unix/webapp/sugarcrm_unserialize_exec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def exploit
9595
'data' => data
9696
})
9797

98-
if res.nil? || res.headers['Location'].include?('action=Login') || res.get_cookies.empty?
98+
if res.nil? || res.headers['Location'] && res.headers['Location'].include?('action=Login') || res.get_cookies.empty?
9999
fail_with(Failure::NoAccess, "#{peer} - Login failed with \"#{username}:#{password}\"")
100100
end
101101

0 commit comments

Comments
 (0)