FortiGuard Advisory (FGA-2008-30)

Microsoft SQL Server Memory Corruption Vulnerability
2008.December.24

Summary:

A specially crafted stored procedure call can allow a memory write to a controlled location, leading to execution of arbitrary code.

Impact:

Remote code execution.

Risk:
  • Critical

Affected Software:

For a list of SQL Server versions affected, please see the Microsoft Security Advisory reference below.

Additional Information:

The vulnerability lies in the extended stored procedure "sp_replwritetovarbin", and can be triggered by supplying overly long parameters. The resulting write can potentially allow execution of arbitrary code. By default, the aforementioned stored procedure is accessible to any authenticated users. Alternatively, the vulnerability may be leveraged through SQL injection.

Solutions:
  • The FortiGuard Global Security Research Team created the IPS signature "MS.SQL.Server.Sp_replwritetovarbin.Memory.Overwrite", which covers this specific vulnerability.

Fortinet customers who subscribe to Fortinet’s intrusion prevention (IPS) service should be protected against this invalid pointer reference vulnerability. Fortinet’s IPS service is one component of FortiGuard Subscription Services, which also offer comprehensive solutions such as antivirus, Web content filtering and antispam capabilities. These services enable protection against threats on both application and network layers. FortiGuard Services are continuously updated by the FortiGuard Global Security Research Team, which enables Fortinet to deliver a combination of multi-layered security intelligence and true zero-day protection from new and emerging threats. These updates are delivered to all FortiGate, FortiMail and FortiClient products. Fortinet strictly follows responsible disclosure guidelines to ensure optimum protection during a threat's lifecycle.

References:



Disclaimer:

Although Fortinet has attempted to provide accurate information in these materials, Fortinet assumes no legal responsibility for the accuracy or completeness of the information. More specific information is available on request from Fortinet. Please note that Fortinet's product information does not constitute or contain any guarantee, warranty or legally binding representation, unless expressly identified as such in a duly signed writing.

About Fortinet ( www.fortinet.com ):

Fortinet is the pioneer and leading provider of ASIC-accelerated unified threat management, or UTM, security systems, which are used by enterprises and service providers to increase their security while reducing total operating costs. Fortinet solutions were built from the ground up to integrate multiple levels of security protection--including firewall, antivirus, intrusion prevention, VPN, spyware prevention and anti-spam -- designed to help customers protect against network and content level threats. Leveraging a custom ASIC and unified interface, Fortinet solutions offer advanced security functionality that scales from remote office to chassis-based solutions with integrated management and reporting. Fortinet solutions have won multiple awards around the world and are the only security products that are certified in six programs by ICSA Labs: (Firewall, Antivirus, IPSec, SSL, Network IPS, and Anti-Spyware). Fortinet is privately held and based in Sunnyvale, California.