OpenOffice.org is prone to a buffer overflow vulnerability.
# SPDX-FileCopyrightText: 2009 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-or-later
CPE = "cpe:/a:openoffice:openoffice.org";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.800695");
script_version("2023-04-21T10:20:09+0000");
script_tag(name:"last_modification", value:"2023-04-21 10:20:09 +0000 (Fri, 21 Apr 2023)");
script_tag(name:"creation_date", value:"2009-09-08 18:25:53 +0200 (Tue, 08 Sep 2009)");
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-2009-0200", "CVE-2009-0201");
script_name("OpenOffice.org < 3.1.1 Word Documents Parsing Buffer Overflow Vulnerability - Linux");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2009 Greenbone AG");
script_family("Buffer overflow");
script_dependencies("gb_openoffice_ssh_login_detect.nasl");
script_mandatory_keys("openoffice.org/linux/detected");
script_xref(name:"URL", value:"http://secunia.com/secunia_research/2009-27/");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/36200");
script_xref(name:"URL", value:"http://www.vupen.com/english/advisories/2009/2490");
script_tag(name:"summary", value:"OpenOffice.org is prone to a buffer overflow vulnerability.");
script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");
script_tag(name:"insight", value:"The following flaws exist:
- An integer underflow error occurs when parsing certain records in a Word document table.
- An heap overflow error occurs when parsing certain records in a Word document when opening a
malicious Word document.");
script_tag(name:"impact", value:"Successful remote exploitation could result in arbitrary code
execution on the affected system which leads to application crash and compromise a vulnerable
system.");
script_tag(name:"affected", value:"OpenOffice.org versions prior to 3.1.1.");
script_tag(name:"solution", value:"Update to version 3.1.1 or later.");
script_tag(name:"qod_type", value:"executable_version_unreliable");
script_tag(name:"solution_type", value:"VendorFix");
exit(0);
}
include("host_details.inc");
include("version_func.inc");
if( ! version = get_app_version( cpe:CPE ) )
exit( 0 );
if( version_is_less( version:version, test_version:"3.1.1" ) ) {
report = report_fixed_ver( installed_version:version, fixed_version:"3.1.1" );
security_message( port:0, data:report );
exit( 0 );
}
exit( 99 );