OpenSSL is prone to multiple Denial of Service Vulnerabilities.
###############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_openssl_mult_dos_vuln_lin.nasl 13899 2019-02-27 09:14:23Z cfischer $
#
# OpenSSL DTLS Packets Multiple Denial of Service Vulnerabilities (Linux)
#
# Authors:
# Antu Sanadi <[email protected]>
#
# Updated by: Antu Sanadi<[email protected]> on 2010-11-08
# Updated the description part
#
# Copyright:
# Copyright (c) 2009 SecPod, http://www.secpod.com
#
# 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.
###############################################################################
CPE = "cpe:/a:openssl:openssl";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.900653");
script_version("$Revision: 13899 $");
script_tag(name:"last_modification", value:"$Date: 2019-02-27 10:14:23 +0100 (Wed, 27 Feb 2019) $");
script_tag(name:"creation_date", value:"2009-05-28 07:14:08 +0200 (Thu, 28 May 2009)");
script_tag(name:"cvss_base", value:"5.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:P");
script_cve_id("CVE-2009-1377", "CVE-2009-1378", "CVE-2009-1379");
script_bugtraq_id(35001);
script_name("OpenSSL DTLS Packets Multiple Denial of Service Vulnerabilities (Linux)");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2009 SecPod");
script_family("Denial of Service");
script_dependencies("gb_openssl_detect.nasl", "gb_openssl_detect_lin.nasl", "os_detection.nasl");
script_mandatory_keys("openssl/detected", "Host/runs_unixoide");
script_xref(name:"URL", value:"http://rt.openssl.org/Ticket/Display.html?id=1923&user=guest&pass=guest");
script_xref(name:"URL", value:"https://launchpad.net/bugs/cve/2009-1379");
script_xref(name:"URL", value:"http://www.openwall.com/lists/oss-security/2009/05/18/4");
script_xref(name:"URL", value:"http://secunia.com/advisories/35128");
script_xref(name:"URL", value:"http://cvs.openssl.org/chngview?cn=18188");
script_xref(name:"URL", value:"http://www.openwall.com/lists/oss-security/2009/05/18/1");
script_tag(name:"summary", value:"OpenSSL is prone to multiple Denial of Service Vulnerabilities.");
script_tag(name:"impact", value:"Successful exploitation will allow attacker to cause denial-of-service
conditions, crash the client, and exhaust all memory.");
script_tag(name:"insight", value:"Multiple flaws are due to,
- The library does not limit the number of buffered DTLS records with a future epoch.
- An error when processing DTLS messages can be exploited to exhaust all available memory by sending a
large number of out of sequence handshake messages.
- A use-after-free error in the 'dtls1_retrieve_buffered_fragment()' function can be exploited to cause
a crash in a client context.");
script_tag(name:"affected", value:"OpenSSL version 0.9.8 to version 0.9.8k and version 1.0.x versions 1.0.0 Beta2 and prior.");
script_tag(name:"qod_type", value:"remote_banner_unreliable");
script_tag(name:"solution_type", value:"VendorFix");
exit(0);
}
include("host_details.inc");
include("version_func.inc");
if( isnull( port = get_app_port( cpe:CPE ) ) )
exit( 0 );
if( ! infos = get_app_version_and_location( cpe:CPE, port:port, exit_no_version:TRUE ) )
exit( 0 );
vers = infos['version'];
path = infos['location'];
if( version_in_range( version:vers, test_version:"0.9.8", test_version2:"0.9.8k" ) ||
( vers =~ "^1\.0\.0" && version_is_less_equal( version:vers, test_version:"1.0.0beta2" ) ) ) {
report = report_fixed_ver( installed_version:vers, fixed_version:"See references", install_path:path );
security_message( port:port, data:report );
exit( 0 );
}
exit( 99 );