Cross-site scripting: Intro to XSS

Cross-site scripting: Intro to XSS

Cross-site scripting (XSS) enables an attacker to send a customized request to a Web site that causes modified Web or e-mail code to be sent to another user. In other words, it allows an attacker

    Requires Free Membership to View

    When you register, you'll receive targeted emails designed to keep you informed of the most relevant information on Agile development, application security, testing & QA, software requirements, and more.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchSoftwareQuality.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSoftwareQuality.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

to send malicious code to another user by exploiting a flaw or weakness in an Internet server. XSS attacks are used to exploit vulnerabilities on a victim's system to traffic malicious code rather than attack the system itself.

While XSS is not the most severe problem affecting Internet servers, it is still important enough to take seriously. Script or code sent to a victim via an XSS attack runs within the security context of the browser or e-mail viewer employed on the victim's system. In many cases this allows full read and write access to all of the user's personal data files and a considerable portion of the OS itself, such as driver files and configuration settings.

A vulnerability was recently discovered in Microsoft Internet Security and Acceleration (ISA) Server 2000 that allows XSS. An attacker can alter the error pages for failed page requests or invalid data submissions that are sent to clients from ISA. The error pages can be altered so that they direct victims to download malicious code or access a malicious Web site. The compromised error pages can also force automatic download or URL activity on the victim's system.

This vulnerability in ISA is easily dealt with through a simple patch. If you are using ISA to protect your Internet server, I recommend reviewing Microsoft Security Bulletin MS03-028 and applying the patch to your systems.

About the author
James Michael Stewart is a partner and researcher for ITinfopros, a technology-focused writing and training organization.

This tip originally appeared on SearchSecurity.com

This was first published in December 2005

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.