Sun OpenOffice.org < 2.4 Multiple Vulnerabilities - Nessus

High   Plugin ID: 31968

This page contains detailed information about the Sun OpenOffice.org < 2.4 Multiple Vulnerabilities Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 31968
Name: Sun OpenOffice.org < 2.4 Multiple Vulnerabilities
Filename: openoffice_240.nasl
Vulnerability Published: N/A
This Plugin Published: 2008-04-17
Last Modification Time: 2018-07-16
Plugin Version: 1.17
Plugin Type: local
Plugin Family: Windows
Dependencies: openoffice_installed.nasl
Required KB Items [?]: SMB/OpenOffice/Build

Vulnerability Information


Severity: High
Vulnerability Published: N/A
Patch Published: N/A
CVE [?]: CVE-2007-4770, CVE-2007-4771, CVE-2007-5745, CVE-2007-5746, CVE-2007-5747, CVE-2008-0320
CPE [?]: cpe:/a:sun:openoffice.org
Exploited by Malware: True

Synopsis

The remote Windows host has a program that is affected by multiple vulnerabilities.

Description

The version of Sun Microsystems OpenOffice.org installed on the remote host is affected by several issues :

- Heap overflow and arbitrary code execution vulnerabilities involving ODF text documents with XForms (CVE-2007-4770/4771).

- Heap overflow and arbitrary code execution vulnerabilities involving Quattro Pro files (CVE-2007-5745/5747).

- Heap overflow and arbitrary code execution vulnerabilities involving EMF files (CVE-2007-5746).

- Heap overflow and arbitrary code execution vulnerabilities involving OLE files (CVE-2008-0320).

Solution

Upgrade to Sun Microsystems OpenOffice.org version 2.4 or later.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB, Core Impact)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the Sun OpenOffice.org < 2.4 Multiple Vulnerabilities vulnerability:

  1. Metasploit: exploit/windows/fileformat/openoffice_ole
    [OpenOffice OLE Importer DocumentSummaryInformation Stream Handling Overflow]
  2. Exploit-DB: exploits/windows/local/18923.rb
    [EDB-18923: OpenOffice - OLE Importer DocumentSummaryInformation Stream Handling Overflow (Metasploit)]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS V2 Vector [?]: AV:N/AC:M/Au:N/C:C/I:C/A:C/E:H/RL:OF/RC:C
CVSS Base Score:9.3 (High)
Impact Subscore:10.0
Exploitability Subscore:8.6
CVSS Temporal Score:8.1 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.1 (High)

Go back to menu.

Plugin Source


This is the openoffice_240.nasl nessus plugin source code. This script is Copyright (C) 2008-2018 Tenable Network Security, Inc.

