Vulnerabilities > CVE-2008-0116 - Improper Input Validation vulnerability in Microsoft products
Attack vector
UNKNOWN Attack complexity
UNKNOWN Privileges required
UNKNOWN Confidentiality impact
UNKNOWN Integrity impact
UNKNOWN Availability impact
UNKNOWN Summary
Microsoft Excel 2000 SP3 through 2003 SP2, Viewer 2003, Compatibility Pack, and Office 2004 and 2008 for Mac allows user-assisted remote attackers to execute arbitrary code via malformed tags in rich text, aka "Excel Rich Text Validation Vulnerability."
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 7 |
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.
- Server Side Include (SSI) Injection An attacker can use Server Side Include (SSI) Injection to send code to a web application that then gets executed by the web server. Doing so enables the attacker to achieve similar results to Cross Site Scripting, viz., arbitrary code execution and information disclosure, albeit on a more limited scale, since the SSI directives are nowhere near as powerful as a full-fledged scripting language. Nonetheless, the attacker can conveniently gain access to sensitive files, such as password files, and execute shell commands.
- Cross Zone Scripting An attacker is able to cause a victim to load content into their web-browser that bypasses security zone controls and gain access to increased privileges to execute scripting code or other web objects such as unsigned ActiveX controls or applets. This is a privilege elevation attack targeted at zone-based web-browser security. In a zone-based model, pages belong to one of a set of zones corresponding to the level of privilege assigned to that page. Pages in an untrusted zone would have a lesser level of access to the system and/or be restricted in the types of executable content it was allowed to invoke. In a cross-zone scripting attack, a page that should be assigned to a less privileged zone is granted the privileges of a more trusted zone. This can be accomplished by exploiting bugs in the browser, exploiting incorrect configuration in the zone controls, through a cross-site scripting attack that causes the attackers' content to be treated as coming from a more trusted page, or by leveraging some piece of system functionality that is accessible from both the trusted and less trusted zone. This attack differs from "Restful Privilege Escalation" in that the latter correlates to the inadequate securing of RESTful access methods (such as HTTP DELETE) on the server, while cross-zone scripting attacks the concept of security zones as implemented by a browser.
- Cross Site Scripting through Log Files An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
- Command Line Execution through SQL Injection An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.
Exploit-Db
description | Microsoft Office Excel Code Execution Exploit (MS08-014). CVE-2008-0081,CVE-2008-0111,CVE-2008-0112,CVE-2008-0114,CVE-2008-0115,CVE-2008-0116,CVE-2008-0117. ... |
id | EDB-ID:5287 |
last seen | 2016-01-31 |
modified | 2008-03-21 |
published | 2008-03-21 |
reporter | zha0 |
source | https://www.exploit-db.com/download/5287/ |
title | Microsoft Office Excel - Code Execution Exploit MS08-014 |
Nessus
NASL family MacOS X Local Security Checks NASL id MACOSX_MS_OFFICE_MAR2008.NASL description The remote Mac OS X host is running a version of Microsoft Office that is affected by several vulnerabilities. If an attacker can trick a user on the affected host into opening a specially crafted Excel or Office file, these issues could be leveraged to execute arbitrary code subject to the user last seen 2019-10-28 modified 2010-10-20 plugin id 50056 published 2010-10-20 reporter This script is Copyright (C) 2010-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/50056 title MS08-014 / MS08-016: Vulnerabilities in Microsoft Office Could Allow Remote Code Execution (949029 / 949030) (Mac OS X) code #TRUSTED 3b30e8be3fb05ace5fc9c68598992bbc174a1b88ada10b3b87ce5f8a5fb268059533ec61264fcc2b089e4a560e7c2ef15c821e39582f434a89e4993c3843a0c6b7663e8d9075eb1028c262f5e7f86f1cfcf49b4619bb470aede1af16c1de029c930a341be9599ebae14f5bba84104882481a353404333ff78eccfe38a691222aa33a0266d8323231ddc093ebf41c8e824c7e4507fb43a2d73c9603bf79ec6a660c7584209eec5787a1ca4df8c9423ec82ebb6fb91f7a38b4373970f14c9fb6f8d7523a5f38b7deb73398069ce5949bb1604e00030d0a94510868b8fbc98a38869e533b20b90e85b3b66b612ec4a6f449dbd8ba8064af32ecd8d64d7f5c52c7f40859dc5d90c02f4825b14e9fef244957d223d01d3948de7fbb85590ffd30f59e2a890d624340a03f32a7d2a847d28bd4bf9f441bdc650f4fa284348c638ccc04b3646e6dd1421afd1c0efd88d02ef2c015992d6286a6ab8d3dded25dbf01fea96c1106ede3efa2418a55e7b23393f50f29010ceca94a8fc4d834e1c1131425f4f15ffa787d863062c6adeba32a2a36716e0bcf5c31b291e813fb0c4253f89cc88a8d3b40d94fc02c503e212f8beae77e5ca313df74c21e6ace25219e0bc2d1adb2328b7f3d64ce29c7b6562c0a262cc33e73a7d0e76a46d57095b62a0e63f3dfc8cb35f9dbbe531018bb4a5828776bc1ac38932c2afc3da6f1fed8b7240650c2 # # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(50056); script_version("1.21"); script_set_attribute(attribute:"plugin_modification_date", value:"2018/07/14"); script_cve_id( "CVE-2008-0081", "CVE-2008-0111", "CVE-2008-0112", "CVE-2008-0114", "CVE-2008-0115", "CVE-2008-0116", "CVE-2008-0117", "CVE-2008-0118" ); script_bugtraq_id(27305, 28094, 28095, 28146, 28166, 28167, 28168, 28170); script_xref(name:"MSFT", value:"MS08-014"); script_xref(name:"MSFT", value:"MS08-016"); script_xref(name:"MSKB", value:"949029"); script_xref(name:"MSKB", value:"949030"); script_xref(name:"MSKB", value:"949357"); script_name(english:"MS08-014 / MS08-016: Vulnerabilities in Microsoft Office Could Allow Remote Code Execution (949029 / 949030) (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 multiple remote code execution vulnerabilities."); script_set_attribute(attribute:"description", value: "The remote Mac OS X host is running a version of Microsoft Office that is affected by several vulnerabilities. If an attacker can trick a user on the affected host into opening a specially crafted Excel or Office file, these issues could be leveraged 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/ms08-014"); script_set_attribute(attribute:"see_also", value:"http://technet.microsoft.com/en-us/security/bulletin/ms08-016"); script_set_attribute(attribute:"solution", value: "Microsoft has released a set of patches for Office 2004 for Mac and Office 2008 for Mac."); 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:H/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:"exploited_by_malware", value:"true"); script_set_attribute(attribute:"exploit_framework_core", value:"true"); script_cwe_id(94); script_set_attribute(attribute:"vuln_publication_date", value:"2008/01/15"); script_set_attribute(attribute:"patch_publication_date", value:"2008/03/11"); script_set_attribute(attribute:"plugin_publication_date", value:"2010/10/20"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office:2004::mac"); script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office:2008::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) 2010-2018 Tenable Network Security, Inc."); script_dependencies("ssh_get_info.nasl"); script_require_keys("Host/MacOSX/packages"); exit(0); } 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(); function exec(cmd) { local_var buf, ret; if (islocalhost()) buf = pread(cmd:"/bin/bash", argv:make_list("bash", "-c", cmd)); else { ret = ssh_open_connection(); if (!ret) exit(1, "ssh_open_connection() failed."); buf = ssh_cmd(cmd:cmd); ssh_close_connection(); } return buf; } packages = get_kb_item("Host/MacOSX/packages"); if (!packages) exit(0, "The 'Host/MacOSX/packages' KB item is missing."); uname = get_kb_item("Host/uname"); if (!uname) exit(1, "The 'Host/uname' KB item is missing."); if (!egrep(pattern:"Darwin.*", string:uname)) exit(1, "The host does not appear to be using the Darwin sub-system."); # Gather version info. info = ''; installs = make_array(); prod = 'Office 2008 for Mac'; plist = "/Applications/Microsoft Office 2008/Office/MicrosoftComponentPlugin.framework/Versions/12/Resources/Info.plist"; cmd = 'cat \'' + plist + '\' | ' + 'grep -A 1 CFBundleShortVersionString | ' + 'tail -n 1 | ' + 'sed \'s/.*string>\\(.*\\)<\\/string>.*/\\1/g\''; version = exec(cmd:cmd); if (version && version =~ "^[0-9]+\.") { version = chomp(version); if (version !~ "^12\.") 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 = '12.0.1'; 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; } prod = 'Office 2004 for Mac'; cmd = GetCarbonVersionCmd(file:"Microsoft Component Plugin", path:"/Applications/Microsoft Office 2004/Office"); version = exec(cmd:cmd); if (version && version =~ "^[0-9]+\.") { version = chomp(version); if (version !~ "^11\.") 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 = '11.4.1'; 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) { gs_opt = get_kb_item("global_settings/report_verbosity"); if (gs_opt && gs_opt != 'Quiet') security_hole(port:0, extra:info); else security_hole(0); exit(0); } else { if (max_index(keys(installs)) == 0) exit(0, "Office for Mac 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); } }
NASL family Windows : Microsoft Bulletins NASL id SMB_NT_MS08-014.NASL description The remote host is running a version of Microsoft Excel that is subject to various flaws that could allow arbitrary code to be run. An attacker may use this to execute arbitrary code on this host. To succeed, the attacker would have to send a rogue file to a user of the remote computer and have it open it with Microsoft Excel. last seen 2020-06-01 modified 2020-06-02 plugin id 31413 published 2008-03-11 reporter This script is Copyright (C) 2008-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/31413 title MS08-014: Vulnerabilities in Microsoft Excel Could Allow Remote Code Execution (949029) code # # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(31413); script_version("1.41"); script_cvs_date("Date: 2018/11/15 20:50:30"); script_cve_id( "CVE-2008-0111", "CVE-2008-0112", "CVE-2008-0114", "CVE-2008-0115", "CVE-2008-0116", "CVE-2008-0117", "CVE-2008-0081" ); script_bugtraq_id(27305, 28094, 28095, 28166, 28167, 28168, 28170); script_xref(name:"MSFT", value:"MS08-014"); script_xref(name:"MSKB", value:"943889"); script_xref(name:"MSKB", value:"943985"); script_xref(name:"MSKB", value:"946974"); script_xref(name:"MSKB", value:"946976"); script_xref(name:"MSKB", value:"946979"); script_name(english:"MS08-014: Vulnerabilities in Microsoft Excel Could Allow Remote Code Execution (949029)"); script_summary(english:"Determines the version of Excel.exe"); script_set_attribute(attribute:"synopsis", value: "Arbitrary code can be executed on the remote host through Microsoft Excel."); script_set_attribute(attribute:"description", value: "The remote host is running a version of Microsoft Excel that is subject to various flaws that could allow arbitrary code to be run. An attacker may use this to execute arbitrary code on this host. To succeed, the attacker would have to send a rogue file to a user of the remote computer and have it open it with Microsoft Excel."); script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2008/ms08-014"); script_set_attribute(attribute:"solution", value: "Microsoft has released a set of patches for Excel 2000, XP, 2003 and 2007."); 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:H/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:"exploit_framework_core", value:"true"); script_set_attribute(attribute:"exploited_by_malware", value:"true"); script_cwe_id(94); script_set_attribute(attribute:"vuln_publication_date", value:"2008/01/15"); script_set_attribute(attribute:"patch_publication_date", value:"2008/03/11"); script_set_attribute(attribute:"plugin_publication_date", value:"2008/03/11"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office"); script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:excel"); script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:excel_viewer"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2008-2018 Tenable Network Security, Inc."); script_family(english:"Windows : Microsoft Bulletins"); script_dependencies("smb_nt_ms02-031.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("smb_hotfixes_fcheck.inc"); include("smb_hotfixes.inc"); include("misc_func.inc"); include("audit.inc"); get_kb_item_or_exit("SMB/MS_Bulletin_Checks/Possible"); bulletin = 'MS08-014'; kbs = make_list("943889", "943985", "946974", "946976", "946979"); if (get_kb_item("Host/patch_management_checks")) hotfix_check_3rd_party(bulletin:bulletin, kbs:kbs, severity:SECURITY_HOLE); port = get_kb_item("SMB/transport"); # # Excel # vuln = 0; list = get_kb_list("SMB/Office/Excel/*/ProductPath"); if (!isnull(list)) { foreach item (keys(list)) { v = item - 'SMB/Office/Excel/' - '/ProductPath'; if(ereg(pattern:"^9\..*", string:v)) { # Excel 2000 - fixed in 9.0.0.8968 office_sp = get_kb_item("SMB/Office/2000/SP"); if (!isnull(office_sp) && office_sp == 3) { sub = ereg_replace(pattern:"^9\.00?\.00?\.([0-9]*)$", string:v, replace:"\1"); if(sub != v && int(sub) < 8968 ) { vuln++; kb = '946979'; hotfix_add_report(bulletin:bulletin, kb:kb); } } } else if(ereg(pattern:"^10\..*", string:v)) { # Excel XP - fixed in 10.0.6841.0 office_sp = get_kb_item("SMB/Office/XP/SP"); if (!isnull(office_sp) && office_sp == 3) { middle = ereg_replace(pattern:"^10\.0\.([0-9]*)\.[0-9]*$", string:v, replace:"\1"); if(middle != v && int(middle) < 6841 ) { vuln++; kb = '946976'; hotfix_add_report(bulletin:bulletin, kb:kb); } } } else if(ereg(pattern:"^11\..*", string:v)) { # Excel 2003 - fixed in 11.0.8169.0 (SP3) office_sp = get_kb_item("SMB/Office/2003/SP"); if (!isnull(office_sp) && office_sp == 2) { middle = ereg_replace(pattern:"^11\.0\.([0-9]*)\.[0-9]*$", string:v, replace:"\1"); if(middle != v && int(middle) < 8169) { vuln++; kb = '943985'; hotfix_add_report(bulletin:bulletin, kb:kb); } } } else if(ereg(pattern:"^12\..*", string:v)) { # Excel 2007 - fixed in 12.0.6300.5000 office_sp = get_kb_item("SMB/Office/2007/SP"); if (!isnull(office_sp) && office_sp == 0) { middle = ereg_replace(pattern:"^12\.0\.([0-9]*)\.[0-9]*$", string:v, replace:"\1"); low = ereg_replace(pattern:"^12\.0\.[0-9]*\.([0-9]*)$", string:v, replace:"\1"); # 12.0.6214.100 (SP1) is not affected if(middle != v && ( int(middle) < 6214 || int(middle) == 6124 && int(low) < 1000) ) { vuln++; kb = '946974'; hotfix_add_report(bulletin:bulletin, kb:kb); } } } } } # # Excel Viever # list = get_kb_list("SMB/Office/ExcelViewer/*/ProductPath"); if (!isnull(list)) { foreach item (keys(list)) { v = item - 'SMB/Office/ExcelViewer/' - '/ProductPath'; if (v && ereg(pattern:"^11\..*", string:v)) { # Excel Viwever 2003 - fixed in 11.0.8169.0 (SP3) middle = ereg_replace(pattern:"^11\.0\.([0-9]*)\.[0-9]*$", string:v, replace:"\1"); if(middle != v && int(middle) < 8169) { vuln++; kb = '943889'; hotfix_add_report(bulletin:bulletin, kb:kb); } } } } if (vuln) { set_kb_item(name:"SMB/Missing/"+bulletin, value:TRUE); hotfix_security_hole(); exit(0); } audit(AUDIT_HOST_NOT, 'affected');
Oval
accepted | 2014-06-30T04:11:01.229-04:00 | ||||||||||||||||||||||||||||
class | vulnerability | ||||||||||||||||||||||||||||
contributors |
| ||||||||||||||||||||||||||||
definition_extensions |
| ||||||||||||||||||||||||||||
description | Microsoft Excel 2000 SP3 through 2003 SP2, Viewer 2003, Compatibility Pack, and Office 2004 and 2008 for Mac allows user-assisted remote attackers to execute arbitrary code via malformed tags in rich text, aka "Excel Rich Text Validation Vulnerability." | ||||||||||||||||||||||||||||
family | windows | ||||||||||||||||||||||||||||
id | oval:org.mitre.oval:def:5212 | ||||||||||||||||||||||||||||
status | accepted | ||||||||||||||||||||||||||||
submitted | 2008-03-11T11:40:00 | ||||||||||||||||||||||||||||
title | Excel Rich Text Validation Vulnerability | ||||||||||||||||||||||||||||
version | 27 |
Seebug
bulletinFamily | exploit |
description | BUGTRAQ ID: 28168 CVE(CAN) ID: CVE-2008-0116 Excel是微软Office办公软件家族中的电子表格工具。 Excel在解析BIFF文件格式时存在堆溢出漏洞,成功利用这个漏洞的攻击者可能以当前登录用户的权限执行任意指令。 如果处理了畸形的标签,就可能由用户控制堆分配,在将用户提供的数据拷贝到堆缓冲区时就可以触发这个溢出,覆盖任意内存。 Microsoft Excel Viewer 2003 Microsoft Excel 2003 SP2 Microsoft Excel 2002 SP3 Microsoft Excel 2000 SP3 Microsoft Office 2008 for Mac Microsoft Office 2004 for Mac 临时解决方法: * 在打开未知或不可信任来源的文件时,使用Microsoft Office隔离转换环境(MOICE)。 * 使用Microsoft Office文件阻断策略以防止打开未知或不可信任来源的Office 2003及更早版本的文档。可使用以下注册表脚本为Office 2003设置文件阻断策略: Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\Security\FileOpenBlock] "BinaryFiles"=dword:00000001 * 不要打开不可信任来源或可信任来源意外接收到的Microsoft Office文件。 厂商补丁: Microsoft --------- Microsoft已经为此发布了一个安全公告(MS08-014)以及相应补丁: MS08-014:Vulnerabilities in Microsoft Excel Could Allow Remote Code Execution (949029) 链接:<a href=http://www.microsoft.com/technet/security/Bulletin/MS08-014.mspx?pf=true target=_blank>http://www.microsoft.com/technet/security/Bulletin/MS08-014.mspx?pf=true</a> |
id | SSV:3026 |
last seen | 2017-11-19 |
modified | 2008-03-14 |
published | 2008-03-14 |
reporter | Root |
title | Microsoft Excel富文本值堆溢出漏洞(MS08-014) |
References
- http://www.us-cert.gov/cas/techalerts/TA08-071A.html
- http://www.securityfocus.com/bid/28168
- http://www.securitytracker.com/id?1019586
- http://dvlabs.tippingpoint.com/advisory/TPTI-08-03
- http://marc.info/?l=bugtraq&m=120585858807305&w=2
- http://www.vupen.com/english/advisories/2008/0846/references
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A5212
- https://docs.microsoft.com/en-us/security-updates/securitybulletins/2008/ms08-014
- http://www.securityfocus.com/archive/1/489430/100/0/threaded