Vulnerabilities > CVE-2008-3004 - Improper Input Validation vulnerability in Microsoft Office and Office Excel Viewer
Attack vector
UNKNOWN Attack complexity
UNKNOWN Privileges required
UNKNOWN Confidentiality impact
UNKNOWN Integrity impact
UNKNOWN Availability impact
UNKNOWN Summary
Microsoft Office Excel 2000 SP3, 2002 SP3, and 2003 SP2 and SP3; Office Excel Viewer 2003; and Office 2004 and 2008 for Mac do not properly validate index values for AxesSet records when loading Excel files, which allows remote attackers to execute arbitrary code via a crafted Excel file, aka the "Excel Indexing 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.
Nessus
NASL family MacOS X Local Security Checks NASL id MACOSX_MS_OFFICE_AUG2008.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 PowerPoint file, these issues could be leveraged to execute arbitrary code subject to the user last seen 2020-03-18 modified 2010-10-20 plugin id 50058 published 2010-10-20 reporter This script is Copyright (C) 2010-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/50058 title MS08-043 / MS08-051: Vulnerabilities in Microsoft Could Allow Remote Code Execution (954066 / 949785) (Mac OS X) code #TRUSTED 4e2b48695f9a51bbff8dc924e9535b83695f9c951de474ffbeb0e78a50a6c4866b5acf9cf387235efd19b20682505033bf860c2bc24e0c94c7fef763135c8f2d72852f8925faf33add695049d4119def762ea1c27dda67964f546ff3499a4c5fc5569a91c7dec6ffbc77ebbc14bcb02130f0172d96773458fed56027770a87cfd8b5c8f2bb4ac6d654c90c24fdf6997fa026aeab72c3abd561c1bdce3a69ef141bc91874730aadac15babd1aca6e6da4e38ce6487b1452f1a4f9f5749fe3e845a8ae0257a7493acc90be9dcc41948e29b54fd809c6f7da6e820f52760402d3c533ab3824ba9c8641b1aed0962fa60e2e90ac68ad0165ed57b9218c4d2f9a3660d7ab2feaad182d596fe3f25729ee4d360b9c33d9c4c77e572520c8f3995337ea87ae868b1e1d32e9944872071998e76c0f92e52dbaa4744eff0058a61eb7a61e2f56afd90e502ae233ac61543b2fc10597a15f6310be8b73e4aebf7cb48b8375c56d52c664c254abaaac4b755ecfa836fe7772a48113b8701d68f84d4f514ec2db03bf2481390e5fbfbd06aa54b80853fd76b123cd843d40bb695abdbbc80419b09289003db8e951dee7b65f45151fed516cf208017147dc1f01cf0d85d7bb81de8b45f16881513e2eebec466a4429b0bb1d342abc09279a5b226a27c08b904eef7e7458cb47bbabf59a373a56b34d72bfe62fdf9df1228243215f20fdfcb458 # # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(50058); script_version("1.18"); script_set_attribute(attribute:"plugin_modification_date", value:"2018/07/14"); script_cve_id( "CVE-2008-1455", "CVE-2008-3003", "CVE-2008-3004", "CVE-2008-3005", "CVE-2008-3006" ); script_bugtraq_id(30579, 30638, 30639, 30640, 30641); script_xref(name:"MSFT", value:"MS08-043"); script_xref(name:"MSFT", value:"MS08-051"); script_xref(name:"MSKB", value:"949785"); script_xref(name:"MSKB", value:"954066"); script_xref(name:"MSKB", value:"956343"); script_xref(name:"MSKB", value:"956344"); script_name(english:"MS08-043 / MS08-051: Vulnerabilities in Microsoft Could Allow Remote Code Execution (954066 / 949785) (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 PowerPoint 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-043"); script_set_attribute(attribute:"see_also", value:"http://technet.microsoft.com/en-us/security/bulletin/ms08-051"); 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:H/Au:N/C:C/I:C/A:C"); script_set_cvss_temporal_vector("CVSS2#E:F/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_cwe_id(399); script_set_attribute(attribute:"vuln_publication_date", value:"2008/08/12"); script_set_attribute(attribute:"patch_publication_date", value:"2008/08/12"); 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", "Host/uname"); 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(1, "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.1.2'; 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.5.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-043.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 33872 published 2008-08-13 reporter This script is Copyright (C) 2008-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/33872 title MS08-043: Vulnerabilities in Microsoft Excel Could Allow Remote Code Execution (954066) code # # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(33872); script_version("1.33"); script_cvs_date("Date: 2018/11/15 20:50:30"); script_cve_id( "CVE-2008-3003", "CVE-2008-3004", "CVE-2008-3005", "CVE-2008-3006" ); script_bugtraq_id(30638, 30639, 30640, 30641); script_xref(name:"MSFT", value:"MS08-043"); script_xref(name:"MSKB", value:"951546"); script_xref(name:"MSKB", value:"951548"); script_xref(name:"MSKB", value:"951551"); script_xref(name:"MSKB", value:"951582"); script_xref(name:"MSKB", value:"951589"); script_xref(name:"MSKB", value:"955472"); script_name(english:"MS08-043: Vulnerabilities in Microsoft Excel Could Allow Remote Code Execution (954066)"); 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-043"); 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:F/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_cwe_id(20, 399); script_set_attribute(attribute:"vuln_publication_date", value:"2008/08/12"); script_set_attribute(attribute:"patch_publication_date", value:"2008/08/12"); script_set_attribute(attribute:"plugin_publication_date", value:"2008/08/13"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office"); 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-043'; kbs = make_list("951546", "951548", "951551", "951582", "951589", "955472"); 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)) { office_sp = get_kb_item("SMB/Office/2000/SP"); if (!isnull(office_sp) && office_sp == 3) { # Excel 2000 - fixed in 9.0.0.8971 sub = ereg_replace(pattern:"^9\.00?\.00?\.([0-9]*)$", string:v, replace:"\1"); if(sub != v && int(sub) < 8971 ) { vuln++; hotfix_add_report(bulletin:bulletin, kb:'951582'); } } } else if(ereg(pattern:"^10\..*", string:v)) { # Excel XP - fixed in 10.0.6845.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) < 6845 ) { vuln++; hotfix_add_report(bulletin:bulletin, kb:'951551'); } } } else if(ereg(pattern:"^11\..*", string:v)) { # Excel 2003 - fixed in 11.0.8220.0 office_sp = get_kb_item("SMB/Office/2003/SP"); if (!isnull(office_sp) && (office_sp == 2 || office_sp == 3)) { middle = ereg_replace(pattern:"^11\.0\.([0-9]*)\.[0-9]*$", string:v, replace:"\1"); if(middle != v && int(middle) < 8220 ) { vuln++; hotfix_add_report(bulletin:bulletin, kb:'951548'); } } } else if(ereg(pattern:"^12\..*", string:v)) { # Excel 2007 - fixed in 12.0.6323.5000 office_sp = get_kb_item("SMB/Office/2007/SP"); if (!isnull(office_sp) && (office_sp == 0 || office_sp == 1)) { 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"); if(middle != v && ( int(middle) < 6323 ) ) { vuln++; hotfix_add_report(bulletin:bulletin, kb:'951546'); } } } } } # # 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.8220.0 middle = ereg_replace(pattern:"^11\.0\.([0-9]*)\.[0-9]*$", string:v, replace:"\1"); if(middle != v && int(middle) < 8220 ) { vuln++; hotfix_add_report(bulletin:bulletin, kb:'951589'); } } else if (v && ereg(pattern:"^12\..*", string:v)) { # Excel Viwever 2003 - fixed in 12.0.6324.5000 middle = ereg_replace(pattern:"^12\.0\.([0-9]*)\.[0-9]*$", string:v, replace:"\1"); if(middle != v && int(middle) < 6324) { vuln++; hotfix_add_report(bulletin:bulletin, kb:'955472'); } } } } if (vuln) { set_kb_item(name:"SMB/Missing/"+bulletin, value:TRUE); hotfix_security_hole(); exit(0); } else audit(AUDIT_HOST_NOT, 'affected');
Oval
accepted | 2014-06-30T04:11:09.079-04:00 | ||||||||||||||||||||||||
class | vulnerability | ||||||||||||||||||||||||
contributors |
| ||||||||||||||||||||||||
definition_extensions |
| ||||||||||||||||||||||||
description | Microsoft Office Excel 2000 SP3, 2002 SP3, and 2003 SP2 and SP3; Office Excel Viewer 2003; and Office 2004 and 2008 for Mac do not properly validate index values for AxesSet records when loading Excel files, which allows remote attackers to execute arbitrary code via a crafted Excel file, aka the "Excel Indexing Validation Vulnerability." | ||||||||||||||||||||||||
family | windows | ||||||||||||||||||||||||
id | oval:org.mitre.oval:def:5885 | ||||||||||||||||||||||||
status | accepted | ||||||||||||||||||||||||
submitted | 2008-08-13T09:28:00 | ||||||||||||||||||||||||
title | Excel Indexing Validation Vulnerability | ||||||||||||||||||||||||
version | 18 |
Seebug
bulletinFamily | exploit |
description | BUGTRAQ ID: 30638 CVE(CAN) ID: CVE-2008-3004 Excel是Microsoft Office办公软件套件中的电子表格工具。 Excel在将Excel文件加载到内存时没有正确地验证电子表格内嵌图表中的AxesSet记录,如果XLS文件中包含有越界的数组值的话,则用户受骗打开了该文件的话就可能触发内存破坏,导致执行任意指令。 Microsoft Excel Viewer 2003 Microsoft Excel 2003 SP3 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设置文件阻断策略: Office 2003 Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Excel\Security\FileOpenBlock] "BinaryFiles"=dword:00000001 2007 Office system Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Excel\Security\FileOpenBlock] "BinaryFiles"=dword:00000001 * 不要打开或保存从不受信任来源或从受信任来源意外收到的Microsoft Office文件。 厂商补丁: Microsoft --------- Microsoft已经为此发布了一个安全公告(MS08-043)以及相应补丁: MS08-043:Vulnerabilities in Microsoft Excel Could Allow Remote Code Execution (954066) 链接:<a href=http://www.microsoft.com/technet/security/Bulletin/MS08-043.mspx?pf=true target=_blank>http://www.microsoft.com/technet/security/Bulletin/MS08-043.mspx?pf=true</a> |
id | SSV:3868 |
last seen | 2017-11-19 |
modified | 2008-08-19 |
published | 2008-08-19 |
reporter | Root |
title | Microsoft Excel索引验证远程代码执行漏洞(MS08-043) |
References
- http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=740
- http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=740
- http://marc.info/?l=bugtraq&m=121915960406986&w=2
- http://marc.info/?l=bugtraq&m=121915960406986&w=2
- http://marc.info/?l=bugtraq&m=121915960406986&w=2
- http://marc.info/?l=bugtraq&m=121915960406986&w=2
- http://secunia.com/advisories/31454
- http://secunia.com/advisories/31454
- http://www.securityfocus.com/bid/30638
- http://www.securityfocus.com/bid/30638
- http://www.securitytracker.com/id?1020670
- http://www.securitytracker.com/id?1020670
- http://www.us-cert.gov/cas/techalerts/TA08-225A.html
- http://www.us-cert.gov/cas/techalerts/TA08-225A.html
- http://www.vupen.com/english/advisories/2008/2347
- http://www.vupen.com/english/advisories/2008/2347
- https://docs.microsoft.com/en-us/security-updates/securitybulletins/2008/ms08-043
- https://docs.microsoft.com/en-us/security-updates/securitybulletins/2008/ms08-043
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A5885
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A5885