Cisco ASA RADIUS radius_rcv_auth DoS (CSCun69561)

2014-06-11T00:00:00
ID CISCO-SN-CSCUN69561-ASA.NASL
Type nessus
Reporter Tenable
Modified 2018-07-06T00:00:00

Description

According to its banner, the version of the remote Cisco ASA device is affected by a denial of service vulnerability due to improper validation of RADIUS packets. A remote attacker that knows the RADIUS shared secret could cause a denial of service by injecting a specially crafted packet during a RADIUS authentication exchange.

                                        
                                            #TRUSTED 9ccb468d76b49d15e5d2030372296dda20a55526ed381154ee689b2bc52851a3c7c1cbeec9e0f7700f3ff45a8d3979f8e597884a36eb6fc2236f37ad47de81a8f65e1e31c0fc995a378a13aa77b58b8e6e2d77bc236130c3198161303f1dc894c9fde2227a4e684f01b9621c874014d927826c4220dd33e9b7b688ee3894cdf029d12ab315205cd16608df5ba9c46bdfdc81bd21755092c74b8524094231788de5b9e46a996334a658d310e36f0c99ae6f3d124ce353b94c759cd0a43a99405a9e339c2115edda7dd210807180bc278f415e361102ec8cc94b91b8c298d075a2824b92f4aff17a046932cc4aa35a6b7bf5b1acc438cee41c60933e0bd0d1fbf3be3e4359a154bb2a54d8235b2bbeeabacf81b8bea3b64ba2191c0b1ce3ccd2675a5343cfc075b4db94a8b572896f733091053e940ba77bfd2c6cf27c4ab14e3f42858f3461f42253f665de667b8f912742ea01a7d775821846272e4999d6a6f7ba437013e4130e8bb40b4a6a8a6d54fe8010edbeeb30c7798b5264119371617b0fc8295cb24e1e5045b3aa837123d552e8b6b67cefa9149c8f75f6c594900a4dfd0a62617c4b098f3c7bf230ff9a2ef4159bb98c6e51bfe5b185b3f066a8023449c9eec9008b4bf916d631c96244dcf050e3a0f00e0c1a2666c27eac0031d256dc0b2d887b6b78d46939a9b59f8fd584cea4ab4cf853a847e554f44bc5d0ad1e
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(74443);
  script_version("1.5");
  script_set_attribute(attribute:"plugin_modification_date", value:"2018/07/06");

  script_cve_id("CVE-2014-3264");
  script_bugtraq_id(67547);
  script_xref(name:"CISCO-BUG-ID", value:"CSCun69561");

  script_name(english:"Cisco ASA RADIUS radius_rcv_auth DoS (CSCun69561)");
  script_summary(english:"Checks ASA version");

  script_set_attribute(attribute:"synopsis", value:"The remote device is missing a vendor-supplied security patch.");
  script_set_attribute(attribute:"description", value:
"According to its banner, the version of the remote Cisco ASA device is
affected by a denial of service vulnerability due to improper
validation of RADIUS packets. A remote attacker that knows the RADIUS
shared secret could cause a denial of service by injecting a specially
crafted packet during a RADIUS authentication exchange.");
  # http://tools.cisco.com/security/center/content/CiscoSecurityNotice/CVE-2014-3264
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?11b62cc5");
  # http://tools.cisco.com/security/center/viewAlert.x?alertId=34273
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?1772766c");
  script_set_attribute(attribute:"solution", value:"Apply the relevant patch referenced in Cisco Bug Id CSCun69561.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:S/C:N/I:N/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:cisco:adaptive_security_appliance_software");

  script_set_attribute(attribute:"vuln_publication_date", value:"2014/05/19");
  script_set_attribute(attribute:"patch_publication_date", value:"2014/05/19");
  script_set_attribute(attribute:"plugin_publication_date", value:"2014/06/11");

  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_copyright(english:"This script is Copyright (C) 2014-2018 Tenable Network Security, Inc.");
  script_family(english:"CISCO");

  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/Cisco/ASA", "Host/Cisco/ASA/model");

  exit(0);
}

include("audit.inc");
include("cisco_func.inc");
include("cisco_kb_cmd_func.inc");

asa   = get_kb_item_or_exit('Host/Cisco/ASA');
model = get_kb_item_or_exit('Host/Cisco/ASA/model');

ver = extract_asa_version(asa);
if (isnull(ver)) audit(AUDIT_FN_FAIL, 'extract_asa_version');

if (model !~ '^55[0-9][0-9](|-)X($|[^0-9])') audit(AUDIT_HOST_NOT, 'ASA 5500-X series');

fixed_ver = NULL;

if (ver =~ "^8\.[46][^0-9]")
  fixed_ver = "Refer to the vendor for a fix.";

else if (ver =~ "^9\.0[^0-9]" && check_asa_release(version:ver, patched:"9.0(4.8)"))
  fixed_ver = "9.0(4)8";

else if (ver =~ "^9\.1[^0-9]" && check_asa_release(version:ver, patched:"9.1(5.1)"))
  fixed_ver = "9.1(5)1";

else if (ver =~ "^9\.2[^0-9]" && check_asa_release(version:ver, patched:"9.2(1.1)"))
  fixed_ver = "9.2(1)1";

else
  audit(AUDIT_INST_VER_NOT_VULN, "Cisco ASA software", ver);

override = FALSE;

# Check if RADIUS authentication is enabled
if (get_kb_item("Host/local_checks_enabled"))
{
  flag = FALSE;

  buf = cisco_command_kb_item("Host/Cisco/Config/show_running-config", "show running-config");
  if (check_cisco_result(buf))
  {
    if (preg(multiline:TRUE, pattern:"aaa-server \S+ protocol radius", string:buf)) flag = TRUE;
  }
  else if (cisco_needs_enable(buf)) override = TRUE;

  if (!flag && !override) audit(AUDIT_HOST_NOT, "affected because RADIUS is not enabled.");
}

if (report_verbosity > 0)
{
  report =
    '\n  Installed version : ' + ver +
    '\n  Fixed version     : ' + fixed_ver +
    '\n';
  security_warning(port:0, extra:report+cisco_caveat(override));
}
else security_warning(port:0, extra:cisco_caveat(override));