Pivotal Software Redis 2.8.x < 2.8.24 / 3.x < 3.0.6 DoS

2018-04-24T00:00:00
ID REDIS_CVE-2015-8080.NASL
Type nessus
Reporter This script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
Modified 2020-08-02T00:00:00

Description

The version of Redis installed on the remote host is affected by a remote denial of service (DoS) and therefore requires a security update.

                                        
                                            #
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(109324);
  script_version("1.3");
  script_cvs_date("Date: 2019/11/08");

  script_cve_id("CVE-2015-8080");
  script_bugtraq_id(77507);

  script_name(english:"Pivotal Software Redis 2.8.x < 2.8.24 / 3.x < 3.0.6 DoS");
  script_summary(english:"Checks version of Pivotal Software Redis.");

  script_set_attribute(attribute:"synopsis", value:
"Redis requires a security update.");
  script_set_attribute(attribute:"description", value:
"The version of Redis installed on the remote host is affected by a
remote denial of service (DoS) and therefore requires a security update.");
  # https://raw.githubusercontent.com/antirez/redis/3.0/00-RELEASENOTES
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?a89bf59b");
  # https://raw.githubusercontent.com/antirez/redis/2.8/00-RELEASENOTES
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?9e1f5034");
  script_set_attribute(attribute:"solution", value:
"Update to Redis 2.8.24 / 3.0.6 or higher.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");

  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");

  script_set_attribute(attribute:"vuln_publication_date", value:"2015/12/08");
  script_set_attribute(attribute:"patch_publication_date", value:"2015/12/08");
  script_set_attribute(attribute:"plugin_publication_date", value:"2018/04/24");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:pivotal_software:redis");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Misc.");

  script_copyright(english:"This script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("redis_detect.nbin");
  script_require_ports("Services/redis_server", 6379);

  exit(0);
}

include("audit.inc");
include("misc_func.inc");
include("install_func.inc");
include("global_settings.inc");

appname = "Redis Server";
port = get_service(svc:"redis_server", default:6379, exit_on_fail:TRUE);
version = get_kb_item_or_exit("redis/" + port + "/Version");

if (version =~ "^3\.") fix = '3.0.6';
else if (version =~ "^2\.8\.") fix = '2.8.24';
else
  audit(AUDIT_INST_VER_NOT_VULN, appname);

vcomp_out = ver_compare(ver:version, fix:fix);
if (!isnull(vcomp_out) && vcomp_out < 0)
{
  report =
    '\n  Port              : ' + port +
    '\n  Installed version : ' + version +
    '\n  Fixed version     : ' + fix +
    '\n';

  security_report_v4(port:port, severity:SECURITY_WARNING, extra:report);
}
else
{
  audit(AUDIT_INST_VER_NOT_VULN, appname);
}