Link to home
Start Free TrialLog in
Avatar of krishna kishore
krishna kishore

asked on

SPRING MVC

how to fix XSS and csrf issues?
Avatar of Kevin Cross
Kevin Cross
Flag of United States of America image

What is the code you are dealing with that needs fixing?  In general, do not leave user input unchecked if it is to be put into sensitive code.  For example, a common mistake is to code in query parameters directly into SQL code or form fields.  Instead use parameters and variables that enforce type and integrity of data, so someone cannot inject SQL, JavaScript or other malicious code into the mix.

For cross-site request forgery, you can use tokens or verify page referrer to make sure the page posting the data is one you want to be submitting requests.
ASKER CERTIFIED SOLUTION
Avatar of Kevin Cross
Kevin Cross
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial