RHEL 7 : dhcp (RHSA-2018:1453) - Nessus

High   Plugin ID: 109839

This page contains detailed information about the RHEL 7 : dhcp (RHSA-2018:1453) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 109839
Name: RHEL 7 : dhcp (RHSA-2018:1453)
Filename: redhat-RHSA-2018-1453.nasl
Vulnerability Published: 2018-05-17
This Plugin Published: 2018-05-16
Last Modification Time: 2019-10-24
Plugin Version: 1.16
Plugin Type: local
Plugin Family: Red Hat Local Security Checks
Dependencies: ssh_get_info.nasl
Required KB Items [?]: Host/cpu, Host/local_checks_enabled, Host/RedHat/release, Host/RedHat/rpm-list

Vulnerability Information


Severity: High
Vulnerability Published: 2018-05-17
Patch Published: 2018-05-15
CVE [?]: CVE-2018-1111
CPE [?]: cpe:/o:redhat:enterprise_linux:7, cpe:/o:redhat:enterprise_linux:7.5, cpe:/o:redhat:enterprise_linux:7.6, cpe:/o:redhat:enterprise_linux:7.7, p-cpe:/a:redhat:enterprise_linux:dhclient, p-cpe:/a:redhat:enterprise_linux:dhcp, p-cpe:/a:redhat:enterprise_linux:dhcp-common, p-cpe:/a:redhat:enterprise_linux:dhcp-debuginfo, p-cpe:/a:redhat:enterprise_linux:dhcp-devel, p-cpe:/a:redhat:enterprise_linux:dhcp-libs
In the News: True

Synopsis

The remote Red Hat host is missing one or more security updates.

Description

An update for dhcp is now available for Red Hat Enterprise Linux 7.

Red Hat Product Security has rated this update as having a security impact of Critical. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section.

The Dynamic Host Configuration Protocol (DHCP) is a protocol that allows individual devices on an IP network to get their own network configuration information, including an IP address, a subnet mask, and a broadcast address. The dhcp packages provide a relay agent and ISC DHCP service required to enable and administer DHCP on a network.

Security Fix(es) :

* A command injection flaw was found in the NetworkManager integration script included in the DHCP client packages in Red Hat Enterprise Linux. A malicious DHCP server, or an attacker on the local network able to spoof DHCP responses, could use this flaw to execute arbitrary commands with root privileges on systems using NetworkManager and configured to obtain network configuration using the DHCP protocol. (CVE-2018-1111)

Red Hat would like to thank Felix Wilhelm (Google Security Team) for reporting this issue.

Solution

Update the affected packages.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB, GitHub)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the RHEL 7 : dhcp (RHSA-2018:1453) vulnerability:

  1. Metasploit: exploit/unix/dhcp/rhel_dhcp_client_command_injection
    [DHCP Client Command Injection (DynoRoot)]
  2. Exploit-DB: exploits/linux/local/44652.py
    [EDB-44652: DynoRoot DHCP Client - Command Injection]
  3. Exploit-DB: exploits/linux/remote/44890.rb
    [EDB-44890: DHCP Client - Command Injection 'DynoRoot' (Metasploit)]
  4. GitHub: https://dynoroot.ninja/
    [CVE-2018-1111]
  5. GitHub: https://github.com/ARGOeu/secmon-probes
    [CVE-2018-1111]
  6. GitHub: https://github.com/Macr0phag3/Exp-or-Poc
    [CVE-2018-1111]
  7. GitHub: https://github.com/PaloAltoNetworks/research-notes
    [CVE-2018-1111]
  8. GitHub: https://github.com/baldassarreFe/FEP3370-advanced-ethical-hacking
    [CVE-2018-1111: DHCP exploitation with DynoRoot (CVE-2018-1111)]
  9. GitHub: https://github.com/fbreton/lacework
    [CVE-2018-1111]
  10. GitHub: https://github.com/kkirsche/CVE-2018-1111
    [CVE-2018-1111: CVE-2018-1111 DynoRoot]
  11. GitHub: https://github.com/knqyf263/CVE-2018-1111
    [CVE-2018-1111: Environment for DynoRoot (CVE-2018-1111)]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS V2 Vector [?]: AV:A/AC:M/Au:N/C:C/I:C/A:C/E:F/RL:OF/RC:C
CVSS Base Score:7.9 (High)
Impact Subscore:10.0
Exploitability Subscore:5.5
CVSS Temporal Score:6.5 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.5 (Medium)
CVSS V3 Vector: CVSS:3.0/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C
CVSS Base Score:7.5 (High)
Impact Subscore:5.9
Exploitability Subscore:1.6
CVSS Temporal Score:7.0 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:7.0 (High)
STIG Severity [?]: I
STIG Risk Rating: High

Go back to menu.

Plugin Source


This is the redhat-RHSA-2018-1453.nasl nessus plugin source code. This script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.

