Lucene search

K
openvasCopyright (c) 2011 SecPodOPENVAS:902558
HistoryAug 29, 2011 - 12:00 a.m.

Ruby Random Number Generation Local Denial Of Service Vulnerability

2011-08-2900:00:00
Copyright (c) 2011 SecPod
plugins.openvas.org
7

0.005 Low

EPSS

Percentile

73.5%

This host is installed with Ruby and is prone to local denial of
service vulnerability.

###############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_ruby_random_number_generation_dos_vuln.nasl 8196 2017-12-20 12:13:37Z cfischer $
#
# Ruby Random Number Generation Local Denial Of Service Vulnerability
#
# Authors:
# Sooraj KS <[email protected]>
#
# Copyright:
# Copyright (c) 2011 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:ruby-lang:ruby";

tag_impact = "Successful exploits may allow local attackers to cause denial-of-service
  conditions.
  Impact Level: Application";
tag_affected = "Ruby Versions prior to 1.8.7-p352";
tag_insight = "The flaw exists because ruby does not reset the random seed upon forking,
  which makes it easier for context-dependent attackers to predict the values
  of random numbers by leveraging knowledge of the number sequence obtained in
  a different child process.";
tag_solution = "Upgrade to Ruby version 1.8.7-p352 or later
  For updates refer to http://rubyforge.org/frs/?group_id=167";
tag_summary = "This host is installed with Ruby and is prone to local denial of
  service vulnerability.";

if(description)
{
  script_id(902558);
  script_version("$Revision: 8196 $");
  script_tag(name:"last_modification", value:"$Date: 2017-12-20 13:13:37 +0100 (Wed, 20 Dec 2017) $");
  script_tag(name:"creation_date", value:"2011-08-29 16:22:41 +0200 (Mon, 29 Aug 2011)");
  script_cve_id("CVE-2011-2686");
  script_bugtraq_id(49015);
  script_tag(name:"cvss_base", value:"5.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:N/A:N");
  script_name("Ruby Random Number Generation Local Denial Of Service Vulnerability");
  script_xref(name : "URL" , value : "http://xforce.iss.net/xforce/xfdb/69032");
  script_xref(name : "URL" , value : "http://redmine.ruby-lang.org/issues/show/4338");
  script_xref(name : "URL" , value : "http://www.ruby-lang.org/en/news/2011/07/02/ruby-1-8-7-p352-released/");

  script_tag(name:"qod_type", value:"registry");
  script_copyright("Copyright (c) 2011 SecPod");
  script_category(ACT_GATHER_INFO);
  script_family("Denial of Service");
  script_dependencies("secpod_ruby_detect_win.nasl");
  script_mandatory_keys("Ruby/Win/Installed");
  script_tag(name : "impact" , value : tag_impact);
  script_tag(name : "affected" , value : tag_affected);
  script_tag(name : "insight" , value : tag_insight);
  script_tag(name : "solution" , value : tag_solution);
  script_tag(name : "summary" , value : tag_summary);
  exit(0);
}

include("host_details.inc");
include("version_func.inc");

infos = get_app_version_and_location( cpe:CPE, exit_no_version:TRUE );
vers = infos['version'];
path = infos['location'];

## Check for Ruby Versions prior to 1.8.7-p352
if( version_in_range( version:vers, test_version:"1.8.7", test_version2:"1.8.7.p351" ) ) {
  report = report_fixed_ver( installed_version:vers, fixed_version:"1.8.7-p352", install_path:path );
  security_message( port:0, data:report );
  exit( 0 );
}

exit( 99 );

0.005 Low

EPSS

Percentile

73.5%