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....
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| 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 |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 |