Hi Abhishek,
In general, there is two type of Cross-site Scripting attaches are there.
1. Stored Cross-Site Scripting attacks,
2. Reflected Cross-Site Scripting attacks.
Cross-Site scripting error come when malicious script code can inserted into Html documents.
Malicious script code can not only be contained in the body of an HTTP request but also in the header.
but the administrator looking at the Web server or application log with a HTML based tool. Then script code contained in header fields and stored in the log file may be executed and show its malicious effects. Thus all data entering the application must be considered untrusted and must be checked for malicious JavaScript code.
Regards,
SiliconIndia Team
Nov 10, 2009