Microsoft KB Archive/321081

= Installation of MSDE creates an 'sa' account with a blank password in Visio =

Article ID: 321081

Article Last Modified on 10/13/2006

-

APPLIES TO


 * Microsoft Data Engine 1.0, when used with:
 * Microsoft Visio 2000 Enterprise Edition
 * Microsoft SQL Server 2000 Desktop Engine (Windows), when used with:
 * Microsoft Visio Enterprise Network Tools

-



This article was previously published under Q321081



SYMPTOMS
When you install Microsoft Data Engine (MSDE) version 1.0 or Microsoft SQL Server Desktop Engine (MSDE2000), the installation uses SQL Authentication by default. In addition, the default user name in these cases is sa, and the default password is blank.



CAUSE
This problem may occur when either of the following conditions is true:

The Microsoft Data Engine (MSDE) version 1.0 is installed with the following products:
 * Visio 2000 Enterprise Edition
 * Microsoft Visio 2000 Enterprise Edition SR-1

-or-

The Microsoft SQL Server Desktop Engine (MSDE2000) is installed with Microsoft Visio Enterprise Network Tools (VENT).



RESOLUTION
Microsoft advises that this problem can pose a potential security issue.

To determine whether this applies to your system, try to log on to MSDE by using the OSQL utility from a command prompt. Use the following syntax:

C:\>osql -U sa -P

If you receive the following message

Login failed for user 'sa'

the sa password is not blank, which indicates that the issue does not exist on your system.

However, if you receive the following message after you run the command

&quot;1>&quot;

the security vulnerability applies to the system, and you must follow the steps in the next section to change the 'sa' password.

How to Secure the 'sa' Account with a Password
You can use the sp_password stored procedure to set up a password for the 'sa' account. For example, to change the 'sa' password from NULL to &quot;Test!01&quot;, use code similar to the following:

EXEC sp_password NULL,'Test!01','sa'

To set a secure password on Microsoft Data Engine (MSDE) 'sa' account, follow these steps:  At the command prompt, log on to MSDE as follows:

C:\>osql -U sa -P

 When you receive the &quot;1>&quot; message, change the 'sa' account password by using the following command:

EXEC sp_password NULL, ,'sa'

Note In this command,  is a secure password that meets your organization's security guidelines and that you can remember.

Note The password for 'sa' account must be strong. For password advice, visit the following Microsoft Web site:

http://www.microsoft.com/security/articles/password.asp





STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
For more information about Microsoft Data Engine (MSDE) security recommendations, click the following article numbers to view the articles in the Microsoft Knowledge Base:

248683 Microsoft Data Engine security recommendations for ISVs

313418 Unsecured SQL Server with blank (NULL) SA password leaves vulnerability to a worm

274773 FIX: If You Change Windows Security to Windows/SQL Security the SA Password is Blank

290212 List of bugs fixed in SQL Server 2000 Service Pack 1 (1 of 2)

For additional information about the sp_password stored procedure, refer to SQL Server books online.

Acknowledgment: Adrian Romo of Quilogy contributed to this Microsoft Knowledge Base article.

Additional query words: prb sql sqlde msde visio2000 vso2000 visio2002 vso2002

Keywords: kbpending kbprb KB321081

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.