Cookies Are Not Marked as SSL-Secured in IISArticle ID: 274149 This article was previously published under Q274149 Symptoms
When you use Active Server Pages (ASP) in Internet Information Server (IIS) 4.0 or Internet Information Services (IIS) 5.0, a session cookie is sent to a user's browser. This cookie identifies the user for the time that they are on the site. These cookies are sometimes called memory cookies, because they are never stored on the user's hard drive like a regular cookie. In reality, this is an additional header that is sent to the browser. Anytime a Web site sends additional information such as this, the browser is required to send it back with each request (provided the server name does not change). The following is an example of an ASP Session Cookie:
Set-Cookie: ASPSESSIONIDGQQGGLIC=HKEDPNNBNBBKMOCFFBEIJENM; path=/
HTTP is a stateless protocol, which means that every time a user connects to a Web site it is just like the first time they connected to the Web server. This is a problem in an environment where you store server-side information for users. The session cookie is a means of performing such tasks.
A problem can occur if developers decide to store confidential or sensitive information in the session. For example, if a developer writes a piece of ASP code that requests a user's credit card number, the developer can store this information in a session variable (session variables are linked to the session cookie) on the server. The user can then browse to a page that lists the information they entered (for example, an authorization page or an order confirmation page). The credit card (when the list is generated) may be pulled from a session variable. If so, this information may be at risk. If a malicious user performs a network trace or something similar, they could possibly obtain the session cookie from the user's browser when it is sent back to the server. If the malicious user makes a request to the server and presents that cookie (or actually replays the request), they could effectively see that users information stored in the session variables. The malicious user only needs to know the page that generated the output (for example, the order confirmation page). Microsoft recommends that developers use SSL to encrypt sensitive information in order to hide the session cookie. In most cases, this will work fine; however, if the user goes from an HTTPS (secured) connection, and then back to HTTP (non-secured), the cookie is readable. This presents a problem, because the session cookie issued by a secured and non-secured request is the same. Cause
Microsoft has determined this to be a problem in IIS 4.0 and 5.0. The cookie specification in RFC 2109 states that a cookie may be marked as Secure. IIS does not differentiate between secure and non-secure cookies.
ResolutionFor IIS 5.0 (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
The following files are available for download from the Microsoft
Download Center:
(http://support.microsoft.com/kb/260910/EN-US/
)
How to Obtain the Latest Windows 2000 Service Pack
Collapse this image ![]()
(http://download.microsoft.com/download/win2000platform/Patch/Q274149/NT5/EN-US/Q274149_W2K_SP2_x86_en.EXE)
Collapse this image ![]()
(http://download.microsoft.com/download/win2000platform/Patch/Q274149/NT5/CN/Q274149_W2K_sp2_x86_cn.EXE)
Collapse this image ![]()
(http://download.microsoft.com/download/win2000platform/Patch/Q274149/NT5/TW/Q274149_W2K_sp2_x86_tw.EXE)
Collapse this image ![]()
(http://download.microsoft.com/download/win2000platform/Patch/Q274149/NT5/CS/Q274149_W2K_sp2_x86_CS.EXE)
Collapse this image ![]()
(http://download.microsoft.com/download/win2000platform/Patch/Q274149/NT5/DA/Q274149_W2K_sp2_x86_DA.EXE)
Collapse this image ![]()
(http://download.microsoft.com/download/win2000platform/Patch/Q274149/NT5/NL/Q274149_W2K_sp2_x86_NL.EXE)
Collapse this image ![]()
(http://download.microsoft.com/download/win2000platform/Patch/Q274149/NT5/FI/Q274149_W2K_sp2_x86_FI.EXE)
Collapse this image ![]()
(http://download.microsoft.com/download/win2000platform/Patch/Q274149/NT5/FR/Q274149_W2K_sp2_x86_FR.EXE)
Collapse this image ![]()
(http://download.microsoft.com/download/win2000platform/Patch/Q274149/NT5/DE/Q274149_W2K_sp2_x86_DE.EXE)
Collapse this image ![]()
(http://download.microsoft.com/download/win2000platform/Patch/Q274149/NT5/EL/Q274149_W2K_sp2_x86_EL.EXE)
Collapse this image ![]()
(http://download.microsoft.com/download/win2000platform/Patch/Q274149/NT5/HU/Q274149_W2K_sp2_x86_HU.EXE)
Collapse this image ![]()
(http://download.microsoft.com/download/win2000platform/Patch/Q274149/NT5/IT/Q274149_W2K_sp2_x86_IT.EXE)
Collapse this image ![]()
(http://download.microsoft.com/download/win2000platform/Patch/Q274149/NT5/JA/Q274149_W2K_sp2_x86_JA.EXE)
Collapse this image ![]()
(http://download.microsoft.com/download/win2000platform/patchNEC/Q274149/NT5/JA/Q274149_W2K_sp2_NEC98_JA.EXE)
Collapse this image ![]()
(http://download.microsoft.com/download/win2000platform/Patch/Q274149/NT5/NO/Q274149_W2K_sp2_x86_NO.EXE)
Collapse this image ![]()
(http://download.microsoft.com/download/win2000platform/Patch/Q274149/NT5/PL/Q274149_W2K_sp2_x86_PL.EXE)
Collapse this image ![]()
(http://download.microsoft.com/download/win2000platform/Patch/Q274149/NT5/PT-BR/Q274149_W2K_sp2_x86_BR.EXE)
Collapse this image ![]()
(http://download.microsoft.com/download/win2000platform/Patch/Q274149/NT5/PT/Q274149_W2K_sp2_x86_PT.EXE)
Collapse this image ![]()
(http://download.microsoft.com/download/win2000platform/Patch/Q274149/NT5/RU/Q274149_W2K_sp2_x86_RU.EXE)
Collapse this image ![]()
(http://download.microsoft.com/download/win2000platform/Patch/Q274149/NT5/ES/Q274149_W2K_sp2_x86_ES.EXE)
Collapse this image ![]()
(http://download.microsoft.com/download/win2000platform/Patch/Q274149/NT5/SV/Q274149_W2K_sp2_x86_SV.EXE)
Collapse this image ![]()
(http://download.microsoft.com/download/win2000platform/Patch/Q274149/NT5/TR/Q274149_W2K_sp2_x86_TR.EXE)
cd c:\inetpub\AdminScripts For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:cscript adsutil.vbs set w3svc/1/AspKeepSessionIDSecure 1 119591 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.
(http://support.microsoft.com/kb/119591/EN-US/
)
How to Obtain Microsoft Support Files from Online ServicesThe English version of this fix should have the following file attributes or later: Date Time Version Size File name ----------------------------------------------------------------- 5/31/2001 03:31p 5.0.2195.3649 245,520 Adsiis.dll 5/31/2001 03:31p 5.0.2195.3649 332,560 Asp.dll 5/31/2001 03:31p 5.0.2195.3649 13,584 Infoadmn.dll 5/31/2001 03:31p 5.0.2195.3649 245,520 Infocomm.dll 5/31/2001 03:31p 5.0.2195.3649 62,736 Isatq.dll 5/30/2001 03:40p 5.0.2195.3651 6,928 Schmupd.exe 5/31/2001 03:32p 5.0.2195.3649 7,440 W3ctrs.dll Windows NT Server version 4.0, Terminal Server Edition To resolve this problem, obtain the Windows NT Server 4.0, Terminal Server Edition, Security Rollup Package (SRP). For additional information about the SRP, click the article number below to view the article in the Microsoft Knowledge Base: 317636
(http://support.microsoft.com/kb/317636/EN-US/
)
Windows NT Server 4.0, Terminal Server Edition, Security Rollup Package
StatusMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. Microsoft has confirmed that this problem may cause a degree of security vulnerability in IIS 5.0 and IIS 4.0. This problem was first corrected in Windows 2000 Service Pack 3. More information
For more information about ASP and session state, see the following MSDN article: http://msdn2.microsoft.com/en-us/library/ms972338.aspx
(http://msdn2.microsoft.com/en-us/library/ms972338.aspx)
PropertiesArticle ID: 274149 - Last Review: September 20, 2012 - Revision: 11.0
| Article Translations
|





Back to the top

