Posts Tagged ‘web application protection’

New Article: Web Application Protection- Ways to Protect a Web Application from Hackers

Saturday, February 20th, 2010

I wrote a new article this weekend, titled Web Application Protection- Ways to Protect a Web Application from Hackers.  I wrote this article to help some of my clients, who have asked about the different methods available to prevent an attacker from successfully compromising a web application.  The methods recommended include setting up SSL to encrypt traffic, using mod_security, and using iptables to block netblocks or domains that would never use the web application (for instance .cn, .af, .lt, .ru, etc).  However, there are a few methods that I didn’t talk about:

Use .htaccess to further restrict requests to web directories

Using .htaccess files can be a great way to restrict access to a web application, or add a password authentication feature where such a feature does not exist (for instance, to protect a private wiki).  A nice benefit that .htaccess authentication gives us is the ability to authenticate against a MySQL or LDAP database.  Combined with SSLv3 encryption, .htaccess authentication can be very secure.

Snort-Inline

Although I did mention mod_security can be used to firewall the web application (if you are running Apache), another solution is to use Snort-Inline to secure your web application.  Although not for the faint of heart (it’s fairly easy to make a mistake when installing Snort-Inline, and lock yourself out of the server), Snort-Inline goes above and beyond what mod_security offers.  Acting as a Network Intrusion Prevention system, Snort-Inline doesn’t stop at just filtering web application attacks, but can also be extended to monitor practically every major server software solution.

Hopefully, these tips will have helped out both clients and readers alike- in today’s world of automated bot scans and worms, it is far too common that web applications are exploited.  Some of these measures will mean the difference between a successful compromise, and a harmless attempt.

Here is the article:
http://linuxconsultant.info/tutorials/web-application-protection-protect-a-web-application-from-hackers.html