Article ID: 253121 - Last Review: May 26, 2005 - Revision: 2.0 How to review MTS/ASP code for CSSI vulnerabilityThis article was previously published under Q253121 SUMMARY
This article describes how to identify and correct Microsoft Transaction Server/Active Server Pages (ASP) applications that are susceptible to cross-site scripting security issues (CSSI). Only input that is not correctly validated or formatted makes your application vulnerable to attack. MORE INFORMATION
CSSI issues are rooted in the way an application handles data validation and formatting, so it is best tackled from the presentation layer. This layer usually will consist of ASP pages, and occasionally it may include some components that assist in the rendering of HTML for the ASP page to display. In the latter case it is important to note that although the application should perform the same operations to protect itself from CSSI as an ASP-only application, its physical implementation will cause some of the validating/formatting code to run in the ASP pages and some in the component. For detailed information on CSSI and ASP, please see the following Microsoft Knowledge Base article: 253119
(http://support.microsoft.com/kb/253119/
)
How to review ASP code for CSSI vulnerability
The following steps will help you identify and correct ASP applications susceptible to CSSI:
Guidelines for formattingThese guidelines will help you identify where to tackle formatting appropriately.When writing information to a page, the specific application data must be HTMLEncoded. It is important not to HTMLEncode tags that are intended to end up in the HTML page. Therefore, if your component functions return HTML, the HTMLEncode has to be done inside them. To HTMLEncode a string from a component, you need a reference to the ASP server object. You can obtain this reference from the MTS ObjectContext.Items collection: Please take into account the following guidelines:
REFERENCES
For more information, see the following advisory from the Computer Emergency Response Team (CERT) at Carnegie Mellon University: http://www.cert.org/advisories/CA-2000-02.html
(http://www.cert.org/advisories/CA-2000-02.html)
For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
252985
(http://support.microsoft.com/kb/252985/
)
How to prevent cross-site scripting security issues for Web applications
253120
(http://support.microsoft.com/kb/253120/
)
How to review Visual InterDev generated code for CSSI vulnerability
253117
(http://support.microsoft.com/kb/253117/
)
How to prevent Internet Explorer and Outlook Express CSSI vulnerability
| Article Translations
|

Back to the top
