Wednesday 15 June 2011

Sanitizing user inputs with Spring MVC frame work -


I am working on a web application using the work of Spring MVC frames, I want to know that the user input is sanitized Is there any best way to do this or to avoid attacks of XSS and SQL injections to normalize all user inputs in springs?

You can use the filter in the Spring Framework to clean your form. Code> filters will receive all your request attributes and clean them all before processing the request. Using another option, JSoup API, go to the following link to learn more.

Edit:

How To Know OWASP Sheet Read To Avoid XSS And SQL Injection

Take a look, which is integrated with Spring 3.1, there is out-the-box support for XSS, CSRF, Data Integrity Check.

No comments:

Post a Comment