Vulnerabilities > CVE-2016-2345 - Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in Dameware Mini Remote Control 12.0

047910
CVSS 10.0 - CRITICAL
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
low complexity
dameware
CWE-119
critical
nessus
exploit available

Summary

Stack-based buffer overflow in dwrcs.exe in the dwmrcs daemon in SolarWinds DameWare Mini Remote Control 12.0 allows remote attackers to execute arbitrary code via a crafted string.

Vulnerable Configurations

Part Description Count
Application
Dameware
1

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Exploit-Db

descriptionDameWare Remote Controller < 12.0.0.520 - Remote Code Execution. CVE-2016-2345. Remote exploit for Windows platform
idEDB-ID:43059
last seen2017-10-28
modified2016-04-03
published2016-04-03
reporterExploit-DB
sourcehttps://www.exploit-db.com/download/43059/
titleDameWare Remote Controller < 12.0.0.520 - Remote Code Execution

Nessus

NASL familyWindows
NASL idSOLARWINDS_DAMEWARE_MINI_REMOTE_CONTROL_CVE-2016-2345.NASL
descriptionThe remote host is running a version of SolarWinds DameWare Mini Remote Client Agent prior to 12.0.3. A stack-based buffer overflow condition exists in DWRCS.EXE due to improper validation of user supplied data passed to wsprintfw(). An attacker can exploit this, via a specially crafted message, to execute arbitrary code.
last seen2020-04-30
modified2019-04-16
plugin id124062
published2019-04-16
reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
sourcehttps://www.tenable.com/plugins/nessus/124062
titleSolarWinds DameWare Mini Remote Client Agent < 12.0.3 Stack Buffer Overflow
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(124062);
  script_version("1.4");
  script_set_attribute(attribute:"plugin_modification_date", value:"2020/04/27");

  script_cve_id("CVE-2016-2345");
  script_bugtraq_id(84704);
  script_xref(name:"CERT", value:"897144");
  script_xref(name:"EDB-ID", value:"43059");

  script_name(english:"SolarWinds DameWare Mini Remote Client Agent < 12.0.3 Stack Buffer Overflow");
  script_summary(english:"Checks the version of DWRCS.EXE.");

  script_set_attribute(attribute:"synopsis", value:
"The remote host is running a remote management application that has
a stack buffer overflow condition.");
  script_set_attribute(attribute:"description", value:
"The remote host is running a version of SolarWinds DameWare Mini
Remote Client Agent prior to 12.0.3. A stack-based buffer overflow
condition exists in DWRCS.EXE due to improper validation of user
supplied data passed to wsprintfw(). An attacker can exploit this,
via a specially crafted message, to execute arbitrary code.");
  # https://support.solarwinds.com/Success_Center/DameWare_Remote_Support_Mini_Remote_Control/Knowledgebase_Articles/CVE-2016-2345_vulnerability
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?ea9bfd3f");
  # https://www.securifera.com/blog/2016/04/03/fun-with-remote-controllers-dameware-mini-remote-control-cve-2016-2345/
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?05d43982");
  script_set_attribute(attribute:"see_also", value:"https://www.securifera.com/advisories/cve-2016-2345/");
  script_set_attribute(attribute:"solution", value:
"Upgrade to SolarWinds DameWare Mini Remote Control v12.0.3 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:F/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2016-2345");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"exploit_framework_core", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2016/03/17");
  script_set_attribute(attribute:"patch_publication_date", value:"2016/03/17");
  script_set_attribute(attribute:"plugin_publication_date", value:"2019/04/16");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"x-cpe:/a:solarwinds:dameware_mini_remote_control");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Windows");

  script_copyright(english:"This script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("smb_enum_services.nasl");
  script_require_keys("SMB/svc/dwmrcs/path");
  script_require_ports(139,445);

  exit(0);
}

include("smb_func.inc");
include("smb_hotfixes_fcheck.inc");
include("vcf.inc");

# Check if the service is detected by smb_enum_services.nasl
val   = get_kb_item_or_exit('SMB/svc/dwmrcs/path');

# Get and check the exe path
ret   = split(val, sep:' ', keep:FALSE);
path  = ret[0];
match = pregmatch(string:path, pattern:'^([A-Za-z]):(.+)$');
if (isnull(match))
  exit(1, 'Invalid path ' + path + ' for DWMRCS.exe.');

app = 'SolarWinds DameWare Mini Remote Client Agent';

# Get the file version for the exe.
# hotfix_get_fversion() does not go out to the network
# to fetch the file version if the version is already saved
# in the KB.
fver = hotfix_get_fversion(path:path);
hotfix_handle_error(
  error_code:fver['error'],
  appname:app,
  file:path,
  exit_on_fail:TRUE
);
hotfix_check_fversion_end();
ver = join(fver['value'], sep:'.');

# This KB was created by hotfix_get_fversion()
share = match[1] + '$';
file = match[2];
kb = 'SMB/FileVersions/'+tolower(share-'$')+tolower(str_replace(string:file, find:"\", replace:'/'));

app_info = vcf::get_app_info(app:app, kb_ver:kb, port:kb_smb_transport());
vcf::check_granularity(app_info:app_info, sig_segments:3);

constraints = [
  {"fixed_version": "12.0.3" }
];

vcf::check_version_and_report(app_info:app_info, constraints:constraints, severity:SECURITY_HOLE);

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/144784/dameware12-exec.txt
idPACKETSTORM:144784
last seen2017-10-27
published2017-10-27
reporterSecurifera
sourcehttps://packetstormsecurity.com/files/144784/DameWare-Remote-Controller-12.0.0.520-Remote-Code-Execution.html
titleDameWare Remote Controller 12.0.0.520 Remote Code Execution