File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes How to prevent cross site cripting parameter manipulation attacks in jsp? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "How to prevent cross site cripting parameter manipulation attacks in jsp?" Watch "How to prevent cross site cripting parameter manipulation attacks in jsp?" New topic
Author

How to prevent cross site cripting parameter manipulation attacks in jsp?

vishnu vyasan
Ranch Hand

Joined: May 27, 2008
Posts: 39
Hi guys,

How could i prevent cross site scripting and parameter manipulation attacks in jsp?

how should i handle such a invalid input coming from the user? Will the SSL implementation prevent this kind of attacks?

Thanks.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35241
    
    7
With regards to XSS, make sure that all text entered by users is validated not to contain problematic HTML/JavaScript. The SecurityFaq points to some articles on this subject (and related attacks such as SQL injection).

Parameters passed in by the user need to be validated on the server. For example, if one of the parameter is a product ID, then the server needs to check the current user is allowed to access that product. Everything sent by the browser is potentially suspect.

SSL does nothing to prevent these classes of attacks.


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to prevent cross site cripting parameter manipulation attacks in jsp?
 
Similar Threads
Cross-site scripting attacks
Doubt in EL part of JSP 2.0 specification
Object JavaScript and security
about URLEncoding
Problem with selecting the Option from list