Vulnerabilities > CVE-2013-3889 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in Microsoft products
Attack vector
NETWORK Attack complexity
MEDIUM Privileges required
NONE Confidentiality impact
COMPLETE Integrity impact
COMPLETE Availability impact
COMPLETE Summary
Microsoft Excel 2007 SP3, 2010 SP1 and SP2, 2013, and 2013 RT; Office 2007 SP3, 2010 SP1 and SP2, 2013, and 2013 RT; Office for Mac 2011; Excel Viewer; Office Compatibility Pack SP3; and Excel Services and Word Automation Services in SharePoint Server 2013 allow remote attackers to execute arbitrary code via a crafted Office document, aka "Microsoft Excel Memory Corruption Vulnerability."
Vulnerable Configurations
Common Weakness Enumeration (CWE)
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.
Msbulletin
bulletin_id MS13-084 bulletin_url date 2013-10-08T00:00:00 impact Remote Code Execution knowledgebase_id 2885089 knowledgebase_url severity Important title Vulnerabilities in Microsoft SharePoint Server Could Allow Remote Code Execution bulletin_id MS13-085 bulletin_url date 2013-10-08T00:00:00 impact Remote Code Execution knowledgebase_id 2885080 knowledgebase_url severity Important title Vulnerabilities in Microsoft Excel Could Allow Remote Code Execution
Nessus
NASL family Windows : Microsoft Bulletins NASL id SMB_NT_MS13-085.NASL description The remote Windows host is running a version of Microsoft Office, Microsoft Excel, Office Compatibility Pack, or Microsoft Excel Viewer that is affected by remote code execution vulnerabilities in the way that Microsoft Excel parses file contents. (CVE-2013-3889, CVE-2013-3890). If an attacker can trick a user on the affected host into opening a specially crafted file, it may be possible to leverage these issues to read arbitrary files on the target system or execute arbitrary code, subject to the user last seen 2020-06-01 modified 2020-06-02 plugin id 70337 published 2013-10-09 reporter This script is Copyright (C) 2013-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/70337 title MS13-085: Vulnerabilities in Microsoft Excel Could Allow Remote Code Execution (2885080) code # # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(70337); script_version("1.14"); script_cvs_date("Date: 2018/11/15 20:50:31"); script_cve_id("CVE-2013-3889", "CVE-2013-3890"); script_bugtraq_id(62824, 62829); script_xref(name:"MSFT", value:"MS13-085"); script_xref(name:"MSKB", value:"2760585"); script_xref(name:"MSKB", value:"2760591"); script_xref(name:"MSKB", value:"2817623"); script_xref(name:"MSKB", value:"2826023"); script_xref(name:"MSKB", value:"2826033"); script_xref(name:"MSKB", value:"2826035"); script_xref(name:"MSKB", value:"2827238"); script_xref(name:"MSKB", value:"2827324"); script_xref(name:"MSKB", value:"2827326"); script_xref(name:"MSKB", value:"2827328"); script_xref(name:"MSKB", value:"2885080"); script_name(english:"MS13-085: Vulnerabilities in Microsoft Excel Could Allow Remote Code Execution (2885080)"); script_summary(english:"Checks file versions."); script_set_attribute(attribute:"synopsis", value: "The Microsoft Office component installed on the remote host is affected by multiple remote code execution vulnerabilities."); script_set_attribute(attribute:"description", value: "The remote Windows host is running a version of Microsoft Office, Microsoft Excel, Office Compatibility Pack, or Microsoft Excel Viewer that is affected by remote code execution vulnerabilities in the way that Microsoft Excel parses file contents. (CVE-2013-3889, CVE-2013-3890). If an attacker can trick a user on the affected host into opening a specially crafted file, it may be possible to leverage these issues to read arbitrary files on the target system or execute arbitrary code, subject to the user's privileges."); script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2013/ms13-085"); script_set_attribute(attribute:"solution", value: "Microsoft has released a set of patches for Excel 2007, Excel 2010, Excel 2013, Office 2007, Office 2010, Office 2013, Excel Viewer, and Office Compatibility Pack."); 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:U/RL:OF/RC:C"); script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available"); script_set_attribute(attribute:"exploit_available", value:"false"); script_set_attribute(attribute:"vuln_publication_date", value:"2013/10/08"); script_set_attribute(attribute:"patch_publication_date", value:"2013/10/08"); script_set_attribute(attribute:"plugin_publication_date", value:"2013/10/09"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:excel"); script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:excel_viewer"); script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office"); script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office_compatibility_pack"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_family(english:"Windows : Microsoft Bulletins"); script_copyright(english:"This script is Copyright (C) 2013-2018 Tenable Network Security, Inc."); script_dependencies("office_installed.nasl", "smb_hotfixes.nasl", "ms_bulletin_checks_possible.nasl"); script_require_keys("SMB/MS_Bulletin_Checks/Possible"); script_require_ports(139, 445, "Host/patch_management_checks"); exit(0); } include("audit.inc"); include("smb_func.inc"); include("smb_hotfixes.inc"); include("smb_hotfixes_fcheck.inc"); include("smb_reg_query.inc"); include("misc_func.inc"); get_kb_item_or_exit("SMB/MS_Bulletin_Checks/Possible"); bulletin = "MS13-085"; kbs = make_list( 2760585, 2760591, 2817623, 2826023, 2826033, 2826035, 2827238, 2827324, 2827326, 2827328, 2885080 ); if (get_kb_item("Host/patch_management_checks")) hotfix_check_3rd_party(bulletin:bulletin, kbs:kbs, severity:SECURITY_HOLE); info = ""; vuln = FALSE; ###################################################################### # Office ###################################################################### installs = get_kb_list("SMB/Office/Excel/*/ProductPath"); if (!isnull(installs)) { foreach install (keys(installs)) { version = install - 'SMB/Office/Excel/' - '/ProductPath'; ver = split(version, sep:'.', keep:FALSE); for (i=0; i < max_index(ver); i++) ver[i] = int(ver[i]); path = installs[install]; path = path - '\\Excel.exe'; info = ''; # Office 2007 SP3 if (ver[0] == 12) # Ensure share is accessible { office_sp = get_kb_item("SMB/Office/2007/SP"); if (!isnull(office_sp) && office_sp == 3) { if ( (ver[0] == 12 && ver[1] == 0 && ver[2] >= 6611) && ( (ver[0] == 12 && ver[1] == 0 && ver[2] < 6683) || (ver[0] == 12 && ver[1] == 0 && ver[2] == 6683 && ver[3] < 5002) ) ) { vuln = TRUE; info = '\n Product : Excel 2007' + '\n File : ' + path + '\n Installed version : ' + version + '\n Fixed version : 12.0.6683.5002' + '\n'; hotfix_add_report(info, bulletin:bulletin, kb:"2827324"); } share = hotfix_path2share(path:path); if (is_accessible_share(share:share)) { check_file = "Oart.dll"; old_report = hotfix_get_report(); if (hotfix_check_fversion(path:path, file:check_file, version:"12.0.6683.5002", min_version:"12.0.0.0") == HCF_OLDER) { file = ereg_replace(pattern:"^[A-Za-z]:(.*)", string:path, replace:"\1\" + check_file); kb_name = "SMB/FileVersions/"+tolower(share-'$')+tolower(str_replace(string:file, find:"\", replace:"/")); fversion = get_kb_item(kb_name); info = '\n Product : Microsoft Office 2007 SP3' + '\n File : ' + path + '\\' + check_file + '\n Installed version : ' + fversion + '\n Fixed version : 12.0.6683.5002' + '\n'; hcf_report = ''; hotfix_add_report(old_report + info, bulletin:bulletin, kb:"2760585"); vuln = TRUE; } NetUseDel(close:FALSE); check_file = "Oartconv.dll"; old_report = hotfix_get_report(); if (hotfix_check_fversion(path:path, file:check_file, version:"12.0.6683.5002", min_version:"12.0.0.0") == HCF_OLDER) { file = ereg_replace(pattern:"^[A-Za-z]:(.*)", string:path, replace:"\1\" + check_file); kb_name = "SMB/FileVersions/"+tolower(share-'$')+tolower(str_replace(string:file, find:"\", replace:"/")); fversion = get_kb_item(kb_name); info = '\n Product : Microsoft Office 2007 SP3' + '\n File : ' + path + '\\' + check_file + '\n Installed version : ' + fversion + '\n Fixed version : 12.0.6683.5002' + '\n'; hcf_report = ''; hotfix_add_report(old_report + info, bulletin:bulletin, kb:"2760591"); vuln = TRUE; } NetUseDel(close:FALSE); } } } else if (ver[0] == 14) { # Office 2010 SP1 or Sp2 office_sp = get_kb_item("SMB/Office/2010/SP"); if (!isnull(office_sp) && (office_sp == 1 || office_sp == 2)) { if ( (ver[0] == 14 && ver[1] == 0 && ver[2] < 7109) || (ver[0] == 14 && ver[1] == 0 && ver[2] == 7109 && ver[3] < 5000) ) { vuln = TRUE; info = '\n Product : Excel 2010' + '\n File : ' + path + '\n Installed version : ' + version + '\n Fixed version : 14.0.7109.5000' + '\n'; hotfix_add_report(info, bulletin:bulletin, kb:"2826033"); } share = hotfix_path2share(path:path); if (is_accessible_share(share:share)) { check_file = "Oart.dll"; old_report = hotfix_get_report(); if (hotfix_check_fversion(path:path, file:check_file, version:"14.0.7108.5000", min_version:"14.0.0.0") == HCF_OLDER) { file = ereg_replace(pattern:"^[A-Za-z]:(.*)", string:path, replace:"\1\" + check_file); kb_name = "SMB/FileVersions/"+tolower(share-'$')+tolower(str_replace(string:file, find:"\", replace:"/")); fversion = get_kb_item(kb_name); info = '\n Product : Microsoft Office 2010' + '\n File : ' + path + '\\' + check_file + '\n Installed version : ' + fversion + '\n Fixed version : 14.0.7108.5000' + '\n'; hcf_report = ''; hotfix_add_report(old_report + info, bulletin:bulletin, kb:"2826023"); vuln = TRUE; } NetUseDel(close:FALSE); check_file = "Oartconv.dll"; old_report = hotfix_get_report(); if (hotfix_check_fversion(path:path, file:check_file, version:"14.0.7108.5000", min_version:"14.0.0.0") == HCF_OLDER) { file = ereg_replace(pattern:"^[A-Za-z]:(.*)", string:path, replace:"\1\" + check_file); kb_name = "SMB/FileVersions/"+tolower(share-'$')+tolower(str_replace(string:file, find:"\", replace:"/")); fversion = get_kb_item(kb_name); info = '\n Product : Microsoft Office 2010' + '\n File : ' + path + '\\' + check_file + '\n Installed version : ' + fversion + '\n Fixed version : 14.0.7108.5000' + '\n'; hcf_report = ''; hotfix_add_report(old_report + info, bulletin:bulletin, kb:"2826035"); vuln = TRUE; } NetUseDel(close:FALSE); } } } else if (ver[0] == 15) { # Office 2013 if ( (ver[0] == 15 && ver[1] == 0 && ver[2] < 4535) || (ver[0] == 15 && ver[1] == 0 && ver[2] == 4535 && ver[3] < 1507) ) { vuln = TRUE; info = '\n Product : Excel 2013' + '\n File : ' + path + '\n Installed version : ' + version + '\n Fixed version : 15.0.4535.1507' + '\n'; hotfix_add_report(info, bulletin:bulletin, kb:"2827238"); } share = hotfix_path2share(path:path); if (is_accessible_share(share:share)) { check_file = "Oart.dll"; old_report = hotfix_get_report(); if (hotfix_check_fversion(path:path, file:check_file, version:"15.0.4535.1507", min_version:"15.0.0.0") == HCF_OLDER) { file = ereg_replace(pattern:"^[A-Za-z]:(.*)", string:path, replace:"\1\" + check_file); kb_name = "SMB/FileVersions/"+tolower(share-'$')+tolower(str_replace(string:file, find:"\", replace:"/")); fversion = get_kb_item(kb_name); info = '\n Product : Microsoft Office 2013' + '\n File : ' + path + '\\' + check_file + '\n Installed version : ' + fversion + '\n Fixed version : 15.0.4535.1507' + '\n'; hcf_report = ''; hotfix_add_report(old_report + info, bulletin:bulletin, kb:"2817623"); vuln = TRUE; } NetUseDel(close:FALSE); } } } } ###################################################################### # Excel Viewer ###################################################################### version = ''; installs = get_kb_list("SMB/Office/ExcelViewer/*/ProductPath"); if (!isnull(installs)) { foreach install (keys(installs)) { version = install - 'SMB/Office/ExcelViewer/' - '/ProductPath'; path = installs[install]; if (isnull(path)) path = "n/a"; ver = split(version, sep:".", keep:FALSE); for (i = 0; i < max_index(ver); i++) ver[i] = int(ver[i]); # Excel Viewer 2007 SP3. if ( (ver[0] == 12 && ver[1] == 0 && ver[2] >= 6611) && ( (ver[0] == 12 && ver[1] == 0 && ver[2] < 6683) || (ver[0] == 12 && ver[1] == 0 && ver[2] == 6683 && ver[3] < 5005) ) ) { vuln = TRUE; info = '\n Product : Excel Viewer' + '\n File : ' + path + '\n Installed version : ' + version + '\n Fixed version : 12.0.6683.5005' + '\n'; hotfix_add_report(info, bulletin:bulletin, kb:"2827328"); break; } } } if (!version) { # Additional check if registry key is missing path = get_kb_item("SMB/Office/Excel/12.0/Path"); kb = "2827328"; if ( hotfix_is_vulnerable(file:"Xlview.exe", version:"12.0.6683.5005", min_version:"12.0.0.0", path:path, bulletin:bulletin, kb:kb) ) vuln = TRUE; } ###################################################################### # Microsoft Office Compatibility Pack ###################################################################### version = ''; installs = get_kb_list("SMB/Office/ExcelCnv/*/ProductPath"); if (!isnull(installs)) { foreach install (keys(installs)) { version = install - 'SMB/Office/ExcelCnv/' - '/ProductPath'; path = installs[install]; if (isnull(path)) path = "n/a"; ver = split(version, sep:".", keep:FALSE); for (i = 0; i < max_index(ver); i++) ver[i] = int(ver[i]); if ( (ver[0] == 12 && ver[1] == 0 && ver[2] < 6683) || (ver[0] == 12 && ver[1] == 0 && ver[2] == 6683 && ver[3] < 5002) ) { info = '\n Product : 2007 Office system and the Office Compatibility Pack' + '\n File : '+ path + '\n Installed version : '+ version + '\n Fixed version : 12.0.6683.5002' + '\n'; hotfix_add_report(info, bulletin:bulletin, kb:"2827326"); } } } if (!version) { # Additional check if registry key is missing path = get_kb_item("SMB/Office/Excel/12.0/Path"); kb = "2827326"; if ( hotfix_is_vulnerable(file:"Excelcnv.exe", version:"12.0.6683.5002", min_version:"12.0.0.0", path:path, bulletin:bulletin, kb:kb) ) vuln = TRUE; } if (info || vuln) { set_kb_item(name:"SMB/Missing/" + bulletin, value:TRUE); hotfix_security_hole(); hotfix_check_fversion_end(); exit(0); } else { hotfix_check_fversion_end(); audit(AUDIT_HOST_NOT, "affected"); }
NASL family Windows : Microsoft Bulletins NASL id SMB_NT_MS13-084.NASL description The versions of Office SharePoint Server, SharePoint Server, Windows SharePoint Services, SharePoint Foundation, or Office Web Apps installed on the remote host are affected by multiple vulnerabilities : - A remote code execution vulnerability exists in the way that Microsoft Office Services and Web Apps parse content in specially crafted files. (CVE-2013-3889) - An elevation of privilege vulnerability exists. (CVE-2013-3895) last seen 2020-06-01 modified 2020-06-02 plugin id 70336 published 2013-10-09 reporter This script is Copyright (C) 2013-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/70336 title MS13-084: Vulnerabilities in Microsoft SharePoint Server Could Allow Remote Code Execution (2885089) code # # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(70336); script_version("1.14"); script_cvs_date("Date: 2018/11/15 20:50:31"); script_cve_id("CVE-2013-3889", "CVE-2013-3895"); script_bugtraq_id(62800, 62829); script_xref(name:"MSFT", value:"MS13-084"); script_xref(name:"MSKB", value:"2589365"); script_xref(name:"MSKB", value:"2596741"); script_xref(name:"MSKB", value:"2752002"); script_xref(name:"MSKB", value:"2760561"); script_xref(name:"MSKB", value:"2826022"); script_xref(name:"MSKB", value:"2826028"); script_xref(name:"MSKB", value:"2826029"); script_xref(name:"MSKB", value:"2826030"); script_xref(name:"MSKB", value:"2826036"); script_xref(name:"MSKB", value:"2827222"); script_xref(name:"MSKB", value:"2827327"); script_xref(name:"IAVB", value:"2013-B-0116"); script_name(english:"MS13-084: Vulnerabilities in Microsoft SharePoint Server Could Allow Remote Code Execution (2885089)"); script_summary(english:"Checks SharePoint / Office Web Apps version"); script_set_attribute(attribute:"synopsis", value:"The remote host is affected by multiple vulnerabilities."); script_set_attribute(attribute:"description", value: "The versions of Office SharePoint Server, SharePoint Server, Windows SharePoint Services, SharePoint Foundation, or Office Web Apps installed on the remote host are affected by multiple vulnerabilities : - A remote code execution vulnerability exists in the way that Microsoft Office Services and Web Apps parse content in specially crafted files. (CVE-2013-3889) - An elevation of privilege vulnerability exists. (CVE-2013-3895)"); script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2013/ms13-084"); script_set_attribute(attribute:"solution", value: "Microsoft has released a set of patches for SharePoint Server 2007, SharePoint Server 2010, SharePoint Foundation 2010, SharePoint Server 2013, and Office Web Apps 2010."); 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:U/RL:OF/RC:C"); script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available"); script_set_attribute(attribute:"exploit_available", value:"false"); script_set_attribute(attribute:"vuln_publication_date", value:"2013/10/08"); script_set_attribute(attribute:"patch_publication_date", value:"2013/10/08"); script_set_attribute(attribute:"plugin_publication_date", value:"2013/10/09"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:sharepoint_server"); script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office_web_apps"); script_set_attribute(attribute:"stig_severity", value:"II"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_family(english:"Windows : Microsoft Bulletins"); script_copyright(english:"This script is Copyright (C) 2013-2018 Tenable Network Security, Inc."); script_dependencies("smb_hotfixes.nasl", "office_installed.nasl", "ms_bulletin_checks_possible.nasl"); script_require_keys("SMB/MS_Bulletin_Checks/Possible"); script_require_ports(139, 445, "Host/patch_management_checks"); exit(0); } include("audit.inc"); include("smb_func.inc"); include("smb_hotfixes.inc"); include("smb_hotfixes_fcheck.inc"); include("smb_reg_query.inc"); include("misc_func.inc"); global_var bulletin, vuln; function get_ver() { local_var fh, path, rc, share, ver; path = _FCT_ANON_ARGS[0]; share = ereg_replace(pattern:"^([A-Za-z]):.*", replace:"\1$", string:path); rc = NetUseAdd(share:share); if (rc != 1) { NetUseDel(); audit(AUDIT_SHARE_FAIL, share); } ver = NULL; path = ereg_replace(string:path, pattern:"^[A-Za-z]:(.*)", replace:'\\1\\'); fh = CreateFile( file : path, desired_access : GENERIC_READ, file_attributes : FILE_ATTRIBUTE_NORMAL, share_mode : FILE_SHARE_READ, create_disposition : OPEN_EXISTING ); if (!isnull(fh)) { ver = GetFileVersion(handle:fh); ver = join(ver, sep:"."); CloseFile(handle:fh); } NetUseDel(close:FALSE); return ver; } function check_vuln(fix, kb, name, path, ver) { local_var info; if (isnull(ver)) ver = get_ver(path); if (isnull(ver) || ver_compare(ver:ver, fix:fix, strict:FALSE) >= 0) return 0; info = '\n Product : ' + name + '\n Path : ' + path + '\n Installed version : ' + ver + '\n Fixed version : ' + fix + '\n'; hotfix_add_report(info, bulletin:bulletin, kb:kb); vuln = TRUE; } get_kb_item_or_exit("SMB/MS_Bulletin_Checks/Possible"); bulletin = "MS13-084"; kbs = make_list( 2589365, 2596741, 2752002, 2760561, 2826022, 2826028, 2826029, 2826030, 2826036, 2827222, 2827327); if (get_kb_item("Host/patch_management_checks")) hotfix_check_3rd_party(bulletin:bulletin, kbs:kbs, severity:SECURITY_HOLE); get_kb_item_or_exit("SMB/Registry/Enumerated", exit_code:1); # Connect to the registry. registry_init(); hklm = registry_hive_connect(hive:HKEY_LOCAL_MACHINE, exit_on_fail:TRUE); # Get the path information for SharePoint Server 2007 sps_2007_path = get_registry_value( handle : hklm, item : "SOFTWARE\Microsoft\Office Server\12.0\InstallPath" ); # Get path information for SharePoint Server 2010. sps_2010_path = get_registry_value( handle : hklm, item : "SOFTWARE\Microsoft\Office Server\14.0\InstallPath" ); # Get the path information for SharePoint Server 2013 sps_2013_path = get_registry_value( handle : hklm, item : "SOFTWARE\Microsoft\Office Server\15.0\InstallPath" ); # Get the path information for SharePoint Service 3.0 sps_30_path = get_registry_value( handle : hklm, item : "SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Location" ); # Get path information for SharePoint Foundation 2010. spf_2010_path = get_registry_value( handle : hklm, item : "SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0\Location" ); # Close connection to registry. RegCloseKey(handle:hklm); close_registry(close:FALSE); # Get path information for Windows. windir = hotfix_get_systemroot(); if (isnull(windir)) exit(1, "Failed to determine the location of %windir%."); # Get path information for Common Files. commonprogramfiles = hotfix_get_commonfilesdir(); if (isnull(commonprogramfiles)) exit(1, "Failed to determine the location of %commonprogramfiles%."); # Get path information for Office Web Apps. owa_2010_path = sps_2010_path; ###################################################################### # SharePoint Server 2007 SP3 # # [KB2827327] xlsrv.dll: 12.0.6683.5002 ###################################################################### if (sps_2007_path) { name = "Office SharePoint Server 2007"; get_kb_item_or_exit("SMB/Registry/Uninstall/Enumerated", exit_code:1); check_vuln( name : name, kb : "2827327", path : sps_2007_path + "Bin\xlsrv.dll", fix : "12.0.6683.5002" ); display_names = get_kb_list("SMB/Registry/HKLM/SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/*/DisplayName"); if (display_names) { kb2596741 = FALSE; foreach item (keys(display_names)) { if ('Security Update for Microsoft Office SharePoint Server 2007 (KB2596741)' >< display_names[item]) { kb2596741 = TRUE; break; } } } if (!kb2596741) { hotfix_add_report('\n According to the registry, KB2596741 is missing.\n', bulletin:bulletin, kb:2596741); vuln++; } } ###################################################################### # SharePoint Foundation 2010 SP1 / SP2 # # [KB2589365] Onetutil.dll: 14.0.7106.5002 ###################################################################### if (spf_2010_path) { path = spf_2010_path + "Bin\Onetutil.dll"; ver = get_ver(path); if (ver && ver =~ "^14\.") { check_vuln( name : "SharePoint Foundation 2010", kb : "2589365", path : path, ver : ver, fix : "14.0.7106.5002" ); } } ###################################################################### # SharePoint Server 2010 SP1 / SP2 # # [KB2826029]- xlsrv.dll: 14.0.7108.5000 # [KB2826022] - sword.dll: 14.0.7109.5000 ###################################################################### if (sps_2010_path) { name = "Office SharePoint Server 2010"; check_vuln( name : name, kb : "2826029", path : sps_2010_path + "Bin\xlsrv.dll", fix : "14.0.7108.5000" ); check_vuln( name : "Office SharePoint Server 2010", kb : "2826022", path : sps_2010_path + "WebServices\WordServer\Core\sword.dll", fix : "14.0.7109.5000" ); } ###################################################################### # SharePoint Server 2013 # # [KB2827222] Microsoft.Office.Excel.Server.dll: 15.0.4525.1000 # [KB2760561] Microsoft.Office.Server.PowePoint.dll: 15.0.4525.1000 # [KB2752002] xlsrv.dll: 15.0.4535.1007 # [KB2826036] sword.dll: 15.0.4535.1507 ###################################################################### if (sps_2013_path) { name = "Office SharePoint Server 2013"; check_vuln( name : name, kb : "2827222", path : windir + "\Microsoft.NET\assembly\GAC_MSIL\Microsoft.Office.Excel.Server\v4.0_15.0.0.0__71e9bce111e9429c\Microsoft.Office.Excel.Server.dll", fix : "15.0.4525.1000" ); check_vuln( name : name, kb : "2760561", path : windir + "\Microsoft.NET\assembly\GAC_MSIL\Microsoft.Office.Server.PowerPoint\v4.0_15.0.0.0__71e9bce111e9429c\Microsoft.Office.Server.PowerPoint.dll", fix : "15.0.4521.1000" ); check_vuln( name : name, kb : "2752002", path : sps_2013_path + "Bin\xlsrv.dll", fix : "15.0.4535.1507" ); check_vuln( name : name, kb : "2826036", path : sps_2013_path + "WebServices\ConversionServices\sword.dll", fix : "15.0.4535.1507" ); } ###################################################################### # Office Web Apps 2010 SP1 / SP2 # # [KB2826028] xlsrv.dll: 14.0.7108.5000 # [KB2826030] sword.dll: 14.0.7106.5001 ###################################################################### if (owa_2010_path) { check_vuln( name : "Office Web Apps 2010", kb : "2826028", path : owa_2010_path + "Bin\xlsrv.dll", fix : "14.0.7108.5000" ); check_vuln( name : "Office Web Apps 2010", kb : "2826030", path : owa_2010_path + "WebServices\ConversionService\Bin\Converter\sword.dll", fix : "14.0.7109.5000" ); } if (vuln) { set_kb_item(name:"SMB/Missing/" + bulletin, value:TRUE); hotfix_security_hole(); hotfix_check_fversion_end(); exit(0); } else { hotfix_check_fversion_end(); audit(AUDIT_HOST_NOT, "affected"); }
NASL family MacOS X Local Security Checks NASL id MACOSX_MS13-085.NASL description The remote Mac OS X host is running a version of Microsoft Excel that is affected by two memory corruption vulnerabilities. If an attacker can trick a user on the affected host into opening a specially crafted Excel file, it may be possible to leverage these issues to execute arbitrary code, subject to the user last seen 2019-10-28 modified 2013-10-09 plugin id 70340 published 2013-10-09 reporter This script is Copyright (C) 2013-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/70340 title MS13-085: Vulnerabilities in Microsoft Excel Could Allow Remote Code Execution (2885080) (Mac OS X) code #TRUSTED 3e6f821c04e607566625fb9a12a3155e53c9953f578efb68b851026de3c2a53d82bdafdaa4e7805ec9f2577ea7f2da4da841366a374ccaadba5822e7339559374b0c28052f75912d3de9227e2c4438ba0b69e4c51eada617dfd75a64f240a855e7fff178ea0ef0ad5ccaa9aa20181738b9c1f97c63d0dd1d69586afe2086882cf666f7bbcc0625ed9d929d0f90407d396a47c8b1dd97d958bb22fe4f0af8ad05cb1a4db87b15e250061d40854e7f17bc5a6992b5a8dc2909ab2c877f2fb68b01a8f7018224faf5e493666a6febf49f782470d034465752e5dc0d33c6a24a19139ded7875dbc467640d6daaa9e7cb0ba7b941604859ca55efab9f0caa4b8629bac265a17eb93bcd368c6fcea1e15303b475c55a60d324e76c4b7e1df46037c77279359662aa6ed1b71797c61051a769daf5b231faf827c252ee1f09135cf49298d6d4fbbca5bb289f1a7a85c9eb57b9a886a7ce4e2b35346151c6c7b8e4145816264b2d107fa6d4df0bd5e5979a2173d8e0f362be9e29360a3157805881f8eea0b705a6cfe07e2173b588cc95c47e7b2960a37fcb74a1ad90caa2c57f6ed78f45196f145dad3ce33595d96ce0c804e972e6801cc55449f02e4fb6a141889ccb5a2dc37ffc71a1a73fa6ab0d3baf74b7159cd163bedfd21b799de16bcd2152df125d0bf52fd1417cb440e275bbde28316aa068d9c0ab81cdc90dad97a96f02f504 # # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(70340); script_version("1.10"); script_set_attribute(attribute:"plugin_modification_date", value:"2018/07/14"); script_cve_id("CVE-2013-3889", "CVE-2013-3890"); script_bugtraq_id(62824, 62829); script_xref(name:"MSFT", value:"MS13-085"); script_xref(name:"MSKB", value:"2889496"); script_name(english:"MS13-085: Vulnerabilities in Microsoft Excel Could Allow Remote Code Execution (2885080) (Mac OS X)"); script_summary(english:"Check version of Microsoft Office"); script_set_attribute( attribute:"synopsis", value: "An application installed on the remote Mac OS X host is affected by a remote code execution vulnerability." ); script_set_attribute( attribute:"description", value: "The remote Mac OS X host is running a version of Microsoft Excel that is affected by two memory corruption vulnerabilities. If an attacker can trick a user on the affected host into opening a specially crafted Excel file, it may be possible to leverage these issues to execute arbitrary code, subject to the user's privileges." ); script_set_attribute(attribute:"see_also", value:"http://technet.microsoft.com/en-us/security/bulletin/ms13-085"); script_set_attribute(attribute:"solution", value:"Microsoft has released a patch for Office for Mac 2011."); 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:U/RL:OF/RC:C"); script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available"); script_set_attribute(attribute:"exploit_available", value:"false"); script_set_attribute(attribute:"vuln_publication_date", value:"2013/10/08"); script_set_attribute(attribute:"patch_publication_date", value:"2013/10/08"); script_set_attribute(attribute:"plugin_publication_date", value:"2013/10/09"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office:2011::mac"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_family(english:"MacOS X Local Security Checks"); script_copyright(english:"This script is Copyright (C) 2013-2018 Tenable Network Security, Inc."); script_dependencies("ssh_get_info.nasl"); script_require_keys("Host/local_checks_enabled", "Host/MacOSX/Version"); exit(0); } include("audit.inc"); include("global_settings.inc"); include("misc_func.inc"); include("ssh_func.inc"); include("macosx_func.inc"); if(sshlib::get_support_level() >= sshlib::SSH_LIB_SUPPORTS_COMMANDS) enable_ssh_wrappers(); else disable_ssh_wrappers(); if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED); os = get_kb_item("Host/MacOSX/Version"); if (!os) audit(AUDIT_OS_NOT, "Mac OS X"); # Gather version info. info = ''; installs = make_array(); prod = 'Office for Mac 2011'; plist = "/Applications/Microsoft Office 2011/Office/MicrosoftComponentPlugin.framework/Versions/14/Resources/Info.plist"; cmd = 'cat \'' + plist + '\' | ' + 'grep -A 1 CFBundleShortVersionString | ' + 'tail -n 1 | ' + 'sed \'s/.*string>\\(.*\\)<\\/string>.*/\\1/g\''; version = exec_cmd(cmd:cmd); if (version && version =~ "^[0-9]+\.") { version = chomp(version); if (version !~ "^14\.") exit(1, "Failed to get the version for "+prod+" - '"+version+"'."); installs[prod] = version; ver = split(version, sep:'.', keep:FALSE); for (i=0; i<max_index(ver); i++) ver[i] = int(ver[i]); fixed_version = '14.3.8'; fix = split(fixed_version, sep:'.', keep:FALSE); for (i=0; i<max_index(fix); i++) fix[i] = int(fix[i]); for (i=0; i<max_index(fix); i++) if ((ver[i] < fix[i])) { info += '\n Product : ' + prod + '\n Installed version : ' + version + '\n Fixed version : ' + fixed_version + '\n'; break; } else if (ver[i] > fix[i]) break; } # Report findings. if (info) { if (report_verbosity > 0) security_hole(port:0, extra:info); else security_hole(0); exit(0); } else { if (max_index(keys(installs)) == 0) exit(0, "Office for Mac 2011 is not installed."); else { msg = 'The host has '; foreach prod (sort(keys(installs))) msg += prod + ' ' + installs[prod] + ' and '; msg = substr(msg, 0, strlen(msg)-1-strlen(' and ')); msg += ' installed and thus is not affected.'; exit(0, msg); } }
Oval
accepted 2013-11-26T13:49:15.498-05:00 class vulnerability contributors name SecPod Team organization SecPod Technologies definition_extensions comment Microsoft Office 2011 Service Pack 1 for Mac is installed oval oval:org.mitre.oval:def:16823 comment Microsoft Office 2011 Service Pack 2 for Mac is installed oval oval:org.mitre.oval:def:16102 comment Microsoft Office 2011 Service Pack 3 for Mac is installed oval oval:org.mitre.oval:def:16926
description Microsoft Excel 2007 SP3, 2010 SP1 and SP2, 2013, and 2013 RT; Office 2007 SP3, 2010 SP1 and SP2, 2013, and 2013 RT; Office for Mac 2011; Excel Viewer; Office Compatibility Pack SP3; and Excel Services and Word Automation Services in SharePoint Server 2013 allow remote attackers to execute arbitrary code via a crafted Office document, aka "Microsoft Excel Memory Corruption Vulnerability." family macos id oval:org.mitre.oval:def:18901 status accepted submitted 2013-10-16T15:17:20.144+05:30 title Remote code execution vulnerability in Microsoft Office for Mac 2011 (CVE-2013-3889) - MS13-085 version 4 accepted 2014-08-18T04:02:06.785-04:00 class vulnerability contributors name SecPod Team organization SecPod Technologies name Maria Kedovskaya organization ALTX-SOFT name Maria Mikhno organization ALTX-SOFT name Maria Mikhno organization ALTX-SOFT name Evgeniy Pavlov organization ALTX-SOFT name Evgeniy Pavlov organization ALTX-SOFT
definition_extensions comment Microsoft Excel 2007 SP3 is installed oval oval:org.mitre.oval:def:15126 comment Microsoft Office 2007 SP3 is installed oval oval:org.mitre.oval:def:15704 comment Microsoft Excel Viewer 2007 SP3 is installed oval oval:org.mitre.oval:def:18681 comment Microsoft Office Compatibility Pack SP3 is installed oval oval:org.mitre.oval:def:15035 comment Microsoft Excel 2010 SP2 is installed oval oval:org.mitre.oval:def:17219 comment Microsoft Excel 2010 SP1 is installed oval oval:org.mitre.oval:def:15308 comment Microsoft Office 2010 SP2 is installed oval oval:org.mitre.oval:def:17121 comment Microsoft Office 2010 SP1 is installed oval oval:org.mitre.oval:def:15198 comment Microsoft Excel 2013 is installed oval oval:org.mitre.oval:def:15563 comment Microsoft Office 2013 is installed oval oval:org.mitre.oval:def:15381 comment Microsoft Office SharePoint Server 2007 SP3 is installed oval oval:org.mitre.oval:def:15537 comment Microsoft SharePoint Server 2010 Service Pack 1 is installed oval oval:org.mitre.oval:def:15614 comment Microsoft SharePoint Server 2010 Service Pack 2 is installed oval oval:org.mitre.oval:def:18921 comment Microsoft SharePoint Server 2013 is installed oval oval:org.mitre.oval:def:16325 comment Microsoft Office Web Apps 2010 Service Pack 1 is installed oval oval:org.mitre.oval:def:15860 comment Microsoft Office Web Apps 2010 Service Pack 2 is installed oval oval:org.mitre.oval:def:19186
description Microsoft Excel 2007 SP3, 2010 SP1 and SP2, 2013, and 2013 RT; Office 2007 SP3, 2010 SP1 and SP2, 2013, and 2013 RT; Office for Mac 2011; Excel Viewer; Office Compatibility Pack SP3; and Excel Services and Word Automation Services in SharePoint Server 2013 allow remote attackers to execute arbitrary code via a crafted Office document, aka "Microsoft Excel Memory Corruption Vulnerability." family windows id oval:org.mitre.oval:def:19132 status accepted submitted 2013-10-09T17:48:51 title Microsoft Excel Memory Corruption Vulnerability (CVE-2013-3889) - MS13-084, MS13-085 version 46
References
- http://www.us-cert.gov/ncas/alerts/TA13-288A
- https://docs.microsoft.com/en-us/security-updates/securitybulletins/2013/ms13-084
- https://docs.microsoft.com/en-us/security-updates/securitybulletins/2013/ms13-085
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A18901
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A19132