Securing Web applications with Web application firewalls

Securing Web applications with Web application firewalls

What are the security alternatives for Web application firewalls, and what are the pros and cons of each option?

    Requires Free Membership to View

    SearchSecurity.co.UK members gain immediate and unlimited access to breaking UK industry news, virus alerts, new hacker threats, highly focused security newsletters, and more -- all at no cost. Join me on SearchSecurity.co.UK today!

    Michael S. Mimoso, Editorial Director

    By submitting your registration information to SearchSecurity.co.uk you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSecurity.co.uk is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

First of all, I'd say that in security it's best not think in terms of options, but to try and combine different alternatives to provide maximum security.

Application firewalls protect the application layer, normally protecting HTTP communications from attacks like SQL or script injection. Be wary of simplistic pattern-based firewalls, as the attacks might be new and not in the database or more likely will be designed not to be easily detected.

The best solution is to constrain a program's input and output only to accept or output expected data. An example of this is to limit the input length, and only allow numbers when accepting numeric data like credit cards or current age. But there are problems with constraining data, as sometimes the data is unexpectedly long (surnames) or will contain illegal characters (passwords).

Before releasing any Web application to the public, it should then be subjected to static and dynamic source code reviews to validate it has been developed correctly. Finally the program language you choose is also important, because filters built into the language will help prevent many common Web-based attacks. It is wise to learn about the protective mechanisms built into your chosen programming language, and make good use of them.

Protection is sometimes provided by frameworks which support multiple languages and sometimes within variations of the same programming language from different vendors. Check online security sites to see the number of vulnerabilities associated with the language.

Unfortunately, even when adequate protection is offered -- such as the various .Net framework validation controls -- few developers seem to use them, probably because they lack awareness or training.

This was first published in February 2010