#
#  (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(31968);
  script_version("1.17");

  script_cve_id(
    "CVE-2007-4770",
    "CVE-2007-4771",
    "CVE-2007-5745",
    "CVE-2007-5746",
    "CVE-2007-5747",
    "CVE-2008-0320"
  );
  script_bugtraq_id(28819);
  script_xref(name:"Secunia", value:"29852");

  script_name(english:"Sun OpenOffice.org < 2.4 Multiple Vulnerabilities");
  script_summary(english:"Checks the version of Sun OpenOffice.org"); 
 
 script_set_attribute(attribute:"synopsis", value:
"The remote Windows host has a program that is affected by multiple
vulnerabilities." );
 script_set_attribute(attribute:"description", value:
"The version of Sun Microsystems OpenOffice.org installed on the
remote host is affected by several issues :

  - Heap overflow and arbitrary code execution
    vulnerabilities involving ODF text documents with 
    XForms (CVE-2007-4770/4771).

  - Heap overflow and arbitrary code execution 
    vulnerabilities involving Quattro Pro files
    (CVE-2007-5745/5747).

  - Heap overflow and arbitrary code execution 
    vulnerabilities involving EMF files (CVE-2007-5746).

  - Heap overflow and arbitrary code execution 
    vulnerabilities involving OLE files (CVE-2008-0320)." );
 script_set_attribute(attribute:"see_also", value:"http://www.openoffice.org/security/cves/CVE-2007-5746.html" );
 script_set_attribute(attribute:"see_also", value:"http://www.openoffice.org/security/cves/CVE-2007-4770.html" );
 script_set_attribute(attribute:"see_also", value:"http://www.openoffice.org/security/cves/CVE-2007-5745.html" );
 script_set_attribute(attribute:"see_also", value:"http://www.openoffice.org/security/cves/CVE-2008-0320.html" );
 script_set_attribute(attribute:"solution", value:
"Upgrade to Sun Microsystems OpenOffice.org version 2.4 or later." );
 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_set_attribute(attribute:"metasploit_name", value:'OpenOffice OLE Importer DocumentSummaryInformation Stream Handling Overflow');
 script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
 script_cwe_id(119, 189, 399);
 script_set_attribute(attribute:"plugin_publication_date", value: "2008/04/17");
 script_cvs_date("Date: 2018/07/16 14:09:15");
script_set_attribute(attribute:"plugin_type", value:"local");
script_set_attribute(attribute:"cpe", value:"cpe:/a:sun:openoffice.org");
script_end_attributes();
 
  script_category(ACT_GATHER_INFO);
  script_family(english:"Windows");

  script_copyright(english:"This script is Copyright (C) 2008-2018 Tenable Network Security, Inc.");

  script_dependencies("openoffice_installed.nasl");
  script_require_keys("SMB/OpenOffice/Build");

  exit(0);
}

build = get_kb_item("SMB/OpenOffice/Build");
if (build)
{
  matches = eregmatch(string:build, pattern:"([0-9]+[a-z][0-9]+)\(Build:([0-9]+)\)");
  if (!isnull(matches))
  {
    buildid = int(matches[2]);
    if (buildid < 9286) security_hole(get_kb_item("SMB/transport"));
  }
}

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/openoffice_240.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\openoffice_240.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/openoffice_240.nasl

Go back to menu.

How to Run


Here is how to run the Sun OpenOffice.org < 2.4 Multiple Vulnerabilities as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select Windows plugin family.
  6. On the right side table select Sun OpenOffice.org < 2.4 Multiple Vulnerabilities plugin ID 31968.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl openoffice_240.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a openoffice_240.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - openoffice_240.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state openoffice_240.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: Secunia Advisory: CWE | Common Weakness Enumeration:
  • CWE-119 (Weakness) Improper Restriction of Operations within the Bounds of a Memory Buffer
  • CWE-189 (Category) Numeric Errors
  • CWE-399 (Category) Resource Management Errors
See also: Similar and related Nessus plugins:
  • 31996 - CentOS 4 / 5 : openoffice.org / openoffice.org2 (CESA-2008:0175)
  • 31997 - CentOS 3 / 4 : openoffice.org (CESA-2008:0176)
  • 31969 - Debian DSA-1547-1 : openoffice.org - several vulnerabilities
  • 32042 - Fedora 8 : openoffice.org-2.3.0-6.14.fc8 (2008-3251)
  • 32385 - Fedora 7 : openoffice.org-2.3.0-6.8.fc7 (2008-4104)
  • 32353 - GLSA-200805-16 : OpenOffice.org: Multiple vulnerabilities
  • 37969 - Mandriva Linux Security Advisory : openoffice.org (MDVSA-2008:095)
  • 67666 - Oracle Linux 3 / 4 : openoffice.org (ELSA-2008-0176)
  • 32018 - RHEL 4 / 5 : openoffice.org (RHSA-2008:0175)
  • 32019 - RHEL 3 / 4 : openoffice.org (RHSA-2008:0176)
  • 60388 - Scientific Linux Security Update : openoffice.org2 on SL4.5 and 4.6 i386/x86_64
  • 60389 - Scientific Linux Security Update : openoffice.org on SL3.x, SL4.x i386/x86_64
  • 60390 - Scientific Linux Security Update : openoffice.org on SL5.x i386/x86_64
  • 32023 - openSUSE 10 Security Update : OpenOffice_org (OpenOffice_org-5053)
  • 32189 - Ubuntu 6.06 LTS / 7.04 / 7.10 : hsqldb, openoffice.org/-amd64 vulnerabilities (USN-609-1)
  • 29218 - Sun OpenOffice.org < 2.3.1 Database HSQLDB Database Document Handling Arbitrary Java Code Execution
  • 46814 - Oracle OpenOffice.org < 3.2.1 Multiple Vulnerabilities
  • 44597 - Sun OpenOffice.org < 3.2 Multiple Vulnerabilities
  • 122033 - Apache OpenOffice < 4.1.6 Virtual Table Arithmetic Overflow
  • 142882 - Apache OpenOffice < 4.1.8 Arbitrary Code Execution
  • 33486 - Sun Java J2SE 1.4.2 < Update 18 Multiple Vulnerabilities
  • 35030 - Sun Java JRE Multiple Vulnerabilities (244986 et al)
  • 42373 - Sun Java JRE Multiple Vulnerabilities (269868 / 269869 / 270476 ..)
  • 33487 - Sun Java JDK/JRE 5 < Update 16 Multiple Vulnerabilities
  • 33488 - Sun Java JDK/JRE 6 < Update 7 Multiple Vulnerabilities
  • 25693 - Sun Java Web Start JNLP File Handling Overflow (102996)
  • 33819 - Sun xVM VirtualBox < 1.6.4 Local Privilege Escalation
  • 40549 - Sun xVM VirtualBox < 3.0.4 Multiple Local Denial of Service Vulnerabilities

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file openoffice_240.nasl version 1.17. For more plugins, visit the Nessus Plugin Library.

Go back to menu.