Lucene search

K
nessusThis script is Copyright (C) 2016-2017 Tenable Network Security, Inc.AIX_IV87939.NASL
HistorySep 08, 2016 - 12:00 a.m.

AIX 7.2 TL 0 : ntp (IV87939) (deprecated)

2016-09-0800:00:00
This script is Copyright (C) 2016-2017 Tenable Network Security, Inc.
www.tenable.com
30

0.937 High

EPSS

Percentile

98.9%

NTPv3 and NTPv4 are vulnerable to :

https://vulners.com/cve/CVE-2015-7974 NTP could allow a remote authenticated attacker to conduct spoofing attacks, caused by a missing key check. An attacker could exploit this vulnerability to impersonate a peer. NTP could allow a local attacker to bypass security restrictions, caused by the failure to use a constant-time memory comparison function when validating the authentication digest on incoming packets. By sending a specially crafted packet with an authentication payload, an attacker could exploit this vulnerability to conduct a timing attack to compute the value of the valid authentication digest. While the majority OSes implement martian packet filtering in their network stack, at least regarding 127.0.0.0/8, a rare few will allow packets claiming to be from 127.0.0.0/8 that arrive over physical network. On these OSes, if ntpd is configured to use a reference clock an attacker can inject packets over the network that look like they are coming from that reference clock. If ntpd was expressly configured to allow for remote configuration, a malicious user who knows the controlkey for ntpq or the requestkey for ntpdc (if mode7 is expressly enabled) can create a session with ntpd and then send a crafted packet to ntpd that will change the value of the trustedkey, controlkey, or requestkey to a value that will prevent any subsequent authentication with ntpd until ntpd is restarted. NTP is vulnerable to a denial of service, caused by an error when using a specially crafted packet to create a peer association with hmode > 7. An attacker could exploit this vulnerability to cause the MATCH_ASSOC() function to trigger an out-of-bounds read. NTP is vulnerable to a denial of service, caused by the failure to always check the ctl_getitem() function return value. By sending an overly large value, an attacker could exploit this vulnerability to cause a denial of service. NTP is vulnerable to a denial of service, caused by the demobilization of a preemptable client association. By sending specially crafted crypto NAK packets, an attacker could exploit this vulnerability to cause a denial of service. NTP is vulnerable to a denial of service, caused by the improper handling of packets. By sending specially crafted CRYPTO_NAK packets, an attacker could exploit this vulnerability to cause ntpd to crash. NTP is vulnerable to a denial of service, caused by the improper handling of packets. By sending specially crafted CRYPTO_NAK packets to an ephemeral peer target prior to a response being sent, a remote attacker could exploit this vulnerability to demobilize the ephemeral association. NTP is vulnerable to a denial of service, caused by the improper handling of packets. By sending spoofed server packets with correct origin timestamps, a remote attacker could exploit this vulnerability to cause a false leap indication to be set.
NTP is vulnerable to a denial of service, caused by the improper handling of packets. By sending spoofed CRYPTO_NAK or a bad MAC packets with correct origin timestamps, a remote attacker could exploit this vulnerability to cause the autokey association to reset.

This plugin has been deprecated to better accommodate iFix supersedence with replacement plugin aix_ntp_v3_advisory7.nasl (plugin id 102128).

#%NASL_MIN_LEVEL 999999

#
# (C) Tenable Network Security, Inc.
#
# The text in the description was extracted from AIX Security
# Advisory ntp_advisory7.asc.
#
# @DEPRECATED@
#
# Disabled on 2017/07/20. Deprecated by aix_ntp_v3_advisory7.nasl.

if (NASL_LEVEL < 3000) exit(0);

include("compat.inc");

