Link to home
Start Free TrialLog in
Avatar of aryavishrut
aryavishrut

asked on

Validate URL for SQL injection attack & Cross Site Scripting

I'm working on a web application based on Struts and using Servlet Filter to check for Injection Attack Prevention (For the form data).   I need to do the same for the URL also. Can anyone suggest an existing way for that? I want to check the URL for XSS too.
ASKER CERTIFIED SOLUTION
Avatar of Cakinci
Cakinci

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
Avatar of Cakinci
Cakinci

In addition to the upper comment i ve some more advices for you to prevent SQL injections attacks.

    * Encrypt sensitive data. (Do not use login=ok  :)
    * Access the database using an account with the least privileges necessary.
    * Install the database using an account with the least privileges necessary.
    * Ensure that error messages give nothing away about the internal architecture of the application or the database. Also this one is important. Try to overwrite all the error messages with try catch statements in your code and hide the sql or database erorrs from the user.
SOLUTION
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