{"vuid":"VU#555920","idnumber":"555920","name":"Microsoft Windows DNS RPC buffer overflow","keywords":["Microsoft","DNS","RPC","0-Day","Remote management","stack buffer overflow","ms07-may","INFO#111001"],"overview":"The Microsoft DNS service Remote Procedure Call (RPC) implementation contains a stack buffer overflow. This vulnerability may allow a remote attacker to execute arbitrary code with SYSTEM privileges.","clean_desc":"The Microsoft Windows DNS service uses RPC to facilitate remote management. The Microsoft Windows DNS service RPC management interface contains a stack-based buffer overflow. This vulnerability can be triggered by sending a specially crafted RPC packet to the RPC management interface. The management interface typically operates on a dynamically-assigned port between 1024/tcp and 5000/tcp. This vulnerability can also be exploited via the ports used by SMB services (139/tcp, 139/udp, 445/tcp, and 445/udp). However, this attack vector requires valid authentication credentials. More information on this vulnerability, including a list of affected products is available in Microsoft Security Bulletin MS07-029. Exploit code for this vulnerability is publicly available, and it is being actively exploited.","impact":"A remote attacker may be able to execute arbitrary code with SYSTEM privileges.","resolution":"Apply an update\nThis vulnerability is addressed by the updates included with Microsoft Security Bulletin MS07-029. Until an update can be applied, the following workarounds may reduce the chances of exploitation. It is important to understand your network's configuration and service requirements before deciding what changes are appropriate. For instance, disabling the RPC interface of the DNS service may prevent administrators from being able to remotely manage a Microsoft Windows DNS server. Consider this when implementing the following workarounds:","workarounds":"Disable the RPC interface used by the Microsoft Windows DNS service This workaround will configure the DNS management service to to function only via Local Procedure Call (LPC). This prevents exploitation of the vulnerability, however it also disables remote management via RPC, which is used by the Microsoft Management Console (MMC) DNS snap-in. According to Microsoft SecurityBulletin MS07-029, the RPC remote management can be disabled by taking the following steps: On the start menu click 'Run' and then type 'Regedit' and then press enter. Navigate to the following registry location: “HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\DNS\\Parameters”. On the 'Edit' menu select 'New' and then click 'DWORD Value'. Where 'New Value #1' is highlighted type 'RpcProtocol' for the name of the value and then press enter. Double click on the newly created value and change the value's data to 4. Alternatively, the following text can be saved as a .REG file and imported: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\DNS\\Parameters] \"RpcProtocol\"=dword:00000004\nThis will restrict the DNS management interface to Local Procedure Call (LPC) only. Note that the DNS service needs to be restarted for the above changes to take effect. More information on regedit.exe is available in Microsoft Knowledge Base Article Q82821. Additional information regarding how to disable remote administration of the DNS Server service in Windows Server 2003 and in Windows 2000 Server can be found in Microsoft Knowledge Base Article 936263. Block or Restrict access to RPC at the network perimeter This workaround will restrict TCP/IP access to all RPC interfaces, including the vulnerable DNS management RPC interface. This workaround will not prevent exploitation of the vulnerability, but will limit the possible sources of attacks. This workaround will allow remote management using the RPC interface (MMC DNS Snap-in) from selected networks. Access to the RPC Endpoint Mapper service (135/tcp), the ports assigned by the RPC Endpoint Mapper (by default 1024/tcp to 5000/tcp), and SMB services (139/tcp, 139/udp, 445/tcp, and 445/udp) should be blocked at your network perimeter. This will limit your exposure to attacks. Note that blocking RPC and SMB at the network perimeter will still allow attackers within the perimeter of your network to exploit this vulnerability. All unsolicited traffic on the ports listed above should be blocked.","sysaffected":"","thanks":"This vulnerability was reported in Microsoft Security Advisory (\n935964","author":"This document was written by Jeff Gennari.","public":["http://www.microsoft.com/technet/security/bulletin/ms07-029.mspx","http://www.microsoft.com/technet/security/advisory/935964.mspx","http://support.microsoft.com/kb/936263","http://support.microsoft.com/kb/813963/","http://support.microsoft.com/kb/q82821","http://secunia.com/advisories/24871/","http://blogs.technet.com/msrc/archive/2007/04/12/microsoft-security-advisory-935964-posted.aspx"],"cveids":["CVE-2007-1748"],"certadvisory":"","uscerttechnicalalert":null,"datecreated":"2007-04-09T18:33:20Z","publicdate":"2007-04-13T00:00:00Z","datefirstpublished":"2007-04-13T11:47:49Z","dateupdated":"2007-05-08T18:46:27Z","revision":142,"vrda_d1_directreport":"1","vrda_d1_population":"4","vrda_d1_impact":"4","cam_widelyknown":"8","cam_exploitation":"16","cam_internetinfrastructure":"15","cam_population":"14","cam_impact":"20","cam_easeofexploitation":"16","cam_attackeraccessrequired":"15","cam_scorecurrent":"49.14","cam_scorecurrentwidelyknown":"64.26","cam_scorecurrentwidelyknownexploited":"69.3","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":49.14,"vulnote":null}