Vulnerabilities > CVE-2008-1091 - Code Injection vulnerability in Microsoft products
Attack vector
UNKNOWN Attack complexity
UNKNOWN Privileges required
UNKNOWN Confidentiality impact
UNKNOWN Integrity impact
UNKNOWN Availability impact
UNKNOWN Summary
Unspecified vulnerability in Microsoft Word in Office 2000 and XP SP3, 2003 SP2 and SP3, and 2007 Office System SP1 and earlier allows remote attackers to execute arbitrary code via a Rich Text Format (.rtf) file with a malformed string that triggers a "memory calculation error" and a heap-based buffer overflow, aka "Object Parsing Vulnerability."
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 12 |
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Leverage Executable Code in Non-Executable Files An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
- Manipulating User-Controlled Variables This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An attacker can override environment variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the attacker can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.
Nessus
NASL family Windows : Microsoft Bulletins NASL id SMB_NT_MS08-026.NASL description The remote host is running a version of Microsoft Word that is subject to a flaw 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. Then a bug in the font parsing handler would result in code execution. last seen 2020-06-01 modified 2020-06-02 plugin id 32310 published 2008-05-13 reporter This script is Copyright (C) 2008-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/32310 title MS08-026: Vulnerabilities in Microsoft Word Could Allow Remote Code Execution (951207) code # # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(32310); script_version("1.35"); script_cvs_date("Date: 2018/11/15 20:50:30"); script_cve_id("CVE-2008-1091","CVE-2008-1434"); script_bugtraq_id(29104, 29105); script_xref(name:"CERT", value:"543907"); script_xref(name:"MSFT", value:"MS08-026"); script_xref(name:"MSKB", value:"950113"); script_xref(name:"MSKB", value:"950241"); script_xref(name:"MSKB", value:"950243"); script_xref(name:"MSKB", value:"950250"); script_xref(name:"MSKB", value:"950625"); script_name(english:"MS08-026: Vulnerabilities in Microsoft Word Could Allow Remote Code Execution (951207)"); script_summary(english:"Determines the version of WinWord.exe"); script_set_attribute(attribute:"synopsis", value: "Arbitrary code can be executed on the remote host through Microsoft Word."); script_set_attribute(attribute:"description", value: "The remote host is running a version of Microsoft Word that is subject to a flaw 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. Then a bug in the font parsing handler would result in code execution."); script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2008/ms08-026"); script_set_attribute(attribute:"solution", value: "Microsoft has released a set of patches for Word 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: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_cwe_id(94, 399); script_set_attribute(attribute:"vuln_publication_date", value:"2008/05/13"); script_set_attribute(attribute:"patch_publication_date", value:"2008/05/13"); script_set_attribute(attribute:"plugin_publication_date", value:"2008/05/13"); 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:word"); script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:word_viewer"); script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office_compatibility_pack"); script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:outlook"); 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-026'; kbs = make_list("950113", "950241", "950243", "950250", "950625"); 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"); # # Word # vuln = 0; list = get_kb_list("SMB/Office/Word/*/ProductPath"); if (!isnull(list)) { foreach item (keys(list)) { v = item - 'SMB/Office/Word/' - '/ProductPath'; if(ereg(pattern:"^9\..*", string:v)) { # Word 2000 - fixed in 9.0.0.8970 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) < 8970 ) { vuln++; kb = '950250'; hotfix_add_report(bulletin:bulletin, kb:kb); } } } else if(ereg(pattern:"^10\..*", string:v)) { # Word XP - fixed in 10.0.6843.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) < 6843) { vuln++; kb = '950243'; hotfix_add_report(bulletin:bulletin, kb:kb); } } } else if(ereg(pattern:"^11\..*", string:v)) { # Word 2003 - fixed in 11.0.8215.0 (SP3) 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) < 8215) { vuln++; kb = '950241'; hotfix_add_report(bulletin:bulletin, kb:kb); } } } else if(ereg(pattern:"^12\..*", string:v)) { # Word 2007 - fixed in 12.0.6308.500 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"); if(middle != v && int(middle) < 6308) { vuln++; kb = '950113'; hotfix_add_report(bulletin:bulletin, kb:kb); } } } } } # # Word Viewer # list = get_kb_list("SMB/Office/WordViewer/*/ProductPath"); if (!isnull(list)) { foreach item (keys(list)) { v = item - 'SMB/Office/WordViewer/' - '/ProductPath'; # Word Viewer 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 = '950625'; hotfix_add_report(bulletin:bulletin, kb:kb); } } } if (vuln) { set_kb_item(name:"SMB/Missing/"+bulletin, value:TRUE); hotfix_security_hole(); exit(0); } else audit(AUDIT_HOST_NOT, 'affected');
NASL family MacOS X Local Security Checks NASL id MACOSX_MS08-026.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 Word 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 50057 published 2010-10-20 reporter This script is Copyright (C) 2010-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/50057 title MS08-026: Vulnerabilities in Microsoft Word Could Allow Remote Code Execution (951207) (Mac OS X) code #TRUSTED 61ba59c4a751a3218c60c92e1cb09d2e25cc025ccf9061ef932f392be428138012afc41d98040f42a3c43c29e19dfc39c29f49ceb33474fd3a40904c2427efd909f202b1d97d77a52b4e5f900c55fe14776a2bb682ad59066923693d6347244d0df7d96a851ac6b803801664420f75c39a90b7c9c320589a812ce4f867813704b196b04cc1dd1e7dd011a06c26273590273a5df31420ccf5a8941da10eac6897ec9aff5d5000bfd86d1e41b4967bb3e5a2246f98811c6970a2bb6e557f0d42ba1b4a06066bd19d2fe71bbf54c72dd967c4c98d6740c5ecd5021da61eb65ed1c172893e7bae049d987087254ff5c837508664d54b95cb17185614c06749231c04c5aefd086a08adf3e616d0d1f444599c4c926d089e9a7ec4b8627b37e6cc6e3024883c6a8e4e2816450a997dcd2b585201f77519f07f79593eb7648056b2223115897a65f767deca679ca430552bbd7492d614421653d44cb51a2841dc40fb4ebf74672ea571054cfb840e91a5bca92c70e1818b007bfeb03f1466f921b93cfa5660031204a52c899eb2a157c1f110fba000f841bd24b64a5e3de8f4d853b429c9a8a56612dfcc7068ef2fa4dfccf64307112dd3c4dbc2d4b732fff57b5bde7bb539f14dd3ebd4270c834004f3db9b362adeca5a54ab4d899f3a5cb0477e085579ed857873ee32eff4963e15545327e8e3cb7b2939afa93314ea47541c5ce6e9 # # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(50057); script_version("1.17"); script_set_attribute(attribute:"plugin_modification_date", value:"2018/07/14"); script_cve_id("CVE-2008-1091", "CVE-2008-1434"); script_bugtraq_id(29104, 29105); script_xref(name:"MSFT", value:"MS08-026"); script_xref(name:"MSKB", value:"952331"); script_xref(name:"MSKB", value:"952332"); script_xref(name:"MSKB", value:"951207"); script_name(english:"MS08-026: Vulnerabilities in Microsoft Word Could Allow Remote Code Execution (951207) (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 Word 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-026"); 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: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_cwe_id(399); script_set_attribute(attribute:"vuln_publication_date", value:"2008/05/13"); script_set_attribute(attribute:"patch_publication_date", value:"2008/05/13"); 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.0'; 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.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; } # 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); } }
Oval
accepted | 2014-06-30T04:11:01.815-04:00 | ||||||||||||||||||||||||||||||||
class | vulnerability | ||||||||||||||||||||||||||||||||
contributors |
| ||||||||||||||||||||||||||||||||
definition_extensions |
| ||||||||||||||||||||||||||||||||
description | Unspecified vulnerability in Microsoft Word in Office 2000 and XP SP3, 2003 SP2 and SP3, and 2007 Office System SP1 and earlier allows remote attackers to execute arbitrary code via a Rich Text Format (.rtf) file with a malformed string that triggers a "memory calculation error" and a heap-based buffer overflow, aka "Object Parsing Vulnerability." | ||||||||||||||||||||||||||||||||
family | windows | ||||||||||||||||||||||||||||||||
id | oval:org.mitre.oval:def:5494 | ||||||||||||||||||||||||||||||||
status | accepted | ||||||||||||||||||||||||||||||||
submitted | 2008-05-13T13:39:00 | ||||||||||||||||||||||||||||||||
title | Object Parsing Vulnerability | ||||||||||||||||||||||||||||||||
version | 29 |
Seebug
bulletinFamily | exploit |
description | BUGTRAQ ID: 29104 CVE(CAN) ID: CVE-2008-1091 Microsoft Word是Office套件中的文字处理软件。 Word处理特制RTF格式(.rtf)文件的方式中存在堆溢出漏洞,如果用户在Word中打开带有畸形字符串的特制.rtf文件,或在富文本电子邮件中预览带有畸形字符串的特制.rtf文件,就会触发这个溢出,导致执行任意指令。 Microsoft Office 2008 for Mac Microsoft Office 2004 for Mac Microsoft Outlook 2007 SP1 Microsoft Outlook 2007 Microsoft Word Viewer 2003 SP1 Microsoft Word Viewer 2003 Microsoft Word 2003 SP3 Microsoft Word 2003 SP2 Microsoft Word 2002 SP3 Microsoft Word 2000 SP3 临时解决方法: * 使用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 对于Office 2007 Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\12.0\Word\Security\FileOpenBlock] "HTMLFiles"=dword:00000001 * 不要打开或保存从不受信任来源或从受信任来源意外收到的Microsoft Office文件。 厂商补丁: Microsoft --------- Microsoft已经为此发布了一个安全公告(MS08-026)以及相应补丁: MS08-026:Vulnerabilities in Microsoft Word Could Allow Remote Code Execution (951207) 链接:<a href=http://www.microsoft.com/technet/security/bulletin/ms08-026.mspx?pf=true target=_blank>http://www.microsoft.com/technet/security/bulletin/ms08-026.mspx?pf=true</a> |
id | SSV:3294 |
last seen | 2017-11-19 |
modified | 2008-05-17 |
published | 2008-05-17 |
reporter | Root |
title | Microsoft Word RTF畸形字符串处理堆溢出漏洞(MS08-026) |
References
- http://www.kb.cert.org/vuls/id/543907
- http://www.zerodayinitiative.com/advisories/ZDI-08-023
- http://www.us-cert.gov/cas/techalerts/TA08-134A.html
- http://www.securityfocus.com/bid/29104
- http://www.securitytracker.com/id?1020013
- http://secunia.com/advisories/30143
- http://marc.info/?l=bugtraq&m=121129490723574&w=2
- http://www.vupen.com/english/advisories/2008/1504/references
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A5494
- http://www.securityfocus.com/archive/1/492020/100/0/threaded
- https://docs.microsoft.com/en-us/security-updates/securitybulletins/2008/ms08-026