Lucene search

K
openvasCopyright (C) 2014 Greenbone AGOPENVAS:1361412562310804888
HistoryNov 21, 2014 - 12:00 a.m.

Ruby 'str_buf_cat' function Denial-of-Service Vulnerability - Windows

2014-11-2100:00:00
Copyright (C) 2014 Greenbone AG
plugins.openvas.org
6

5 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:N/I:N/A:P

6.6 Medium

AI Score

Confidence

High

0.005 Low

EPSS

Percentile

75.8%

Ruby is prone to a denial of service (DoS) vulnerability.

# SPDX-FileCopyrightText: 2014 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-only

CPE = "cpe:/a:ruby-lang:ruby";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.804888");
  script_version("2024-02-15T05:05:40+0000");
  script_cve_id("CVE-2014-3916");
  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_tag(name:"last_modification", value:"2024-02-15 05:05:40 +0000 (Thu, 15 Feb 2024)");
  script_tag(name:"creation_date", value:"2014-11-21 11:58:24 +0530 (Fri, 21 Nov 2014)");
  script_name("Ruby 'str_buf_cat' function Denial-of-Service Vulnerability - Windows");

  script_tag(name:"summary", value:"Ruby is prone to a denial of service (DoS) vulnerability.");

  script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");

  script_tag(name:"insight", value:"Flaw exists due to an error in 'str_buf_cat'
  function in string.c script triggered when handling an overly long string.");

  script_tag(name:"impact", value:"Successful exploitation will allow attackers
  to cause a denial of service (crash) condition.");

  script_tag(name:"affected", value:"Ruby versions 1.9.3, 2.0.0 and 2.1.0 on
  Windows.");

  script_tag(name:"solution", value:"Upgrade to Ruby 2.1.3 or later.");

  script_tag(name:"solution_type", value:"VendorFix");
  script_tag(name:"qod_type", value:"registry");

  script_xref(name:"URL", value:"https://bugs.ruby-lang.org/issues/9709");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/67705");
  script_xref(name:"URL", value:"http://xforce.iss.net/xforce/xfdb/93505");
  script_xref(name:"URL", value:"http://svn.ruby-lang.org/repos/ruby/tags/v2_1_3/ChangeLog");

  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2014 Greenbone AG");
  script_family("Denial of Service");
  script_dependencies("gb_ruby_consolidation.nasl", "os_detection.nasl");
  script_mandatory_keys("ruby/detected", "Host/runs_windows");

  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);

version = infos["version"];
location = infos["location"];

if(version_in_range(version:version, test_version:"1.9.3.0", test_version2:"2.1.0")) {
  report = report_fixed_ver(installed_version:version, vulnerable_range:"1.9.3.0 - 2.1.0", install_path:location);
  security_message(port:port, data:report);
  exit(0);
}

else if(version =~ "^2\.1\.0\.") {
  if(version_is_less(version:version, test_version:"2.1.1")) {
    report = report_fixed_ver(installed_version:version, fixed_version:"2.1.1", install_path:location);
    security_message(port:port, data:report);
    exit(0);
  }
}

exit(99);

5 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:N/I:N/A:P

6.6 Medium

AI Score

Confidence

High

0.005 Low

EPSS

Percentile

75.8%

Related for OPENVAS:1361412562310804888