#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were  
# extracted from Red Hat Security Advisory RHSA-2018:1453. The text 
# itself is copyright (C) Red Hat, Inc.
#

include("compat.inc");

if (description)
{
  script_id(109839);
  script_version("1.16");
  script_cvs_date("Date: 2019/10/24 15:35:44");

  script_cve_id("CVE-2018-1111");
  script_xref(name:"RHSA", value:"2018:1453");
  script_xref(name:"IAVA", value:"2018-A-0162");

  script_name(english:"RHEL 7 : dhcp (RHSA-2018:1453)");
  script_summary(english:"Checks the rpm output for the updated packages");

  script_set_attribute(
    attribute:"synopsis", 
    value:"The remote Red Hat host is missing one or more security updates."
  );
  script_set_attribute(
    attribute:"description", 
    value:
"An update for dhcp is now available for Red Hat Enterprise Linux 7.

Red Hat Product Security has rated this update as having a security
impact of Critical. A Common Vulnerability Scoring System (CVSS) base
score, which gives a detailed severity rating, is available for each
vulnerability from the CVE link(s) in the References section.

The Dynamic Host Configuration Protocol (DHCP) is a protocol that
allows individual devices on an IP network to get their own network
configuration information, including an IP address, a subnet mask, and
a broadcast address. The dhcp packages provide a relay agent and ISC
DHCP service required to enable and administer DHCP on a network.

Security Fix(es) :

* A command injection flaw was found in the NetworkManager integration
script included in the DHCP client packages in Red Hat Enterprise
Linux. A malicious DHCP server, or an attacker on the local network
able to spoof DHCP responses, could use this flaw to execute arbitrary
commands with root privileges on systems using NetworkManager and
configured to obtain network configuration using the DHCP protocol.
(CVE-2018-1111)

Red Hat would like to thank Felix Wilhelm (Google Security Team) for
reporting this issue."
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://access.redhat.com/security/vulnerabilities/3442151"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://access.redhat.com/errata/RHSA-2018:1453"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://access.redhat.com/security/cve/cve-2018-1111"
  );
  script_set_attribute(attribute:"solution", value:"Update the affected packages.");
  script_set_cvss_base_vector("CVSS2#AV:A/AC:M/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:F/RL:O/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'DHCP Client Command Injection (DynoRoot)');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:dhclient");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:dhcp");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:dhcp-common");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:dhcp-debuginfo");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:dhcp-devel");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:dhcp-libs");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:redhat:enterprise_linux:7");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:redhat:enterprise_linux:7.5");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:redhat:enterprise_linux:7.6");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:redhat:enterprise_linux:7.7");

  script_set_attribute(attribute:"vuln_publication_date", value:"2018/05/17");
  script_set_attribute(attribute:"patch_publication_date", value:"2018/05/15");
  script_set_attribute(attribute:"plugin_publication_date", value:"2018/05/16");
  script_set_attribute(attribute:"in_the_news", value:"true");
  script_set_attribute(attribute:"generated_plugin", value:"current");
  script_set_attribute(attribute:"stig_severity", value:"I");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_copyright(english:"This script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
  script_family(english:"Red Hat Local Security Checks");

  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list", "Host/cpu");

  exit(0);
}


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

if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
release = get_kb_item("Host/RedHat/release");
if (isnull(release) || "Red Hat" >!< release) audit(AUDIT_OS_NOT, "Red Hat");
os_ver = pregmatch(pattern: "Red Hat Enterprise Linux.*release ([0-9]+(\.[0-9]+)?)", string:release);
if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Red Hat");
os_ver = os_ver[1];
if (! preg(pattern:"^7([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Red Hat 7.x", "Red Hat " + os_ver);

if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);

cpu = get_kb_item("Host/cpu");
if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$" && "s390" >!< cpu) audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Red Hat", cpu);

