I am looking for easy steps that are simple and effective in making a web application more secure.
What are your top tips for secure web applications, and what kind of attack will they stop?
I am looking for easy steps that are simple and effective in making a web application more secure.
What are your top tips for secure web applications, and what kind of attack will they stop?
For more in depth information, there is always the OWASP Guide to Building Secure Web Applications and Web Services
Microsoft Technet has en excellent article:
Ten Tips for Designing, Building, and Deploying More Secure Web Applications
Here are the topics for the tips answered in that article:
Do not trust user input.
Validation of expected data types and formatting is essential to avaoiding SQL injection and Cross-Site Scripting (XSS) attacks.
Related stack overflow question:
Checklist for Web Site Programming Vunerabilities
http://stackoverflow.com/questions/28965/checklist-for-web-site-programming-vunerabilities
Set the secure flag on cookies for SSL applications. Otherwise there is always a highjacking attack that is much easier to conduct than breaking the crypto. This is the essence of CVE-2002-1152.
Some of my favourites:
OWASP is your friend. Their Top Ten List of web application security vulnerabilities includes a description of each problem and how to defend against it. The site is a good resource for learning more about web application security and is a wealth of tools and and testing techniques as well.