{"vuid":"VU#854315","idnumber":"854315","name":"ISC DHCPD contains format string vulnerability when logging DNS-update requests","keywords":["ISC","DHCPD","format string","%n","DNS-update request","log_error()","log_info()","obuf"],"overview":"The DHCP daemon (DHCPD) is a server that is used to allocate network addresses and assign configuration parameters to dynamically configured hosts. A format string vulnerability may permit an intruder to execute code with the privileges of the DHCP daemon (typically root).","clean_desc":"The Internet Software Consortium (ISC) produces a DHCP server. DHCPD listens for requests from client machines connecting to the network. Versions 3 to 3.0.1rc8 inclusive of DHCPD contain an option (NSUPDATE) that is compiled in by default. NSUPDATE allows the DHCP server to send an update to the DNS server after processing a DHCP request. The DNS server responds by sending a message back to the DHCP server. The response from the DNS server can contain user-supplied data. When this message is received, the DHCP server logs the transaction. A format string vulnerability exists in the DHCPD code that logs the transaction. This vulnerability may permit an attacker to execute code with the privileges of the DHCP daemon.","impact":"A remote attacker can execute arbitrary code on the vulnerable host with the privileges of the DHCP server (DHCPD), typically root.","resolution":"Obtain a patch from vendor.","workarounds":"If you cannot upgrade, apply the following patch. --- common/print.c      Tue Apr  9 13:41:17 2002\n+++ common/print.c.patched      Tue Apr  9 13:41:56 2002\n@@ -1366,8 +1366,8 @@\n                *s++ = '.'; *s++ = 0; if (errorp)\n-               log_error (obuf); +               log_error (\"%s\",obuf); else\n-               log_info (obuf); +               log_info (\"%s\",obuf); #endif /* NSUPDATE */","sysaffected":"","thanks":"The CERT Coordination Center acknowledges Next Generation Security Technologies as the discoverer of this vulnerability and thanks them and The Internet Software Consortium (ISC) for their cooperation, reporting and analysis of this vulnerability.","author":"This document was written by Ian A. Finlay.","public":["http://www.ngsec.com/docs/advisories/NGSEC-2002-2.txt","http://www.isc.org/products/DHCP/","http://www.securityfocus.com/bid/4701"],"cveids":["CVE-2002-0702"],"certadvisory":"CA-2002-12","uscerttechnicalalert":null,"datecreated":"2002-04-30T19:01:44Z","publicdate":"2002-05-08T00:00:00Z","datefirstpublished":"2002-05-08T17:11:35Z","dateupdated":"2003-01-13T17:32:00Z","revision":48,"vrda_d1_directreport":"","vrda_d1_population":"","vrda_d1_impact":"","cam_widelyknown":"20","cam_exploitation":"0","cam_internetinfrastructure":"18","cam_population":"18","cam_impact":"20","cam_easeofexploitation":"18","cam_attackeraccessrequired":"10","cam_scorecurrent":"46.17","cam_scorecurrentwidelyknown":"46.17","cam_scorecurrentwidelyknownexploited":"70.47","ipprotocol":"","cvss_accessvector":"","cvss_accesscomplexity":"","cvss_authentication":null,"cvss_confidentialityimpact":"","cvss_integrityimpact":"","cvss_availabilityimpact":"","cvss_exploitablity":null,"cvss_remediationlevel":"","cvss_reportconfidence":"","cvss_collateraldamagepotential":"","cvss_targetdistribution":"","cvss_securityrequirementscr":"","cvss_securityrequirementsir":"","cvss_securityrequirementsar":"","cvss_basescore":"","cvss_basevector":"","cvss_temporalscore":"","cvss_environmentalscore":"","cvss_environmentalvector":"","metric":46.17,"vulnote":null}