DameWare Mini Remote Control < 12.0.3 Buffer Overflow Vulnerability (Windows)

2018-11-26T00:00:00
ID OPENVAS:1361412562310107380
Type openvas
Reporter Copyright (C) 2018 Greenbone Networks GmbH
Modified 2019-10-24T00:00:00

Description

DameWare Mini Remote Control is prone to a local buffer overflow vulnerability.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
#
# DameWare Mini Remote Control < 12.0.3 Buffer Overflow Vulnerability (Windows)
#
# Authors:
# Michael Martin <michael.martin@greenbone.net>
#
# Copyright:
# Copyright (C) 2018 Greenbone Networks GmbH, https://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 as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# 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.
###############################################################################

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.107380");
  script_version("2019-10-24T10:02:05+0000");
  script_cve_id("CVE-2016-2345");
  script_tag(name:"last_modification", value:"2019-10-24 10:02:05 +0000 (Thu, 24 Oct 2019)");
  script_tag(name:"creation_date", value:"2018-11-26 11:55:31 +0100 (Mon, 26 Nov 2018)");
  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_tag(name:"qod_type", value:"registry");
  script_tag(name:"solution_type", value:"VendorFix");
  script_name("DameWare Mini Remote Control < 12.0.3 Buffer Overflow Vulnerability (Windows)");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2018 Greenbone Networks GmbH");
  script_family("General");
  script_dependencies("gb_dameware_mini_rc_detect_win.nasl");
  script_mandatory_keys("solarwinds/dameware_mini_remote_control/detected");

  script_tag(name:"summary", value:"DameWare Mini Remote Control is prone to a local buffer
  overflow vulnerability.");

  script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");

  script_tag(name:"insight", value:"A certain message parsing function inside the Dameware Mini Remote
  Control service does not properly validate the input size of an incoming string before passing it to
  wsprintfw.

  As a result, a specially crafted message can overflow into the bordering format field and subsequently
  overflow the stack frame.");

  script_tag(name:"impact", value:"Exploitation of this vulnerability does not require authentication and
  can lead to SYSTEM level privilege on any system running the dwmrcs daemon.");

  script_tag(name:"affected", value:"DameWare Mini Remote Control before version 12.0.3.");

  script_tag(name:"solution", value:"Upgrade DameWare Mini Remote Control to version 12.0.3 or later.");

  script_xref(name:"URL", value:"https://support.solarwinds.com/Success_Center/DameWare_Remote_Support_Mini_Remote_Control/Knowledgebase_Articles/CVE-2016-2345_vulnerability");

  exit(0);
}

CPE = "cpe:/a:solarwinds:dameware_mini_remote_control";

include("host_details.inc");
include("version_func.inc");

if(!infos = get_app_version_and_location(cpe:CPE, exit_no_version:TRUE))
  exit(0);

vers = infos["version"];
path = infos["location"];

if(version_is_less(version:vers, test_version:"12.0.3")) {
  report = report_fixed_ver(installed_version:vers, fixed_version:"12.0.3", install_path:path);
  security_message(port:0, data:report);
  exit(0);
}

exit(99);