IT Community - Software Programming, Web Development and Technical Support

Cross site scripting testing

This is a discussion on Cross site scripting testing within the Testing Tools forums, part of the Software Quality Assurance category; The aim of a cross-site scripting (XSS) attack is to introduce arbitrary client-side code in an application (e....


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Quality Assurance > Testing Tools

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 03-13-2007, 06:16 AM
vadivelanvaidyanathan vadivelanvaidyanathan is offline
D-Web Genius
 
Join Date: Feb 2007
Posts: 803
vadivelanvaidyanathan is on a distinguished road
Default Cross site scripting testing

The aim of a cross-site scripting (XSS) attack is to introduce arbitrary client-side code in an application (e.g. by storing client-side scripts in a database) in order to be included in the dynamic web content generated by the server and executed by the client.

So, the final victims of these attacks are the application’s clients, not the server.

How to perform the attack
The attacker needs to explore the application and its architecture to find any way to persist XSS inputs. Some possible entry points may be the following:
1) Web Services.
2) Web forms
3) Web parameters via GET Method (parameters passed through the url).
4) Other applications (web or desktop) sharing the same database.
5) Combine with other techniques, for example:
a. Insert queries directly into the database using SQL-Injection (see SQL-Injection test case document).
b. Removing forms validations to make the application accept XSS strings (see client-side code manipulation test case document).

How to avoid XSS Attacks?

The basic characters used in XSS are ‘<’ and ‘>’, so the validation consists on searching those chars. You may consider the following tips:
First of all you should avoid from the beginning those chars entries from fields that doesn’t require them at all (for example phone, name, postal code, etc.). Make sure the validation is done also at the server side (see Client-Side Code Manipulation document).


Thanks
V.Vadivelan
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross-Frame Scripting P.Sathiya PHP Programming 60 03-20-2008 04:09 AM
Lua scripting lang bluesky Other Web Programming Languages 0 12-23-2007 06:55 AM
i want create one web site and same site to work multiple language how is possible ? vel.m8 ASP and ASP.NET Programming 1 11-15-2007 01:58 AM
Scenarios for testing a web site vigneshgets Software Testing 1 11-05-2007 11:31 PM
scripting process simplesabita Testing Tools 1 08-22-2007 04:22 AM


All times are GMT -7. The time now is 07:09 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0