yum_updateinfo = get_kb_item("Host/RedHat/yum-updateinfo");
if (!empty_or_null(yum_updateinfo)) 
{
  rhsa = "RHSA-2018:1453";
  yum_report = redhat_generate_yum_updateinfo_report(rhsa:rhsa);
  if (!empty_or_null(yum_report))
  {
    security_report_v4(
      port       : 0,
      severity   : SECURITY_HOLE,
      extra      : yum_report 
    );
    exit(0);
  }
  else
  {
    audit_message = "affected by Red Hat security advisory " + rhsa;
    audit(AUDIT_OS_NOT, audit_message);
  }
}
else
{
  flag = 0;
  if (rpm_check(release:"RHEL7", cpu:"s390x", reference:"dhclient-4.2.5-68.el7_5.1")) flag++;

  if (rpm_check(release:"RHEL7", cpu:"x86_64", reference:"dhclient-4.2.5-68.el7_5.1")) flag++;

  if (rpm_check(release:"RHEL7", cpu:"s390x", reference:"dhcp-4.2.5-68.el7_5.1")) flag++;

  if (rpm_check(release:"RHEL7", cpu:"x86_64", reference:"dhcp-4.2.5-68.el7_5.1")) flag++;

  if (rpm_check(release:"RHEL7", cpu:"s390x", reference:"dhcp-common-4.2.5-68.el7_5.1")) flag++;

  if (rpm_check(release:"RHEL7", cpu:"x86_64", reference:"dhcp-common-4.2.5-68.el7_5.1")) flag++;

  if (rpm_check(release:"RHEL7", reference:"dhcp-debuginfo-4.2.5-68.el7_5.1")) flag++;

  if (rpm_check(release:"RHEL7", reference:"dhcp-devel-4.2.5-68.el7_5.1")) flag++;

  if (rpm_check(release:"RHEL7", reference:"dhcp-libs-4.2.5-68.el7_5.1")) flag++;


  if (flag)
  {
    security_report_v4(
      port       : 0,
      severity   : SECURITY_HOLE,
      extra      : rpm_report_get() + redhat_report_package_caveat()
    );
    exit(0);
  }
  else
  {
    tested = pkg_tests_get();
    if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
    else audit(AUDIT_PACKAGE_NOT_INSTALLED, "dhclient / dhcp / dhcp-common / dhcp-debuginfo / dhcp-devel / etc");
  }
}

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/redhat-RHSA-2018-1453.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\redhat-RHSA-2018-1453.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/redhat-RHSA-2018-1453.nasl

Go back to menu.

How to Run


Here is how to run the RHEL 7 : dhcp (RHSA-2018:1453) as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select Red Hat Local Security Checks plugin family.
  6. On the right side table select RHEL 7 : dhcp (RHSA-2018:1453) plugin ID 109839.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl redhat-RHSA-2018-1453.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a redhat-RHSA-2018-1453.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - redhat-RHSA-2018-1453.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state redhat-RHSA-2018-1453.nasl -t <IP/HOST>

Go back to menu.

References


RHSA | Red Hat Security Advisory: IAVA | Information Assurance Vulnerability Alert:
  • 2018-A-0162
See also: Similar and related Nessus plugins:
  • 110194 - Amazon Linux 2 : dhcp (ALAS-2018-1021)
  • 110198 - Amazon Linux AMI : dhcp (ALAS-2018-1024)
  • 109814 - CentOS 7 : dhcp (CESA-2018:1453)
  • 109815 - CentOS 6 : dhcp (CESA-2018:1454)
  • 110126 - EulerOS 2.0 SP1 : dhcp (EulerOS-SA-2018-1122)
  • 110127 - EulerOS 2.0 SP2 : dhcp (EulerOS-SA-2018-1123)
  • 110852 - EulerOS 2.0 SP3 : dhcp (EulerOS-SA-2018-1188)
  • 124882 - EulerOS Virtualization for ARM 64 3.0.1.0 : dhcp (EulerOS-SA-2019-1379)
  • 120293 - Fedora 28 : 12:dhcp (2018-23ca7a6798)
  • 109820 - Fedora 27 : 12:dhcp (2018-36058ed9f2)
  • 109874 - Fedora 26 : 12:dhcp (2018-5392896132)
  • 127178 - NewStart CGSL CORE 5.04 / MAIN 5.04 : dhcp Multiple Vulnerabilities (NS-SA-2019-0021)
  • 127381 - NewStart CGSL MAIN 4.05 : dhcp Vulnerability (NS-SA-2019-0129)
  • 109826 - Oracle Linux 7 : dhcp (ELSA-2018-1453)
  • 109827 - Oracle Linux 6 : dhcp (ELSA-2018-1454)
  • 109830 - OracleVM 3.3 / 3.4 : dhcp (OVMSA-2018-0042)
  • 109840 - RHEL 6 : dhcp (RHSA-2018:1454)
  • 109841 - RHEL 7 : dhcp (RHSA-2018:1455)
  • 109842 - RHEL 7 : dhcp (RHSA-2018:1456)
  • 109843 - RHEL 7 : dhcp (RHSA-2018:1457)
  • 109844 - RHEL 6 : dhcp (RHSA-2018:1458)
  • 109845 - RHEL 6 : dhcp (RHSA-2018:1459)
  • 109846 - RHEL 6 : dhcp (RHSA-2018:1460)
  • 109847 - RHEL 6 : dhcp (RHSA-2018:1461)
  • 109909 - RHEL 7 : Virtualization (RHSA-2018:1524)
  • 109910 - RHEL 7 : Virtualization (RHSA-2018:1525)
  • 109849 - Scientific Linux Security Update : dhcp on SL6.x i386/x86_64 (20180515)
  • 109850 - Scientific Linux Security Update : dhcp on SL7.x x86_64 (20180515)

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file redhat-RHSA-2018-1453.nasl version 1.16. For more plugins, visit the Nessus Plugin Library.

Go back to menu.