############################################################################## # # OpenOffice File Handling Multiple Heap BOF Vulnerabilities (Linux) # # Copyright: SecPod # # Date Written: 2008/11/12 # # Revision: 1.0 # # Log: ssharath # Issue #0469 # ------------------------------------------------------------------------ # This program was written by SecPod and is licensed under the GNU GPL # license. Please refer to the below link for details, # http://www.gnu.org/licenses/gpl.html # This header contains information regarding licensing terms under the GPL, # and information regarding obtaining source code from the Author. # Consequently, pursuant to section 3(c) of the GPL, you must accompany the # information found in this header with any distribution you make of this # Program. # ------------------------------------------------------------------------ ############################################################################## if(description) { script_id(900175); script_bugtraq_id(31962); script_cve_id("CVE-2008-2237","CVE-2008-2238"); script_copyright(english:"Copyright (C) 2008 SecPod"); script_version("Revision: 1.0 "); script_category(ACT_GATHER_INFO); script_family(english:"Denial of Service"); script_name(english:"OpenOffice File Handling Multiple Heap BOF Vulnerabilities (Linux)"); script_summary(english:"Check for vulnerable version of OpenOffice"); desc["english"] = " Overview: The host is installed OpenOffice and is prone to multiple remote heap based buffer overflow vulnerabilities. Vulnerability Insight: Error in 'WMF' and 'EMR' records in 'EMF' files may allow a remote unprivileged user who provides a 'StarOffice/StarSuite' document that is opened by a local user to execute arbitrary commands. These can be exploited to cause heap buffer overflow. Impact: Successful exploitation will allow execution of arbitrary code with the privileges of the current user. Impact Level: System Affected Software/OS: - OpenOffice.org OpenOffice verions prior to 2.4.2 Fix: Upgrade to OpenOffice version 2.4.2 or later http://download.openoffice.org/index.html References: http://www.openoffice.org/security/cves/CVE-2008-2237.html http://www.openoffice.org/security/cves/CVE-2008-2238.html http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2008-2237 CVSS Score: CVSS Base Score : 9.3 (AV:N/AC:M/Au:NR/C:C/I:C/A:C) CVSS Temporal Score : 6.9 Risk factor : High"; script_description(english:desc["english"]); script_dependencies("secpod_ssh_sys_info.nasl"); script_require_keys("ssh/login/uname"); exit(0); } include("ssh_func.inc"); if("Linux" >!< get_kb_item("ssh/login/uname")){ exit(0); } foreach item (get_kb_list("ssh/*/rpms")) { openItem = egrep(pattern:"^openoffice.org.*~([.0-9]+)~.*$", string:item); if("openoffice.org" >< openItem) { openVer = eregmatch(pattern:"([0-9]*)\.([0-9]*)\.([0-9]*)", string:openItem); if(openVer){ # Grep for versions prior to 2.4.2 if(egrep(pattern:"[0-1](\..*)?|2\.([0-3](\..*)?|4(\.[01]))($|[^.0-9])", string:openVer[0])){ security_hole(0); exit(0); } } } }