Secunia Logo
 
SQL Server Named Pipe Privilege Escalation Vulnerability
Secunia Advisory: SA9229
Release Date: 2003-07-11
Popularity: 7,510 views

Critical:
Less critical
Impact: Privilege escalation
Where: Local system
Solution Status: Vendor Patch

Software:Microsoft SQL Server 2000
Microsoft SQL Server 7

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2003-0496


Description:
A vulnerability has been identified in SQL Server, which can be exploited by malicious, local users to escalate their privileges on a vulnerable system.

The vulnerability is caused due to a general error in the "CreateFile" API and an attack vector exists in SQL Server making it possible to gain the privileges of the SQL Server. This can be exploited by specifying the UNC name of a named pipe instead of a file as an argument to the "xp_fileexist" extended stored procedure.

An example is included in the original advisory.

Solution:
Generally, only trusted administrators should be allowed access to a server. Furthermore, services should be run with as few privileges as possible.

Microsoft has fixed this issue in Windows 2000 Service Pack 4 by introducing a new user right:
http://www.microsoft.com/windows2000/downloads/servicepacks/sp4/default.asp

Provided and/or discovered by:
Andreas Junestam (@stake)

Original Advisory:
http://www.atstake.com/research/advisories/2003/a070803-1.txt

Other References:
Microsoft knowledge base article about the new user right:
http://support.microsoft.com/default.aspx?scid=kb;[LN];821546


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. Sun Java JDK / JRE Multiple Vulnerabilities // 73 views
2. Linksys WRT160N Cross-Site Scripting Vulnerability // 31 views
3. ClamAV "cli_check_jpeg_exploit()" Denial of Service Vulnerability // 31 views
4. Adobe Acrobat/Reader Multiple Vulnerabilities // 31 views
5. IBM Rational ClearQuest Multiple Vulnerabilities // 28 views
6. Debian update for flamethrower // 27 views
7. Rumpus Multiple Vulnerabilities // 23 views
8. bcoos "cid" SQL Injection Vulnerability // 23 views
9. IBM Rational ClearCase Cross-Site Scripting Vulnerability // 23 views
10. DAHDI "ZT_SPANCONFIG" IOCTL Privilege Escalation Vulnerability // 23 views