We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cf62dc commit fd16c1cCopy full SHA for fd16c1c
modules/exploits/unix/webapp/sugarcrm_unserialize_exec.rb
@@ -95,7 +95,7 @@ def exploit
95
'data' => data
96
})
97
98
- if res.nil? || res.headers['Location'].include?('action=Login') || res.get_cookies.empty?
+ if res.nil? || res.headers['Location'] && res.headers['Location'].include?('action=Login') || res.get_cookies.empty?
99
fail_with(Failure::NoAccess, "#{peer} - Login failed with \"#{username}:#{password}\"")
100
end
101
0 commit comments