CVSS2
Attack Vector
NETWORK
Attack Complexity
MEDIUM
Authentication
NONE
Confidentiality Impact
COMPLETE
Integrity Impact
COMPLETE
Availability Impact
COMPLETE
AV:N/AC:M/Au:N/C:C/I:C/A:C
AI Score
Confidence
Low
EPSS
Percentile
99.7%
This host is missing a critical security update according to
Microsoft Bulletin MS12-039.
# Copyright (C) 2012 Greenbone Networks GmbH
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# 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.902842");
script_version("2022-05-25T07:40:23+0000");
script_cve_id("CVE-2011-3402", "CVE-2012-0159", "CVE-2012-1849", "CVE-2012-1858");
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_tag(name:"last_modification", value:"2022-05-25 07:40:23 +0000 (Wed, 25 May 2022)");
script_tag(name:"creation_date", value:"2012-06-13 11:11:11 +0530 (Wed, 13 Jun 2012)");
script_name("Microsoft Lync Remote Code Execution Vulnerabilities (2707956)");
script_xref(name:"URL", value:"http://www.securitytracker.com/id/1027150");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/50462");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/53335");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/53831");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/53833");
script_xref(name:"URL", value:"https://docs.microsoft.com/en-us/security-updates/securitybulletins/2012/ms12-039");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2012 Greenbone Networks GmbH");
script_family("Windows : Microsoft Bulletins");
script_dependencies("secpod_ms_lync_detect_win.nasl");
script_require_ports(139, 445);
script_mandatory_keys("MS/Lync/Installed");
script_tag(name:"impact", value:"Successful exploitation could allow an attacker to execute arbitrary code
with kernel-level privileges. Failed exploit attempts may result in a
denial of service condition.");
script_tag(name:"affected", value:"- Microsoft Lync 2010
- Microsoft Lync 2010 Attendee
- Microsoft Lync 2010 Attendant
- Microsoft Communicator 2007 R2");
script_tag(name:"insight", value:"- An error within the Win32k kernel-mode driver (win32k.sys) when parsing
TrueType fonts.
- An error in the t2embed.dll module when parsing TrueType fonts.
- The client loads libraries in an insecure manner, which can be exploited
to load arbitrary libraries by tricking a user into opening a '.ocsmeet'
file located on a remote WebDAV or SMB share.
- An unspecified error in the 'SafeHTML' API when sanitising HTML code can
be exploited to execute arbitrary HTML and script code in the user's chat
session.");
script_tag(name:"solution", value:"The vendor has released updates. Please see the references for more information.");
script_tag(name:"summary", value:"This host is missing a critical security update according to
Microsoft Bulletin MS12-039.");
script_tag(name:"qod_type", value:"executable_version");
script_tag(name:"solution_type", value:"VendorFix");
exit(0);
}
include("smb_nt.inc");
include("version_func.inc");
include("secpod_smb_func.inc");
if(get_kb_item("MS/Lync/Ver"))
{
path = get_kb_item("MS/Lync/path");
if(path)
{
commVer = fetch_file_version(sysPath:path, file_name:"communicator.exe");
if(commVer)
{
if(version_in_range(version:commVer, test_version:"3.5", test_version2:"3.5.6907.252")||
version_in_range(version:commVer, test_version:"4.0", test_version2:"4.0.7577.4097"))
{
security_message( port: 0, data: "The target host was found to be vulnerable" );
exit(0);
}
}
}
}
## For Microsoft Lync 2010 Attendee (admin level install)
## For Microsoft Lync 2010 Attendee (user level install)
if(get_kb_item("MS/Lync/Attendee/Ver"))
{
path = get_kb_item("MS/Lync/Attendee/path");
if(path)
{
oglVer = fetch_file_version(sysPath:path, file_name:"Ogl.dll");
if(oglVer)
{
if(version_in_range(version:oglVer, test_version:"4.0", test_version2:"4.0.7577.4097"))
{
security_message( port: 0, data: "The target host was found to be vulnerable" );
exit(0);
}
}
}
}
if(get_kb_item("MS/Lync/Attendant/Ver"))
{
path = get_kb_item("MS/Lync/Attendant/path");
if(path)
{
attVer = fetch_file_version(sysPath:path, file_name:"AttendantConsole.exe");
if(attVer)
{
if(version_in_range(version:attVer, test_version:"4.0", test_version2:"4.0.7577.4097"))
{
security_message( port: 0, data: "The target host was found to be vulnerable" );
exit(0);
}
}
}
}