Mandrake: dhcpcd remote command execution vulnerability
Posted by Team   
Mandrake A malicious administrator of the regular or an untrusted DHCP server may execute any command with root privileges on the DHCP client machine by sending the command enclosed in shell metacharacters in one of the options provided by the DHCP server.


                Mandrake Linux Security Update Advisory

Package name:           dhcpcd
Advisory ID:            MDKSA-2003:003
Date:                   January 9th, 2003

Affected versions:      7.2, 8.0, 8.1, 8.2, 9.0,
                        Multi Network Firewall 8.2, 
                        Single Network Firewall 7.2

Problem Description:

 A vulnerability was discovered by Simon Kelley in the dhcpcd DHCP
 client daemon.  dhcpcd has the ability to execute an external script
 named dhcpcd-.exe when an IP address is assigned to that
 network interface.  The script sources the file
 /var/lib/dhcpcd/ which contains shell variables
 and DHCP assignment information.  The way quotes are handled inside
 these assignments is flawed, and a malicious DHCP server can execute
 arbitrary shell commands on the vulnerable DHCP client system.  This
 can also be exploited by an attacker able to spoof DHCP responses.
 Mandrake Linux packages contain a sample /etc/dhcpc/dhcpcd.exe file
 and encourages all users to upgrade immediately.  Please note that
 when you do upgrade, you will have to restart the network for the
 changes to take proper effect by issuing "service network restart"
 as root.


Updated Packages:
 Linux-Mandrake 7.2:
 19fd3bef4b6e19c38ccb57a28cacb51c  7.2/RPMS/dhcpcd-1.3.22pl4-1.1mdk.i586.rpm
 455f213c4b06c727224880edfe8b495f  7.2/SRPMS/dhcpcd-1.3.22pl4-1.1mdk.src.rpm

 Mandrake Linux 8.0:
 af06f3b1b9084d9bbf64452a43943931  8.0/RPMS/dhcpcd-1.3.22pl4-1.1mdk.i586.rpm
 455f213c4b06c727224880edfe8b495f  8.0/SRPMS/dhcpcd-1.3.22pl4-1.1mdk.src.rpm

 Mandrake Linux 8.0/PPC:
 e4ad6b50170cb50d3f1de86ac699d07b  ppc/8.0/RPMS/dhcpcd-1.3.22pl4-1.1mdk.ppc.rpm
 455f213c4b06c727224880edfe8b495f  ppc/8.0/SRPMS/dhcpcd-1.3.22pl4-1.1mdk.src.rpm

 Mandrake Linux 8.1:
 247f8a59e8b5a524618e60c4989aec29  8.1/RPMS/dhcpcd-1.3.22pl4-1.1mdk.i586.rpm
 455f213c4b06c727224880edfe8b495f  8.1/SRPMS/dhcpcd-1.3.22pl4-1.1mdk.src.rpm

 Mandrake Linux 8.1/IA64:
 4351a669bee76dc2d700833036d7f9d7  ia64/8.1/RPMS/dhcpcd-1.3.22pl4-1.1mdk.ia64.rpm
 455f213c4b06c727224880edfe8b495f  ia64/8.1/SRPMS/dhcpcd-1.3.22pl4-1.1mdk.src.rpm

 Mandrake Linux 8.2:
 e1487443e7412ab1756ed07f61ab318b  8.2/RPMS/dhcpcd-1.3.22pl4-1.1mdk.i586.rpm
 455f213c4b06c727224880edfe8b495f  8.2/SRPMS/dhcpcd-1.3.22pl4-1.1mdk.src.rpm

 Mandrake Linux 8.2/PPC:
 9b02c61e7110675ab9d52416bf50b07f  ppc/8.2/RPMS/dhcpcd-1.3.22pl4-1.1mdk.ppc.rpm
 455f213c4b06c727224880edfe8b495f  ppc/8.2/SRPMS/dhcpcd-1.3.22pl4-1.1mdk.src.rpm

 Mandrake Linux 9.0:
 f2b6212121ea3edbed6f6e62ebb0e20d  9.0/RPMS/dhcpcd-1.3.22pl4-1.1mdk.i586.rpm
 455f213c4b06c727224880edfe8b495f  9.0/SRPMS/dhcpcd-1.3.22pl4-1.1mdk.src.rpm

 Multi Network Firewall 8.2:
 e1487443e7412ab1756ed07f61ab318b  mnf8.2/RPMS/dhcpcd-1.3.22pl4-1.1mdk.i586.rpm
 455f213c4b06c727224880edfe8b495f  mnf8.2/SRPMS/dhcpcd-1.3.22pl4-1.1mdk.src.rpm

 Single Network Firewall 7.2:
 19fd3bef4b6e19c38ccb57a28cacb51c  snf7.2/RPMS/dhcpcd-1.3.22pl4-1.1mdk.i586.rpm
 455f213c4b06c727224880edfe8b495f  snf7.2/SRPMS/dhcpcd-1.3.22pl4-1.1mdk.src.rpm

Bug IDs fixed (see for more information):

To upgrade automatically, use MandrakeUpdate.  The verification of md5
checksums and GPG signatures is performed automatically for you.

If you want to upgrade manually, download the updated package from one
of our FTP server mirrors and upgrade with "rpm -Fvh *.rpm".  A list of
FTP mirrors can be obtained from:

Please verify the update prior to upgrading to ensure the integrity of
the downloaded package.  You can do this with the command:

  rpm --checksig 

All packages are signed by MandrakeSoft for security.  You can obtain
the GPG public key of the Mandrake Linux Security Team from:

Please be aware that sometimes it takes the mirrors a few hours to

You can view other update advisories for Mandrake Linux at:

MandrakeSoft has several security-related mailing list services that
anyone can subscribe to.  Information on these lists can be obtained by

If you want to report vulnerabilities, please contact

Type Bits/KeyID     Date       User ID
pub  1024D/22458A98 2000-07-10 Linux Mandrake Security Team