This host is installed with BaoFeng Storm ActiveX and is prone to
Buffer Overflow vulnerability.
###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_baofeng_storm_activex_ctrl_bof_vuln.nasl 5369 2017-02-20 14:48:07Z cfi $
#
# BaoFeng Storm ActiveX Control Buffer Overflow Vulnerability
#
# Authors:
# Nikita MR <[email protected]>
#
# Copyright:
# Copyright (c) 2009 Greenbone Networks GmbH, http://www.greenbone.net
#
# 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 = "Attacker may exploit this issue to execute arbitrary script code and may cause
denial of service.
Impact Level: Application";
tag_affected = "BaoFeng Storm mps.dll version 3.9.4.27 and prior on Windows.";
tag_insight = "A boundary error in the MPS.StormPlayer.1 ActiveX control (mps.dll) while
processing overly large argument passed to the 'OnBeforeVideoDownload()'
method leads to buffer overflow.";
tag_solution = "Upgrade to the latest BaoFeng Storm version 3.9.05.10
http://bbs.baofeng.com/read.php?tid=121630";
tag_summary = "This host is installed with BaoFeng Storm ActiveX and is prone to
Buffer Overflow vulnerability.";
if(description)
{
script_id(800570);
script_version("$Revision: 5369 $");
script_tag(name:"last_modification", value:"$Date: 2017-02-20 15:48:07 +0100 (Mon, 20 Feb 2017) $");
script_tag(name:"creation_date", value:"2009-05-19 08:03:45 +0200 (Tue, 19 May 2009)");
script_tag(name:"cvss_base", value:"9.3");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:C/I:C/A:C");
script_cve_id("CVE-2009-1612");
script_bugtraq_id(34789);
script_name("BaoFeng Storm ActiveX Control Buffer Overflow Vulnerability");
script_xref(name : "URL" , value : "http://milw0rm.com/exploits/8579");
script_xref(name : "URL" , value : "http://secunia.com/advisories/34944");
script_category(ACT_GATHER_INFO);
script_tag(name:"qod_type", value:"executable_version");
script_copyright("Copyright (C) 2009 Greenbone Networks GmbH");
script_family("Buffer overflow");
script_dependencies("secpod_reg_enum.nasl");
script_mandatory_keys("SMB/WindowsVersion");
script_require_ports(139, 445);
script_tag(name : "impact" , value : tag_impact);
script_tag(name : "affected" , value : tag_affected);
script_tag(name : "insight" , value : tag_insight);
script_tag(name : "solution" , value : tag_solution);
script_tag(name : "summary" , value : tag_summary);
exit(0);
}
include("smb_nt.inc");
include("version_func.inc");
include("secpod_smb_func.inc");
if(!get_kb_item("SMB/WindowsVersion")){
exit(0);
}
stormPath = registry_get_sz(key:"SOFTWARE\Microsoft\Windows\CurrentVersion" +
"\Uninstall\Storm2", item:"DisplayIcon");
if(!stormPath){
exit(0);
}
stormPath = stormPath - "Storm.exe" + "mps.dll";
share = ereg_replace(pattern:"([A-Z]):.*", replace:"\1$", string:stormPath);
file = ereg_replace(pattern:"[A-Z]:(.*)", replace:"\1", string:stormPath);
stormdllVer = GetVer(share:share, file:file);
# Check for version of mps.dll
if(stormdllVer != NULL)
{
if(version_is_less_equal(version:stormdllVer, test_version:"3.9.4.27")){
security_message(0);
}
}