if (description)
{
  script_id(93352);
  script_version("2.7");
  script_cvs_date("Date: 2018/07/20  0:18:51");

  script_cve_id("CVE-2015-7974", "CVE-2016-1547", "CVE-2016-1550", "CVE-2016-1551", "CVE-2016-2517", "CVE-2016-2518", "CVE-2016-2519", "CVE-2016-4953", "CVE-2016-4954", "CVE-2016-4955", "CVE-2016-4957");

  script_name(english:"AIX 7.2 TL 0 : ntp (IV87939) (deprecated)");
  script_summary(english:"Check for APAR IV87939");

  script_set_attribute(
    attribute:"synopsis", 
    value:"This plugin has been deprecated."
  );
  script_set_attribute(
    attribute:"description", 
    value:
"NTPv3 and NTPv4 are vulnerable to :

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-7974 NTP could
allow a remote authenticated attacker to conduct spoofing attacks,
caused by a missing key check. An attacker could exploit this
vulnerability to impersonate a peer. NTP could allow a local attacker
to bypass security restrictions, caused by the failure to use a
constant-time memory comparison function when validating the
authentication digest on incoming packets. By sending a specially
crafted packet with an authentication payload, an attacker could
exploit this vulnerability to conduct a timing attack to compute the
value of the valid authentication digest. While the majority OSes
implement martian packet filtering in their network stack, at least
regarding 127.0.0.0/8, a rare few will allow packets claiming to be
from 127.0.0.0/8 that arrive over physical network. On these OSes, if
ntpd is configured to use a reference clock an attacker can inject
packets over the network that look like they are coming from that
reference clock. If ntpd was expressly configured to allow for remote
configuration, a malicious user who knows the controlkey for ntpq or
the requestkey for ntpdc (if mode7 is expressly enabled) can create a
session with ntpd and then send a crafted packet to ntpd that will
change the value of the trustedkey, controlkey, or requestkey to a
value that will prevent any subsequent authentication with ntpd until
ntpd is restarted. NTP is vulnerable to a denial of service, caused by
an error when using a specially crafted packet to create a peer
association with hmode > 7. An attacker could exploit this
vulnerability to cause the MATCH_ASSOC() function to trigger an
out-of-bounds read. NTP is vulnerable to a denial of service, caused
by the failure to always check the ctl_getitem() function return
value. By sending an overly large value, an attacker could exploit
this vulnerability to cause a denial of service. NTP is vulnerable to
a denial of service, caused by the demobilization of a preemptable
client association. By sending specially crafted crypto NAK packets,
an attacker could exploit this vulnerability to cause a denial of
service. NTP is vulnerable to a denial of service, caused by the
improper handling of packets. By sending specially crafted CRYPTO_NAK
packets, an attacker could exploit this vulnerability to cause ntpd to
crash. NTP is vulnerable to a denial of service, caused by the
improper handling of packets. By sending specially crafted CRYPTO_NAK
packets to an ephemeral peer target prior to a response being sent, a
remote attacker could exploit this vulnerability to demobilize the
ephemeral association. NTP is vulnerable to a denial of service,
caused by the improper handling of packets. By sending spoofed server
packets with correct origin timestamps, a remote attacker could
exploit this vulnerability to cause a false leap indication to be set.
NTP is vulnerable to a denial of service, caused by the improper
handling of packets. By sending spoofed CRYPTO_NAK or a bad MAC
packets with correct origin timestamps, a remote attacker could
exploit this vulnerability to cause the autokey association to reset.

This plugin has been deprecated to better accommodate iFix
supersedence with replacement plugin aix_ntp_v3_advisory7.nasl (plugin
id 102128)."
  );
  script_set_attribute(
    attribute:"see_also",
    value:"http://aix.software.ibm.com/aix/efixes/security/ntp_advisory7.asc"
  );
  script_set_attribute(
    attribute:"solution", 
    value:"n/a"
  );
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:ibm:aix:7.2");

  script_set_attribute(attribute:"vuln_publication_date", value:"2016/09/06");
  script_set_attribute(attribute:"patch_publication_date", value:"2016/09/06");
  script_set_attribute(attribute:"plugin_publication_date", value:"2016/09/08");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_copyright(english:"This script is Copyright (C) 2016-2018 Tenable Network Security, Inc.");
  script_family(english:"AIX Local Security Checks");

  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/AIX/lslpp", "Host/local_checks_enabled", "Host/AIX/version");

  exit(0);
}

exit(0, "This plugin has been deprecated. Use aix_ntp_v3_advisory7.nasl (plugin ID 102128) instead.");

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

if ( ! get_kb_item("Host/local_checks_enabled") ) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
if ( ! get_kb_item("Host/AIX/version") ) audit(AUDIT_OS_NOT, "AIX");
if ( ! get_kb_item("Host/AIX/lslpp") ) audit(AUDIT_PACKAGE_LIST_MISSING);

if ( get_kb_item("Host/AIX/emgr_failure" ) ) exit(0, "This iFix check is disabled because : "+get_kb_item("Host/AIX/emgr_failure") );

flag = 0;

if (aix_check_ifix(release:"7.2", ml:"00", sp:"00", patch:"IV87939m0b", package:"bos.net.tcp.ntp", minfilesetver:"7.2.0.0", maxfilesetver:"7.2.0.2") < 0) flag++;
if (aix_check_ifix(release:"7.2", ml:"00", sp:"00", patch:"IV87939m0b", package:"bos.net.tcp.ntpd", minfilesetver:"7.2.0.0", maxfilesetver:"7.2.0.2") < 0) flag++;
if (aix_check_ifix(release:"7.2", ml:"00", sp:"01", patch:"IV87939m0b", package:"bos.net.tcp.ntp", minfilesetver:"7.2.0.0", maxfilesetver:"7.2.0.2") < 0) flag++;
if (aix_check_ifix(release:"7.2", ml:"00", sp:"01", patch:"IV87939m0b", package:"bos.net.tcp.ntpd", minfilesetver:"7.2.0.0", maxfilesetver:"7.2.0.2") < 0) flag++;
if (aix_check_ifix(release:"7.2", ml:"00", sp:"02", patch:"IV87939m2a", package:"bos.net.tcp.ntp", minfilesetver:"7.2.0.0", maxfilesetver:"7.2.0.2") < 0) flag++;
if (aix_check_ifix(release:"7.2", ml:"00", sp:"02", patch:"IV87939m2a", package:"bos.net.tcp.ntpd", minfilesetver:"7.2.0.0", maxfilesetver:"7.2.0.2") < 0) flag++;

if (flag)
{
  if (report_verbosity > 0) security_warning(port:0, extra:aix_report_get());
  else security_warning(0);
  exit(0);
}
else audit(AUDIT_HOST_NOT, "affected");
VendorProductVersionCPE
ibmaix7.2cpe:/o:ibm:aix:7.2