Microsoft has issued a patch for SQL users, for vulnerabilities that may allow an attacker to run code of choice on the affected server.
The patch covers all previous functionality for patches for SQL Server 7.0, SQL Server 2000 (32-bit edition and 64-bit edition), MSDE 1.0, and MSDE 2000 (SQL Server 2000 Desktop Engine).
The first vulnerability is referred to as a "named pipe hijacking". Upon system startup, SQL Server creates and listens on a specifically named "pipe" for incoming connections to the server. The named pipe is checked for verification of logon.
A flaw exists in the checking method that could allow an attacker local to the system to "hijack" the named pipe during another client`s authenticated login. This would allow the attacker to gain control of the named pipe at the same permission level as the user who is attempting to connect.
The second vulnerability, "named pipe denial of service", exploits the same "pipes" scenario. Through this procedure, an unauthenticated local intranet user can send a large data packet to a specific named pipe and cause it to become unresponsive in a denial of service attack. A restart of the server will be necessary.
<b DESIGNTIMESP=1785>Scan for Microsoft RPC DCOM vulnerability</B>
Microsoft has updated a security advisory regarding a critical Windows vulnerability, discovered last week and reported by ITWeb, and now propagating over the Internet. Although the original patch "was and still is effective in eliminating the security vulnerability, the 'mitigating factors` and 'workarounds` discussions in the original bulletin did not clearly identify all of the ports by which the vulnerability could potentially be exploited," the company says.
On discovering that the vulnerability is widely propagating over the Internet, eEye Digital Security, a network security design firm, has released a free scanning utility to detect unpatched systems.
The exploit targets a buffer overflow associated with Windows` implementation of Remote Procedure Call (RPC) and impacts Windows NT, 2000, XP and Server 2003. It impacts the way in which RPC is implemented in the Windows operating system and enables remote attackers to send a specially crafted RPC request to TCP port 135 on vulnerable machines.
AP reports that a group in China has released a program that lets hackers exploit the flaw and take over a victim`s computer over the Internet. "Three times a year, there are [flaws] this bad," said Marc Maiffret, co-founder of eEye. "This is one of those times."
The third flaw in a Windows function may allow an authenticated user of a system running SQL to send a specially crafted packet to the listening local procedure call port, causing a buffer overrun. If successfully exploited, this could allow a user with limited permissions to elevate their permissions to the level of the SQL Server service account, or cause arbitrary code to run.
To exploit the first vulnerability, the attacker would need to be an authenticated user local to the system, argues Microsoft. And although it is unnecessary for the attacker be authenticated in the second instance, the attacker would require access to the local intranet. A simple restart will resume normal operations, and the flaw provides no access to the system or database information.
In terms of the third, the attacker would also have to be an authenticated user local to the system.

