Microsoft Visual Studio Privilege Elevation Vulnerability (2651019) allows attacker to execute code with elevated privileges due to insecure add-in loading paths
Reporter | Title | Published | Views | Family All 10 |
---|---|---|---|---|
Microsoft KB | MS12-021: Vulnerability in Visual Studio could allow elevation of privilege: March 13, 2012 | 13 Mar 201200:00 | β | mskb |
seebug.org | Microsoft Visual Studio Add-Inζ¬ε°ζιζεζΌζ΄(MS12-021) | 15 Mar 201200:00 | β | seebug |
NVD | CVE-2012-0008 | 13 Mar 201221:55 | β | nvd |
Tenable Nessus | MS12-021: Vulnerability in Visual Studio Could Allow Elevation of Privilege (2651019) | 13 Mar 201200:00 | β | nessus |
Check Point Advisories | Microsoft Visual Studio Add-In Insecure Library Loading (MS12-021; CVE-2012-0008) | 12 Mar 201200:00 | β | checkpoint_advisories |
securityvulns | Microsoft Visual Studio code execution | 14 Mar 201200:00 | β | securityvulns |
CVE | CVE-2012-0008 | 13 Mar 201221:55 | β | cve |
Cvelist | CVE-2012-0008 | 13 Mar 201221:00 | β | cvelist |
Prion | Design/Logic Flaw | 13 Mar 201221:55 | β | prion |
OpenVAS | Microsoft Visual Studio Privilege Elevation Vulnerability (2651019) | 14 Mar 201200:00 | β | openvas |
Source | Link |
---|---|
secunia | www.secunia.com/advisories/48396 |
support | www.support.microsoft.com/kb/2669970 |
technet | www.technet.microsoft.com/en-us/security/bulletin/ms12-021 |
support | www.support.microsoft.com/kb/2645410 |
securitytracker | www.securitytracker.com/id/1026792 |
###############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_ms12-021.nasl 6532 2017-07-05 07:42:05Z cfischer $
#
# Microsoft Visual Studio Privilege Elevation Vulnerability (2651019)
#
# Authors:
# Sooraj KS <[email protected]>
#
# Copyright:
# Copyright (c) 2012 SecPod, http://www.secpod.com
#
# 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 could allow attacker to execute arbitrary code with
elevated privileges.
Impact Level: System/Application";
tag_affected = "Microsoft Visual Studio 2008 SP 1 and prior
Microsoft Visual Studio 2010 SP 1 and prior";
tag_insight = "The flaw is due to the application loading add-ins from insecure paths.
This can be exploited to gain additional privileges by placing malicious add-
ins in certain directories and tricking a user into starting Visual Studio.";
tag_solution = "Run Windows Update and update the listed hotfixes or download and
update mentioned hotfixes in the advisory from the below link,
http://technet.microsoft.com/en-us/security/bulletin/ms12-021";
tag_summary = "This host is missing an important security update according to
Microsoft Bulletin MS12-021.";
if(description)
{
script_id(902817);
script_version("$Revision: 6532 $");
script_cve_id("CVE-2012-0008");
script_bugtraq_id(52329);
script_tag(name:"cvss_base", value:"6.9");
script_tag(name:"cvss_base_vector", value:"AV:L/AC:M/Au:N/C:C/I:C/A:C");
script_tag(name:"last_modification", value:"$Date: 2017-07-05 09:42:05 +0200 (Wed, 05 Jul 2017) $");
script_tag(name:"creation_date", value:"2012-03-14 10:10:10 +0530 (Wed, 14 Mar 2012)");
script_name("Microsoft Visual Studio Privilege Elevation Vulnerability (2651019)");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2012 SecPod");
script_family("Windows : Microsoft Bulletins");
script_dependencies("secpod_ms_visual_prdts_detect.nasl");
script_mandatory_keys("Microsoft/VisualStudio/Ver");
script_require_ports(139, 445);
script_tag(name : "impact" , value : tag_impact);
script_tag(name : "affected" , value : tag_affected);
script_tag(name : "insight" , value : tag_insight);
script_tag(name : "solution" , value : tag_solution);
script_tag(name : "summary" , value : tag_summary);
script_tag(name:"qod_type", value:"registry");
script_tag(name:"solution_type", value:"VendorFix");
script_xref(name : "URL" , value : "http://secunia.com/advisories/48396");
script_xref(name : "URL" , value : "http://support.microsoft.com/kb/2669970");
script_xref(name : "URL" , value : "http://support.microsoft.com/kb/2645410");
script_xref(name : "URL" , value : "http://support.microsoft.com/kb/2645410");
script_xref(name : "URL" , value : "http://www.securitytracker.com/id/1026792");
script_xref(name : "URL" , value : "http://technet.microsoft.com/en-us/security/bulletin/ms12-021");
exit(0);
}
include("smb_nt.inc");
include("secpod_reg.inc");
include("version_func.inc");
include("secpod_smb_func.inc");
## Variables Initialization
vsPath = "";
vsVer = NULL;
dllVer = NULL;
exeVer = NULL;
## MS12-021 Hotfix check
if((hotfix_missing(name:"2669970") == 0) && (hotfix_missing(name:"2644980") == 0) &&
(hotfix_missing(name:"2645410") == 0)){
exit(0);
}
## Get Visual Studio Version
vsVer = get_kb_item("Microsoft/VisualStudio/Ver");
if(!vsVer){
exit(0);
}
## Check for Visual Studio 2008 SP1
if(vsVer =~ "^9\..*")
{
vsPath = registry_get_sz(key:"SOFTWARE\Microsoft\VSA\9.0", item:"InstallDir");
if(!vsPath){
exit(0);
}
## Get Vsaenv.exe Version
exeVer = fetch_file_version(sysPath:vsPath, file_name:"Vsaenv.exe");
## Check for Vsaenv.exe version < 9.0.30729.5797
if(exeVer && version_is_less(version:exeVer, test_version:"9.0.30729.5797"))
{
security_message(0);
exit(0);
}
}
## Check for Visual Studio 2010/2010 SP1
if(vsVer =~ "^10\..*")
{
## Get Visual Studio Path
vsPath = registry_get_sz(key:"SOFTWARE\Microsoft\VisualStudio\10.0", item:"InstallDir");
if(!vsPath){
exit(0);
}
## Get AppenvStub.dll Version
dllVer = fetch_file_version(sysPath:vsPath, file_name:"ShellExtensions\Platform\AppenvStub.dll");
## Check for Visual Studio 2010 version 10 < 10.0.30319.552
## Visual Studio 2010 SP1 version 10 < 10.0.40219.377
if(dllVer && (version_is_less(version:dllVer, test_version:"10.0.30319.552") ||
version_in_range(version:dllVer, test_version:"10.0.40000.000", test_version2:"10.0.40219.376"))){
security_message(0);
}
}
Transform Your Security Services
Elevate your offerings with Vulners' advanced Vulnerability Intelligence. ContactΒ us for a demo andΒ discover the difference comprehensive, actionable intelligence can make in your security strategy.
Book a live demo