Lucene search

K
openvasCopyright (c) 2011 Greenbone Networks GmbHOPENVAS:802156
HistorySep 13, 2011 - 12:00 a.m.

Sunway ForceControl WebServer 'httpsvr.exe' Buffer Overflow Vulnerability

2011-09-1300:00:00
Copyright (c) 2011 Greenbone Networks GmbH
plugins.openvas.org
10

0.163 Low

EPSS

Percentile

96.0%

This host is installed with Sunway ForceControl and is prone to
buffer overflow vulnerability.

###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_sunway_force_control_webserver_bof_vuln.nasl 7019 2017-08-29 11:51:27Z teissa $
#
# Sunway ForceControl WebServer 'httpsvr.exe' Buffer Overflow Vulnerability
#
# Authors:
# Madhuri D <[email protected]>
#
# Copyright:
# Copyright (c) 2011 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 = "Successful exploitation will allow remote attackers to cause
denial of service or execute arbitrary code.

Impact Level: System/Application";

tag_affected = "Sunway ForceControl 6.1 SP1, SP2, and SP3.";

tag_insight = "The flaw exists due to an error in the WebServer component
(httpsvr.exe) and can be exploited to cause a heap-based buffer overflow via
a specially crafted URL sent in a web request.";

tag_solution = "Vendor has released a patch to fix the issue, please refer
below link for patch information.
http://www.sunwayland.com.cn/news_info_.asp?Nid=3593";

tag_summary = "This host is installed with Sunway ForceControl and is prone to
buffer overflow vulnerability.";

if(description)
{
  script_id(802156);
  script_version("$Revision: 7019 $");
  script_tag(name:"last_modification", value:"$Date: 2017-08-29 13:51:27 +0200 (Tue, 29 Aug 2017) $");
  script_tag(name:"creation_date", value:"2011-09-13 07:51:43 +0200 (Tue, 13 Sep 2011)");
  script_cve_id("CVE-2011-2960");
  script_bugtraq_id(48328);
  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("Sunway ForceControl WebServer 'httpsvr.exe' Buffer Overflow Vulnerability");
  script_xref(name : "URL" , value : "http://secunia.com/advisories/45033");
  script_xref(name : "URL" , value : "http://www.exploit-db.com/exploits/17721/");
  script_xref(name : "URL" , value : "http://www.cnvd.org.cn/vulnerability/CNVD-2011-05347");
  script_xref(name : "URL" , value : "http://www.sunwayland.com.cn/news_info_.asp?Nid=3593");
  script_xref(name : "URL" , value : "http://www.us-cert.gov/control_systems/pdf/ICSA-11-167-01.pdf");

  script_tag(name:"qod_type", value:"executable_version");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (c) 2011 Greenbone Networks GmbH");
  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 : "solution" , value : tag_solution);
  script_tag(name : "summary" , value : tag_summary);
  script_tag(name : "impact" , value : tag_impact);
  script_tag(name : "affected" , value : tag_affected);
  exit(0);
}


include("smb_nt.inc");
include("version_func.inc");
include("secpod_smb_func.inc");

if(!get_kb_item("SMB/WindowsVersion")){
  exit(0);
}

key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
if(!registry_key_exists(key:key)){
  exit(0);
}

foreach item (registry_enum_keys(key:key))
{
  ## Check for Sunway ForceControl DisplayName
  sunName = registry_get_sz(key:key + item, item:"DisplayName");
  if("Forcecontrol" >< sunName)
  {
    ## Get the version of Sunway ForceControl
    sunVer = registry_get_sz(key:key + item, item:"DisplayVersion");
    if("6.1" >< sunVer)
    {
      ## Get the path of httpsvr.exe
      exePath = registry_get_sz(key:key + item, item:"InstallLocation");
      if(!isnull(exePath))
      {
        httpVer = fetch_file_version(sysPath:exePath, file_name:"httpsvr.exe");
        if(httpVer != NULL)
        {
          ## Check for httpsvr.exe version <= 6.0.5.3
          if(version_is_less_equal(version:httpVer, test_version:"6.0.5.3")){
            security_message(0) ;
          }
        }
      }
    }
  }
}

0.163 Low

EPSS

Percentile

96.0%

Related for OPENVAS:802156