Help and Support
 

powered byLive Search

Unchecked buffer in Windows shell could lead to code running

Article ID:313829
Last Review:April 19, 2007
Revision:7.4
This article was previously published under Q313829
On This Page

SYMPTOMS

If a program that uses a URL-handler shell extension is incompletely or incorrectly removed, a malicious user may be able to mount a "buffer overrun" attack on the computer. This attack, if successful, could allow malicious code to run on the computer.

Back to the top

CAUSE

This vulnerability occurs because a Windows component that helps to locate incompletely-removed programs contains an unchecked buffer.

If a program is deleted, or incorrectly removed, a "handler" for that program remains in the Windows registry. A malicious code segment that submits invalid data to this handler can cause the Windows shell to stop responding (hang), or can allow other code to run on the computer in the context of the currently-logged-on user account.

NOTE: This vulnerability does not occur when a program is uninstalled. When a program is uninstalled, Windows un-registers the program handler.

Back to the top

RESOLUTION

Back to the top

Windows 2000

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 (http://support.microsoft.com/kb/260910/EN-US/) How to Obtain the Latest Windows 2000 Service Pack
The following files are available for download from the Microsoft Download Center:
Download English Language Version (http://download.microsoft.com/download/win2000platform/patch/q313829/nt5/en-us/q313829_w2k_sp3_x86_en.exe)

Download Arabic Language Version (http://download.microsoft.com/download/win2000platform/patch/q313829/nt5/ar/q313829_w2k_sp3_x86_ar.exe)

Download Chinese (Simplified) Language Version (http://download.microsoft.com/download/win2000platform/patch/q313829/nt5/cn/q313829_w2k_sp3_x86_cn.exe)

Download Chinese (Traditional) Language Version (http://download.microsoft.com/download/win2000platform/patch/q313829/nt5/tw/q313829_w2k_sp3_x86_tw.exe)

Download Czech Language Version (http://download.microsoft.com/download/win2000platform/patch/q313829/nt5/cs/q313829_w2k_sp3_x86_cs.exe)

Download Danish Language Version (http://download.microsoft.com/download/win2000platform/patch/q313829/nt5/da/q313829_w2k_sp3_x86_da.exe)

Download Dutch Language Version (http://download.microsoft.com/download/win2000platform/patch/q313829/nt5/nl/q313829_w2k_sp3_x86_nl.exe)

Download Finnish Language Version (http://download.microsoft.com/download/win2000platform/patch/q313829/nt5/fi/q313829_w2k_sp3_x86_fi.exe)

Download French Language Version (http://download.microsoft.com/download/win2000platform/patch/q313829/nt5/fr/q313829_w2k_sp3_x86_fr.exe)

Download German Language Version (http://download.microsoft.com/download/win2000platform/patch/q313829/nt5/de/q313829_w2k_sp3_x86_de.exe)

Download Greek Language Version (http://download.microsoft.com/download/win2000platform/patch/q313829/nt5/el/q313829_w2k_sp3_x86_el.exe)

Download Hebrew Language Version (http://download.microsoft.com/download/win2000platform/patch/q313829/nt5/he/q313829_w2k_sp3_x86_he.exe)

Download Hungarian Language Version (http://download.microsoft.com/download/win2000platform/patch/q313829/nt5/hu/q313829_w2k_sp3_x86_hu.exe)

Download Italian Language Version (http://download.microsoft.com/download/win2000platform/patch/q313829/nt5/it/q313829_w2k_sp3_x86_it.exe)

Download Japanese Language Version (http://download.microsoft.com/download/win2000platform/patch/q313829/nt5/ja/q313829_w2k_sp3_x86_ja.exe)

Download Japanese NEC Language Version (http://download.microsoft.com/download/win2000platform/patchnec/q313829/nt5/ja/q313829_w2k_sp3_nec98_ja.exe)

Download Korean Language Version (http://download.microsoft.com/download/win2000platform/patch/q313829/nt5/ko/q313829_w2k_sp3_x86_ko.exe)

Download Norwegian Language Version (http://download.microsoft.com/download/win2000platform/patch/q313829/nt5/no/q313829_w2k_sp3_x86_no.exe)

Download Polish Language Version (http://download.microsoft.com/download/win2000platform/patch/q313829/nt5/pl/q313829_w2k_sp3_x86_pl.exe)

Download Portuguese (Brazilian) Language Version (http://download.microsoft.com/download/win2000platform/patch/q313829/nt5/pt-br/q313829_w2k_sp3_x86_br.exe)

Download Portuguese Language Version (http://download.microsoft.com/download/win2000platform/patch/q313829/nt5/pt/q313829_w2k_sp3_x86_pt.exe)

Download Russian Language Version (http://download.microsoft.com/download/win2000platform/patch/q313829/nt5/ru/q313829_w2k_sp3_x86_ru.exe)

Download Spanish Language Version (http://download.microsoft.com/download/win2000platform/patch/q313829/nt5/es/q313829_w2k_sp3_x86_es.exe)

Download Swedish Language Version (http://download.microsoft.com/download/win2000platform/patch/q313829/nt5/sv/q313829_w2k_sp3_x86_sv.exe)

Download Turkish Language Version (http://download.microsoft.com/download/win2000platform/patch/q313829/nt5/tr/q313829_w2k_sp3_x86_tr.exe)

Release Date: March 7, 2002

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591 (http://support.microsoft.com/kb/119591/EN-US/) 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 to prevent any unauthorized changes to the file. The English version of this fix should have the following file attributes or later:
   GMT-UTC Date Time   Version         Size       File name
   ----------------------------------------------------------
   03-Dec-2001  21:35  5.00.3502.4718  2,338,576  Shell32.dll      
				

Back to the top

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 (http://www.microsoft.com/technet/security/bulletin/MS02-014.mspx) 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 (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. The following file is available for download from the Microsoft Download Center:
DownloadDownload the Q313829 package now (http://www.microsoft.com/downloads/details.aspx?familyid=71B6135C-F957-4702-B376-2DACCE773DC0&displaylang=en)
Release Date: March 7, 2002

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591 (http://support.microsoft.com/kb/119591/EN-US/) 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 secure servers that prevent any unauthorized changes to the file.

The English version of this fix should have the following file attributes or later:
   GMT-UTC Date Time   Version  Size       File name
   ---------------------------------------------------
   10-Dec-2001  17:53  4.00     1,280,784  Shell32.dll
				

Back to the top

Windows NT Server 4.0, Terminal Server Edition

A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that you determine are at risk of attack. Evaluate your computer's physical accessibility, network and Internet connectivity, and other factors to determine the degree of risk to your computer. See the associated Microsoft Security Bulletin (http://www.microsoft.com/technet/security/bulletin/MS02-014.mspx) to help determine the degree of risk. This fix may receive additional testing. If your computer is sufficiently at risk, Microsoft recommends that you apply this fix now.

To resolve this problem immediately, download the fix by clicking the download link later in this article or contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, please visit the following Microsoft Web site:
http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS (http://support.microsoft.com/default.aspx?scid=fh;en-us;cntactms)
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.

The following file is available for download from the Microsoft Download Center:
DownloadDownload the Q313829 package now (http://www.microsoft.com/downloads/details.aspx?FamilyID=10e78044-13e4-47a7-ba1f-c3ee5738694e&DisplayLang=en)
Release Date: March 7, 2002

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591 (http://support.microsoft.com/kb/119591/EN-US/) 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 secure servers that prevent any unauthorized changes to the file.

The English version of this fix should have the following file attributes or later:
   GMT-UTC Date Time   Version  Size       File name

   ---------------------------------------------------
   19-Jan-2002  00:25  4.00     1,300,752  Shell32.dll      
				

Back to the top

Windows NT 4.0 with Active Desktop, Windows 98, and Windows 98 Second Edition

A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that you determine are at risk of attack. Evaluate your computer's physical accessibility, network and Internet connectivity, and other factors to determine the degree of risk to your computer. See the associated Microsoft Security Bulletin (http://www.microsoft.com/technet/security/bulletin/MS02-014.mspx) to help determine the degree of risk. This fix may receive additional testing. If your computer is sufficiently at risk, Microsoft recommends that you apply this fix now.

To resolve this problem immediately, download the fix by clicking the download link later in this article or contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, please visit the following Microsoft Web site:
http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS (http://support.microsoft.com/default.aspx?scid=fh;en-us;cntactms)
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.

The following file is available for download from the Microsoft Download Center:
DownloadDownload the Q313829 package now (http://www.microsoft.com/downloads/details.aspx?familyid=71B6135C-F957-4702-B376-2DACCE773DC0&displaylang=en)
Release Date: March 7, 2002

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591 (http://support.microsoft.com/kb/119591/EN-US/) 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 secure servers that prevent any unauthorized changes to the file.

The English version of this fix should have the following file attributes or later:
   GMT-UTC Date Time   Version        Size       File name
   ----------------------------------------------------------
   02-Jun-1998  16:00  4.72.3110.0       80,864  Advpack.dll      
   30-Nov-1997  22:59                    20,480  Prebind.exe      
   07-Dec-2001  04:25  4.72.3812.600  1,388,816  Shel95.dll       
   07-Dec-2001  05:23  4.72.3812.600  1,719,056  Shelnt.dll       
   02-Jun-1998  16:00  4.71.704.0         2,272  W95inf16.dll     
   02-Jun-1998  16:00  4.71.0016.0        4,608  W95inf32.dll     
				

Back to the top

STATUS

Windows 2000

Microsoft has confirmed that this problem may cause a degree of security vulnerability in Microsoft Windows 2000. This problem was first corrected in Windows 2000 Service Pack 3.

Back to the top

Windows NT 4.0

Microsoft has confirmed that this problem may cause a degree of security vulnerability in Microsoft Windows NT 4.0.

Back to the top

Windows NT Server 4.0, Terminal Server Edition

Microsoft has confirmed that this problem may cause a degree of security vulnerability in Microsoft Windows NT Server 4.0, Terminal Server Edition.

Back to the top

Windows 98 and Windows 98 Second Edition

Microsoft has confirmed that this problem may cause a degree of security vulnerability in Microsoft Windows 98 and Microsoft Windows 98 Second Edition.

Back to the top

MORE INFORMATION

The Windows Shell provides the basic framework and functionality of the Windows user interface (UI). It is most familiar to users as the Windows desktop, but also provides other functions that help to define the user's Windows session. These functions include organizing files and folders, and providing the means to run programs. Shell extensions are programs that you can install to add to the functionality of Windows Explorer. Explorer is designed to respond in specific ways when a user completes various functions within its shell. When you click an item, Explorer searches for any program modules that have been registered for that event, and if one exists, it attempts to load that module. If the Windows shell is compromised, Windows may stop responding (hang), or control may be taken by a malicious program.

For additional information about this vulnerability, please visit the following Microsoft Web site:
http://www.microsoft.com/technet/security/bulletin/MS02-014.mspx (http://www.microsoft.com/technet/security/bulletin/MS02-014.mspx)
For additional information about how to obtain a hotfix for Windows 2000 Datacenter Server, click the following article number to view the article in the Microsoft Knowledge Base:
265173 (http://support.microsoft.com/kb/265173/) The Datacenter Program and Windows 2000 Datacenter Server Product
For additional information about how to install multiple hotfixes with only one reboot, click the following article number to view the article in the Microsoft Knowledge Base:
296861 (http://support.microsoft.com/kb/296861/) How to install multiple Windows updates or hotfixes with only one reboot

Back to the top


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 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 Workstation 4.0 Developer Edition
Microsoft Windows NT Workstation 4.0
Microsoft Windows 98 Second Edition

Back to the top

Keywords: 
kbbug kbfix kbshell kbwin2000presp3fix kbsecvulnerability kbqfe kbwin2000sp3fix kbenv kbsecurity kbsechack kbhotfixserver KB313829

Back to the top

Article Translations

 

Related Support Centers

Other Support Options

  • Need More Help?
    Contact a Support professional by E-mail, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.