This host is installed with KingView and is prone to buffer
overflow vulnerability.
###############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_kingview_activex_bof_vuln.nasl 7052 2017-09-04 11:50:51Z teissa $
#
# WellinTech KingView 'KVWebSvr.dll' ActiveX Control Heap Buffer Overflow Vulnerability
#
# Authors:
# Madhuri D <[email protected]>
#
# Copyright:
# Copyright (c) 2011 SecPod, http://www.secpod.com
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################
tag_impact = "Successful exploitation will allow remote attackers to execute arbitrary
code in the context of the application. Failed attacks will cause
denial-of-service conditions.
Impact Level: System/Application";
tag_affected = "KingView version 6.53 and 6.52";
tag_solution = "Upgrade KVWebSrv.dll file version to 65.30.2010.18019
For updates refer to http://download.kingview.com/software/kingview%20Chinese%20Version/KVWebSvr.rar
*****
NOTE : Ignore this warning, if above mentioned patch is applied already.
*****";
tag_insight = "The flaw exists due to error in 'KVWebSvr.dll' file, when 'ValidateUser'
method in an ActiveX component called with an specially crafted argument to
cause a stack-based buffer overflow.";
tag_summary = "This host is installed with KingView and is prone to buffer
overflow vulnerability.";
if(description)
{
script_id(902724);
script_version("$Revision: 7052 $");
script_tag(name:"last_modification", value:"$Date: 2017-09-04 13:50:51 +0200 (Mon, 04 Sep 2017) $");
script_tag(name:"creation_date", value:"2011-08-29 16:22:41 +0200 (Mon, 29 Aug 2011)");
script_cve_id("CVE-2011-3142");
script_bugtraq_id(46757);
script_tag(name:"cvss_base", value:"10.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
script_name("WellinTech KingView 'KVWebSvr.dll' ActiveX Control Heap Buffer Overflow Vulnerability");
script_tag(name:"qod_type", value:"executable_version");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2011 SecPod");
script_family("Buffer overflow");
script_dependencies("secpod_reg_enum.nasl");
script_mandatory_keys("SMB/WindowsVersion");
script_tag(name : "insight" , value : tag_insight);
script_tag(name : "summary" , value : tag_summary);
script_tag(name : "solution" , value : tag_solution);
script_tag(name : "impact" , value : tag_impact);
script_tag(name : "affected" , value : tag_affected);
script_xref(name : "URL" , value : "http://www.cnvd.org.cn/vulnerability/CNVD-2011-04541");
script_xref(name : "URL" , value : "http://www.kingview.com/news/detail.aspx?contentid=537");
script_xref(name : "URL" , value : "http://www.us-cert.gov/control_systems/pdf/ICSA-11-074-01.pdf");
exit(0);
}
include("smb_nt.inc");
include("version_func.inc");
include("secpod_smb_func.inc");
if(!get_kb_item("SMB/WindowsVersion")){
exit(0);
}
if(!registry_key_exists(key:"SOFTWARE\WellinControl Technology Development Co.,Ltd.")){
exit(0);
}
key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
if(!registry_key_exists(key:key)){
exit(0);
}
foreach item(registry_enum_keys(key:key))
{
kvName = registry_get_sz(key:key + item, item:"DisplayName");
## Check DisplayName for KingView
if("Kingview" >< kvName)
{
## Get KingView version
kvVer = registry_get_sz(key:key + item, item:"DisplayVersion");
if(kvVer!= NULL)
{
## Check for vulnerables KingView versions
if(version_is_equal(version:kvVer, test_version:"6.52") ||
version_is_equal(version:kvVer, test_version:"6.53"))
{
## Get the 'KVWebSvr.dll' file version
dllPath = registry_get_sz(key:"SOFTWARE\Microsoft\Windows\CurrentVersion",
item:"ProgramFilesDir");
if(dllPath)
{
dllVer = fetch_file_version(sysPath:dllPath, file_name:"Kingview\KVWebSvr.dll");
{
## Check 'KVWebSvr.dll' less than 65.30.2010.18019
if(version_is_less(version:dllVer, test_version:"65.30.2010.18019")){
security_message(0);
}
}
}
}
}
}
}