Microsoft KB Archive/318138

= MS02-029: Unchecked buffer in Remote Access Service phonebook allows code to run =

Article ID: 318138

Article Last Modified on 12/1/2007

-

APPLIES TO


 * Microsoft Windows NT Server 4.0, Terminal Server Edition Service Pack 4
 * Microsoft Windows NT Server 4.0, Terminal Server Edition Service Pack 5
 * Microsoft Windows NT Server 4.0, Terminal Server Edition Service Pack 6
 * Microsoft Windows 2000 Service Pack 1
 * Microsoft Windows 2000 Service Pack 2
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Service Pack 1
 * Microsoft Windows 2000 Service Pack 2
 * Microsoft Windows XP Home Edition
 * Microsoft Windows XP Professional
 * Microsoft Windows XP Professional x64 Edition
 * Microsoft Windows NT Server 4.0 Standard Edition
 * Microsoft Windows NT 4.0 Service Pack 1
 * Microsoft Windows NT 4.0 Service Pack 2
 * Microsoft Windows NT 4.0 Service Pack 3
 * Microsoft Windows NT 4.0 Service Pack 4
 * Microsoft Windows NT 4.0 Service Pack 5
 * Microsoft Windows NT 4.0 Service Pack 6a
 * Microsoft Windows NT Server 4.0 Enterprise Edition
 * Microsoft Windows NT 4.0 Service Pack 4
 * Microsoft Windows NT 4.0 Service Pack 5
 * Microsoft Windows NT 4.0 Service Pack 6a
 * Microsoft Windows NT Workstation 4.0 Developer Edition
 * Microsoft Windows NT Workstation 4.0 Developer Edition
 * Microsoft Windows NT Workstation 4.0 Developer Edition
 * Microsoft Windows NT Workstation 4.0 Developer Edition
 * Microsoft Windows NT Workstation 4.0 Developer Edition
 * Microsoft Windows NT Workstation 4.0
 * Microsoft Windows NT Workstation 4.0 Developer Edition

-



This article was previously published under Q318138



SYMPTOMS
A privilege-elevation vulnerability exists in the Remote Access Service phonebook. This vulnerability might allow an attacker who successfully exploits the vulnerability to gain complete control over the computer. The attacker can then take any action on the computer such as adding, deleting, or modifying data; creating or deleting user accounts; or adding accounts to the local Administrators group.

This vulnerability can be exploited only by an attacker who has credentials to log on to the computer on which the Remote Access service phonebook is located. Best practices suggest that unprivileged users not be permitted to interactively log on to business-critical servers. If you follow this guideline, such servers are not at risk from this vulnerability.



CAUSE
This vulnerability is caused by an unchecked buffer in the Remote Access Service phonebook. By creating a specially malformed phonebook entry, an attacker might be able to conduct a buffer-overrun attack against an affected computer.



Windows XP
To resolve this problem, obtain the latest service pack for Windows XP. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

322389 How to Obtain the Latest Windows XP Service Pack

Download Information
The following file is available for download from the Microsoft Download Center:

Download the Q318138 package now

Release Date: June 12, 2002

For more information about how to download Microsoft support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to obtain Microsoft support files from online services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.

Installation Options
You must restart your computer after you apply this update. This update supports the following Setup switches:

For example, the following command line installs the update without any user intervention and then does not force the computer to restart:

q318138_wxp_sp1_x86_enu -u -q -z

Warning Your computer is vulnerable until you restart it.

File Information
The English version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.

Date        Time   Version      Size     File name and path

12-Feb-2002 22:14  5.1.2600.28  218,112  %Windir%\System32\Rasapi32.dll 12-Feb-2002 22:14  5.1.2600.28  630,784  %Windir%\System32\Rasdlg.dll 12-Feb-2002 22:14  5.1.2600.28   13,824  %Windir%\System32\Rassapi.dll

Note Because of file dependencies, this update may contain additional files.

Windows XP 64-Bit Edition
To resolve this problem, obtain the latest service pack for Windows XP. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

322389 How to Obtain the Latest Windows XP Service Pack

Download Information
The following file is available for download from the Microsoft Download Center:

Download the Q318138 package now

Release Date: June 12, 2002

For more information about how to download Microsoft support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to obtain Microsoft support files from online services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.

Installation Options
You must restart your computer after you apply this update. This update supports the following setup switches:

