Vulnerabilities > CVE-2012-0985 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in Sony products

047910
CVSS 9.3 - CRITICAL
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
sony
CWE-119
critical
nessus
exploit available

Summary

Multiple buffer overflows in the Wireless Manager ActiveX control 4.0.0.0 in WifiMan.dll in Sony VAIO PC Wireless LAN Wizard 1.0; VAIO Wireless Wizard 1.00, 1.00_64, 1.0.1, 2.0, and 3.0; SmartWi Connection Utility 4.7, 4.7.4, 4.8, 4.9, 4.10, and 4.11; and VAIO Easy Connect software 1.0.0 and 1.1.0 allow remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via a long string in the second argument of the (1) SetTmpProfileOption or (2) ConnectToNetwork method.

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

descriptionSony VAIO Wireless Manager 4.0.0.0 - Buffer Overflows. CVE-2012-0985. Dos exploit for windows platform
fileexploits/windows/dos/18958.html
idEDB-ID:18958
last seen2016-02-02
modified2012-05-31
platformwindows
port
published2012-05-31
reporterHigh-Tech Bridge SA
sourcehttps://www.exploit-db.com/download/18958/
titleSony VAIO Wireless Manager 4.0.0.0 - Buffer Overflows
typedos

Nessus

NASL familyWindows
NASL idVAIO_WIRELESS_MANAGER_ACTIVEX_BOF.NASL
descriptionThe Sony VAIO Wireless Manager ActiveX control installed on the remote Windows host is affected by buffer overflow vulnerabilities in
last seen2020-06-01
modified2020-06-02
plugin id60109
published2012-07-24
reporterThis script is Copyright (C) 2012-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/60109
titleSony VAIO Wireless Manager ActiveX Control WifiMan.dll Multiple Buffer Overflows
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(60109);
  script_version("1.4");
  script_cvs_date("Date: 2018/08/06 14:03:16");

  script_cve_id("CVE-2012-0985");
  script_bugtraq_id(53735);
  script_xref(name:"EDB-ID", value:"18958");

  script_name(english:"Sony VAIO Wireless Manager ActiveX Control WifiMan.dll Multiple Buffer Overflows");
  script_summary(english:"Checks version of control");

  script_set_attribute(attribute:"synopsis", value:
"The remote Windows host has an ActiveX control installed that is
affected by multiple buffer overflow vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"The Sony VAIO Wireless Manager ActiveX control installed on the
remote Windows host is affected by buffer overflow vulnerabilities in
'SetTmpProfileOption()' and 'ConnectToNetWokrkOption()' in
WifiMan.dll.  By tricking a victim into visiting a specially crafted
page, an attacker may be able to execute arbitrary code on the
host.");
  script_set_attribute(attribute:"see_also", value:"https://www.htbridge.com/advisory/HTB23063");
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?051362c9");
  script_set_attribute(attribute:"solution", value:
"Either set the kill bit for the control or upgrade to version 5.7.0
of the control.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2012/05/30");
  script_set_attribute(attribute:"patch_publication_date", value:"2012/01/20");
  script_set_attribute(attribute:"plugin_publication_date", value:"2012/07/24");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:sony:vaio_easy_connect");
  script_end_attributes();

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

  script_copyright(english:"This script is Copyright (C) 2012-2018 Tenable Network Security, Inc.");

  script_dependencies("smb_hotfixes.nasl");
  script_require_keys("SMB/Registry/Enumerated");
  script_require_ports(139, 445);

  exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("smb_func.inc");
include("smb_activex_func.inc");

get_kb_item_or_exit("SMB/Registry/Enumerated");
if (activex_init() != ACX_OK) exit(1, 'activex_init() failed.');

# Determine if the control is installed
clsid = '{92E7DDED-BBFE-4DDF-B717-074E3B602D1B}';

file = activex_get_filename(clsid:clsid);
if (isnull(file))
{
  activex_end();
  exit(1, 'activex_get_filename() returned NULL.');
}
if (!file)
{
  activex_end();
  audit(AUDIT_ACTIVEX_NOT_FOUND, clsid);
}

# Get its version
version = activex_get_fileversion(clsid:clsid);
if (!version)
{
  activex_end();
  audit(AUDIT_VER_FAIL, file);
}

info = '';
fixed_version = '5.7.0.0';
rc = activex_check_fileversion(clsid:clsid, fix:fixed_version);
if (rc == TRUE)
{
  if (report_paranoia > 1 || activex_get_killbit(clsid:clsid) == 0)
  {
    info +=
      '\n  Class identifier  : ' + clsid +
      '\n  Filename          : ' + file +
      '\n  Installed version : ' + version +
      '\n  Fixed version     : ' + fixed_version + '\n';
  }
}
activex_end();

# Report findings
if (info)
{
  if (report_paranoia > 1)
  {
    report = info +
      '\n' +
      'Note, though, that Nessus did not check whether the kill bit was\n' +
      'set for the control\'s CLSID because of the Report Paranoia setting\n' +
      'in effect when this scan was run.\n';
  }
  else
  {
    report = info +
      '\n' +
      'Moreover, its kill bit is not set so it is accessible via Internet\n' +
      'Explorer.\n';
  }

  if (report_verbosity > 0) security_hole(port:kb_smb_transport(), extra:report);
  else security_hole(kb_smb_transport());

  exit(0);
}
else
{
  if (rc == FALSE) exit(0, 'The control is not affected since it is version '+version+'.');
  else if (rc == TRUE) exit(0, 'Version '+version+' of the control is installed, but its kill bit is set.');
  else exit(1, 'activex_check_fileversion() failed.');
}

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/113131/wmsvaio-overflow.txt
idPACKETSTORM:113131
last seen2016-12-05
published2012-05-30
reporterHigh-Tech Bridge SA
sourcehttps://packetstormsecurity.com/files/113131/Wireless-Manager-Sony-VAIO-4.0.0.0-Buffer-Overflows.html
titleWireless Manager Sony VAIO 4.0.0.0 Buffer Overflows

Seebug

bulletinFamilyexploit
descriptionBugtraq ID: 53735 CVE ID:CVE-2012-0985 Sony VAIO Wireless Manager是索尼笔记本上安装的无线管理程序。 Sony VAIO Wireless Manager ActiveX控件存在缓冲区溢出,攻击者可以利用漏洞以应用程序上下文执行任意代码。 漏洞是由于WifiMan.dll库中的SetTmpProfileOption()和ConnectToNetwork()方法没有正确检查字符串参数长度引起的,攻击者可以构建恶意WEB页,诱使用户解析来触发。 0 Sony VAIO Wireless Manager 4.0.0.0 厂商解决方案 Sony ----- Sony厂商建议用户使用VAIO更新安装此软件的最新版本: http://esupport.sony.com/US/perl/support-info.pl?template_id=1&info_id=946
idSSV:60172
last seen2017-11-19
modified2012-06-01
published2012-06-01
reporterRoot
sourcehttps://www.seebug.org/vuldb/ssvid-60172
titleSony VAIO Wireless Manager ActiveX控件'WifiMan.dll'缓冲区溢出漏洞