aspose file tools*
The moose likes Security and the fly likes Need suggestion for preventing website from security breaches Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "Need suggestion for preventing website from security breaches" Watch "Need suggestion for preventing website from security breaches" New topic
Author

Need suggestion for preventing website from security breaches

Abhishek Purwar
Ranch Hand

Joined: Dec 15, 2007
Posts: 63

Hi All,

I want to know about CSRF(Cross Sit Request Frogery) attack and what are various solutions using which i can prevent this attack.
Also provide views on which is the best solution which I can implement and how should I test my site for this attack and other breaches.

Thanks in advance for providing suggestions.


Abhishek Purwar,
Bangalore.
Manjesh Patil
Ranch Hand

Joined: Sep 24, 2010
Posts: 41

Hi,
Tomcat higher versions (I guess 7.x) has got built-in support for CSRF module you can download source code and have a look on that .There are some open-source libraries available ,one such exist from OWASP org known as OWASP CSRF Guard (I am not sure about its current limitations). A CSRF framework which works on Session/Request Token Synchronization Patterns would be a optimal solution.

As a security standards your application must be secured enough atleast from the following type of vulnarabilities

XSS (Cross Site Scripting) / Injection attacks
CSRF (Cross-Site Request Forgery)
Session Fixation
SQL Injections
Chache Poinsioning
HTTP Response Splitting
Buffer Overflow
Failure to Restrict URL Access
Unvalidated Redirects and Forwards

Appart from the manual testing you should use some tools for testing. Example WebInspect From HP or Rational App Scan from IBM. I have not yet used any opensource validation tools yet.
spend some time on https://www.owasp.org and education videos on web-security at You-Tube

Good Luck
Manjesh

Abhishek Purwar
Ranch Hand

Joined: Dec 15, 2007
Posts: 63

Thanks Manjesh for information.
Can you provide some code example?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need suggestion for preventing website from security breaches