For example, the following command line installs the update without any user intervention and then does not force the computer to restart:

q318138_wxp_sp1_ia64_enu -u -q -z

Warning Your computer is vulnerable until you restart it.

File Information
The English version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.

Date        Time   Version      Size       File name and path --- 12-Feb-2002 22:14  5.1.2600.28    698,368  %Windir%\SysWOW64\Rasapi32.dll 12-Feb-2002 22:14  5.1.2600.28  1,480,704  %Windir%\SysWOW64\Rasdlg.dll 12-Feb-2002 22:14  5.1.2600.28     40,448  %Windir%\SysWOW64\Rassapi.dll 12-Feb-2002 22:14  5.1.2600.28    218,112  %Windir%\SysWOW64\Wrasapi32.dll 12-Feb-2002 22:14  5.1.2600.28    630,784  %Windir%\SysWOW64\Wrasdlg.dll 12-Feb-2002 22:14  5.1.2600.28     13,824  %Windir%\SysWOW64\Wrassapi.dll

Note Because of file dependencies, this update may contain additional files.

Windows 2000
Note Microsoft has identified an issue with the Windows 2000 version of this update that can prevent VPN connections from being made by non-administrators after you apply the update. This article will be updated when an updated patch is available. For additional information about this issue, click the article number below to view the article in the Microsoft Knowledge Base:

324908 VPN Connections May Require Administrator Permissions After You Apply MS02-029 (Q318138)

To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

260910 How to Obtain the Latest Windows 2000 Service Pack

Download Information
The following file is available for download from the Microsoft Download Center:

Download the Q318138 package now

Release Date: June 12, 2002

For more information about how to download Microsoft support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to obtain Microsoft support files from online services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.

Installation Options
You must restart your computer after you apply this update. For additional information about command-line switches to install or remove this patch, click the article number below to view the article in the Microsoft Knowledge Base:

262841 Windows 2000 Hotfix.exe Program Description and Command-Line Switches

For example, the following command line installs the update without any user intervention and then does not force the computer to restart:

q318138_w2k_sp3_x86_en /q /m /z

Warning Your computer is vulnerable until you restart it.

File Information
The English version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.

 Date        Time   Version        Size     File name and path -- 02-Mar-2002 17:44  5.0.2195.4983  194,320  %Windir%\System32\Rasapi32.dll 02-Mar-2002 17:44  5.0.2195.4983  528,144  %Windir%\System32\Rasdlg.dll 02-Mar-2002 17:44  5.0.2195.4983   58,128  %Windir%\System32\Rasman.dll

02-Mar-2002 17:44  5.0.2195.4983  152,848  %Windir%\System32\Rasmans.dll 02-Mar-2002 17:44  5.0.2195.4983   14,608  %Windir%\System32\Rassapi.dll 02-Mar-2002 17:44  5.0.2195.4983   54,032  %Windir%\System32\Rastapi.dll

Note Because of file dependencies, this update may contain additional files. This update requires Windows 2000 Service Pack 2 (SP2) or Service Pack 1 (SP1).

Windows NT 4.0
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that you determine are at risk of attack. Evaluate the computer's physical accessibility, network and Internet connectivity, and other factors to determine the degree of risk to the computer. See the associated Microsoft Security Bulletin to help determine the degree of risk. This hotfix may receive additional testing. If the computer is sufficiently at risk, we recommend that you apply this hotfix now.

To resolve this problem immediately, download the hotfix by following the instructions later in this article or contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled, if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Download Information
The following file, for the given language, is available for download from the Microsoft Download Center:

English Language Version

Arabic Language Version

Chinese (Hong Kong) Language Version

Chinese (Simplified) Language Version

Chinese (Traditional) Language Version

Czech Language Version

Danish Language Version

Dutch Language Version

Finnish Language Version

French Language Version

German Language Version

Hebrew Language Version

Hungarian Language Version

Italian Language Version

Japanese Language Version

Japanese NEC Language Version

Korean Language Version

Norwegian Language Version

Polish Language Version

Portuguese (Brazilian) Language Version

Russian Language Version

Spanish Language Version

Swedish Language Version

Thai Language Version

Release Date: June 12, 2002

For more information about how to download Microsoft support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to obtain Microsoft support files from online services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.

Installation Options
You must restart your computer after you apply this update. For additional information about the switches that you can use to apply this update, click the article number below to view the article in the Microsoft Knowledge Base:

184305 How to Install and Remove Hotfixes with Hotfix.exe

For example, the following command line installs the update without any user intervention and then does not force the computer to restart:

q318138i /q /m /z

Warning Your computer is vulnerable until you restart it.

File Information
The English version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.

Remote Access Service files:

Date        Time   Version        Size     File name and path -- 07-Mar-2002 14:53  4.0.1381.7140  128,784  %Windir%\System32\Rasapi32.dll 07-Mar-2002 14:53  4.0.1381.7140  153,872  %Windir%\System32\Rascfg.dll 07-Mar-2002 14:53  4.0.1381.7140  348,432  %Windir%\System32\Rasdlg.dll 07-Mar-2002 14:53  4.0.1381.7140   12,560  %Windir%\System32\Rasfil32.dll 07-Mar-2002 14:53  4.0.1381.7140   24,336  %Windir%\System32\Rassapi.dll

Note Because of dependencies, this update may contain additional files. This update requires Windows NT 4.0 Service Pack 6a (SP6a).

Windows NT Server 4.0, Terminal Server Edition
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that you determine are at risk of attack. Evaluate the computer's physical accessibility, network and Internet connectivity, and other factors to determine the degree of risk to the computer. See the associated Microsoft Security Bulletin to help determine the degree of risk. This hotfix may receive additional testing. If the computer is sufficiently at risk, we recommend that you apply this hotfix now.

To resolve this problem immediately, download the hotfix by following the instructions later in this article or contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled, if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Download Information
The following file is available for download from the Microsoft Download Center:

Download the Q318138 package now

If you use Routing and Remote Access Service (RRAS), download the following update:

Download the Q318138 package now

Release Date: June 12, 2002

For more information about how to download Microsoft support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to obtain Microsoft support files from online services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.

Installation Options
You must restart your computer after you apply this update. For additional information about the switches that you can use to apply this update, click the article number below to view the article in the Microsoft Knowledge Base:

184305 How to Install and Remove Hotfixes with Hotfix.exe

For example, the following command line installs the update without any user intervention and then does not force the computer to restart:

q318138i /q /m /z

Warning Your computer is vulnerable until you restart it.

File Information
The English version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.

Remote Access Service files:

Date        Time   Version         Size     File name and path --- 12-Mar-2002 19:18  4.0.1381.33533  128,784  %Windir%\System32\Rasapi32.dll 12-Mar-2002 19:18  4.0.1381.33533  154,896  %Windir%\System32\Rascfg.dll 12-Mar-2002 19:18  4.0.1381.33533  348,432  %Windir%\System32\Rasdlg.dll 12-Mar-2002 19:17  4.0.1381.33533   12,560  %Windir%\System32\Rasfil32.dll 12-Mar-2002 19:18  4.0.1381.33533   24,848  %Windir%\System32\Rassapi.dll

RRAS files:

Date        Time   Version    Size     File name and path -- 31-May-2002 17:27  4.1.1.101  131,856  %Windir%\System32\Rasapi32.dll 31-May-2002 18:08  4.1.1.101  158,992  %Windir%\System32\Rascfg.dll 31-May-2002 17:27  4.1.1.101  396,048  %Windir%\System32\Rasdlg.dll 31-May-2002 17:25  4.1.1.101   12,560  %Windir%\System32\Rasfil32.dll 31-May-2002 17:27  4.1.1.101   19,216  %Windir%\System32\Rassapi.dll

Note Because of file dependencies, this update may contain additional files. This update requires Windows NT Server 4.0, Terminal Server Edition, Service Pack 6 (SP6).



STATUS
Microsoft has confirmed that this problem may cause a degree of security vulnerability in the Microsoft products that are listed in the &quot;Applies to&quot; section. This problem was first corrected in Microsoft Windows 2000 Service Pack 3 (SP3) and Microsoft Windows XP Service Pack 1 (SP1).



MORE INFORMATION
For more information about this vulnerability, visit the following Microsoft Web site:

http://www.microsoft.com/technet/security/bulletin/ms02-029.mspx

Additional query words: ras security_patch

Keywords: kbhotfixserver kbqfe kbbug kbfix kbsecbulletin kbsechack kbsecurity kbsecvulnerability kbwin2000presp3fix kbwin2000sp3fix kbwinxpsp1fix KB318138

-

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

© Microsoft Corporation. All rights reserved.