Lucene search
+L

OpenOffice rtl_allocateMemory Heap Based BOF Vulnerability (Linux)

🗓️ 01 Oct 2008 00:00:00Reported by Copyright (C) 2008 Greenbone Networks GmbHType 
openvas
 openvas
🔗 plugins.openvas.org👁 29 Views

OpenOffice heap based buffer overflow vulnerability (Linux

Related
Refs
Code
###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_openoffice_rtl_allocatememory_bof_vuln_lin.nasl 7522 2017-10-20 08:19:44Z cfischer $
#
# OpenOffice rtl_allocateMemory Heap Based BOF Vulnerability (Linux)
#
# Authors:      Chandan S <[email protected]>
#
# Copyright:
# Copyright (c) 2008 Greenbone Networks GmbH, http://www.greenbone.net
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################

tag_impact = "Exploitation will result in buffer overflows via a specially crafted document
  and allow remote unprivileged user who provides a OpenOffice.org document that
  is opened by a local user to execute arbitrary commands on the system with the
  privileges of the user running OpenOffice.org.

  Impact Level : System";

tag_solution = "Upgrade to OpenOffice 2.4.1
  http://download.openoffice.org/index.html";

tag_summary = "The host has OpenOffice installed which is prone to heap based
  buffer overflow vulnerability.";

tag_affected = "OpenOffice.org 2.x on Linux (Any).";
tag_insight = "The flaw is in alloc_global.c file in which rtl_allocateMemory function
  rounding up allocation requests to be aligned on a 8 byte boundary without
  checking the rounding results in an integer overflow condition.";

if(description)
{
  script_id(800010);
  script_version("$Revision: 7522 $");
  script_tag(name:"last_modification", value:"$Date: 2017-10-20 10:19:44 +0200 (Fri, 20 Oct 2017) $");
  script_tag(name:"creation_date", value:"2008-10-01 17:01:16 +0200 (Wed, 01 Oct 2008)");
  script_tag(name:"cvss_base", value:"9.3");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:C/I:C/A:C");
  script_cve_id("CVE-2008-2152");
  script_bugtraq_id(29622);
  script_xref(name:"CB-A", value:"08-0095");
  script_name("OpenOffice rtl_allocateMemory Heap Based BOF Vulnerability (Linux)");
  script_xref(name : "URL" , value : "http://secunia.com/advisories/30599");
  script_xref(name : "URL" , value : "http://www.openoffice.org/security/cves/CVE-2008-2152.html");
  script_xref(name : "URL" , value : "http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=714");

  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2008 Greenbone Networks GmbH");
  script_family("Buffer overflow");
  script_dependencies("gather-package-list.nasl");
  script_mandatory_keys("ssh/login/rpms", "ssh/login/release");
  script_tag(name : "affected" , value : tag_affected);
  script_tag(name : "insight" , value : tag_insight);
  script_tag(name : "summary" , value : tag_summary);
  script_tag(name : "solution" , value : tag_solution);
  script_tag(name : "impact" , value : tag_impact);
  script_tag(name:"qod_type", value:"executable_version");
  script_tag(name:"solution_type", value:"VendorFix");
  exit(0);
}

release = get_kb_item("ssh/login/release");
foreach item (get_kb_list("ssh/login/rpms"))
{
  # Exit if advisory based local check is available as they perform complete
  # rpm package comparison.
  # FixMe: Advisory local check is yet to be released for Fedora
  if((release =~ "FC(7|8|9)") && (item =~ "(O|o)pen(O|o)ffice.*")){
    report = string("Fedora advisory based local check is available to " +
                    "verify if the package is\nup-to-date as per the vendor " +
                    "advisory.\nPlease run the Fedora Local Checks to confirm.");
    log_message(data:report);
    exit(0);
  }

  if(egrep(pattern:"^(O|o)pen(O|o)ffice.*?~([01]\..*|2\.([0-3][^0-9]" +
                   "|4(\.0)?[^.0-9]))", string:item))
  {
     security_message(0);
     exit(0);
  }
}

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation