4.3 Medium
CVSS2
Attack Vector
NETWORK
Attack Complexity
MEDIUM
Authentication
NONE
Confidentiality Impact
NONE
Integrity Impact
PARTIAL
Availability Impact
NONE
AV:N/AC:M/Au:N/C:N/I:P/A:N
6.4 Medium
AI Score
Confidence
Low
0.055 Low
EPSS
Percentile
93.2%
This host is missing an important security
update according to Microsoft Bulletin MS15-062.
# SPDX-FileCopyrightText: 2015 Greenbone AG
# 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-only
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.805197");
script_version("2024-06-21T05:05:42+0000");
script_cve_id("CVE-2015-1757");
script_tag(name:"cvss_base", value:"4.3");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:N/I:P/A:N");
script_tag(name:"last_modification", value:"2024-06-21 05:05:42 +0000 (Fri, 21 Jun 2024)");
script_tag(name:"creation_date", value:"2015-06-10 08:58:45 +0530 (Wed, 10 Jun 2015)");
script_tag(name:"qod_type", value:"executable_version");
script_name("Microsoft Active Directory Federation Services Privilege Escalation Vulnerability (3062577)");
script_tag(name:"summary", value:"This host is missing an important security
update according to Microsoft Bulletin MS15-062.");
script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");
script_tag(name:"insight", value:"The flaw is due to an improper
sanitization URLs in Active Directory Federation Services (AD FS).");
script_tag(name:"impact", value:"Successful exploitation will allow remote
attackers to execute arbitrary HTML or script code in the security context
of the logged-on user.");
script_tag(name:"affected", value:"Active Directory Federation Services 2.0
on Windows Server 2008 x86/x64 sp2 and Windows Server 2008 R2 sp1,
Active Directory Federation Services 2.1 on Windows Server 2012");
script_tag(name:"solution", value:"The vendor has released updates. Please see the references for more information.");
script_tag(name:"solution_type", value:"VendorFix");
script_xref(name:"URL", value:"https://support.microsoft.com/en-us/kb/3062577");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/75023");
script_xref(name:"URL", value:"https://technet.microsoft.com/library/security/MS15-062");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2015 Greenbone AG");
script_family("Windows : Microsoft Bulletins");
script_dependencies("smb_reg_service_pack.nasl");
script_require_ports(139, 445);
script_mandatory_keys("SMB/WindowsVersion");
exit(0);
}
include("smb_nt.inc");
include("secpod_reg.inc");
include("version_func.inc");
include("secpod_smb_func.inc");
if(hotfix_check_sp(win2008:3, win2008r2:2, win2012:1) <= 0){
exit(0);
}
adfs1 = registry_key_exists(key:"SOFTWARE\Microsoft\ADFS");
adfs2 = registry_key_exists(key:"SOFTWARE\Microsoft\ADFS2.0");
if(!adfs1 && !adfs2){
exit(0);
}
ProgramFilesDir = registry_get_sz(key:"SOFTWARE\Microsoft\Windows\CurrentVersion",
item:"ProgramFilesDir");
if(ProgramFilesDir)
{
adfs1_path = ProgramFilesDir + "\Active Directory Federation Services 2.0";
adfs1_ver = fetch_file_version(sysPath:adfs1_path, file_name:"Microsoft.identityserver.dll");
if(adfs1_ver)
{
if((hotfix_check_sp(win2008:3) > 0) &&
(version_in_range(version:adfs1_ver, test_version:"6.1.7601.00000", test_version2:"6.1.7601.18846")||
version_in_range(version:adfs1_ver, test_version:"6.1.7601.23000", test_version2:"6.1.7601.23048")))
{
security_message( port: 0, data: "The target host was found to be vulnerable" );
exit(0);
}
## File information is not available for Win 2008R2
}
}
sysPath = smb_get_systemroot();
if(sysPath)
{
adfs2_ver = fetch_file_version(sysPath:sysPath, file_name:"\ADFS\Microsoft.identityserver.dll");
if(adfs2_ver)
{
if((hotfix_check_sp(win2012:1) > 0) &&
(version_in_range(version:adfs2_ver, test_version:"6.2.9200.16000", test_version2:"6.2.9200.17365")||
version_in_range(version:adfs2_ver, test_version:"6.2.9200.20000", test_version2:"6.2.9200.21477")))
{
security_message( port: 0, data: "The target host was found to be vulnerable" );
exit(0);
}
}
}