ModSecurity Breach

ModSecurity v2.5 is now available. Some of the new features include: parallel text matching, Geo IP resolution, credit card number detection, support for content injection, automated rule updates, scripting, as well as many others.
More Info



News and Updates

ModSecurity v2.5.9
(March 11, 2009)
ModSecurity v2.5.9 (change log) has been released. This release fixes a potential DoS vulnerability discovered by "Internet Security Auditors" when parsing multipart requests. Additionally, the release cleans up the build process and adds a few features, including atomic updates of persistent counters and macro expansion of the append/prepend actions. It is highly recommended to upgrade to this release.

ModSecurity v2.5.8
(March 11, 2009)
ModSecurity v2.5.8 (change log) has been released. This release fixes a potential DoS vulnerability when PDF XSS protection is enabled (default is disabled) as well as a minor issue with an invalid "internal error" message. This release was immediately superseded by the 2.5.9 to fix another major issue found during the 2.5.8 release cycle. You should install the 2.5.9 release instead.

ModSecurity v2.5.7
(September 30, 2008)
ModSecurity v2.5.7 (change log) is a maintenance release, which verify fixes some not-so-common issues with request limits, logging, XML processing, and handling some "legacy" protocols in the request body.

ModProfiler v0.2.0
(September 8, 2008)
This is another development release of ModProfiler. This version features support for incremental logging and resource confidence.

ModSecurity v2.5.6
(July 31, 2008)
ModSecurity v2.5.6 is a maintenance release, which fixes the stability and evasion issues in the transformation cache subsystem. Furthermore, transformation caching is now deprecated, and you are advised to turn it off in your configuration. This is also the first version of ModSecurity to use a licensing exception to make mixing with other open source projects possible.

ModSecurity v2.5.5
(June 6, 2008)
ModSecurity v2.5.5 is a maintenance release, which fixes a few bugs and compatibility problems (e.g. the WordPress upload issue).

ModSecurity v2.5.4
(May 8, 2008)
ModSecurity v2.5.4 is a maintenance release, which fixes an issue with transformation caching that would, in some cases, cause targets to be incorrectly transformed.

ModSecurity Console v1.0.5
(May 7, 2008)
ModSecurity Console v1.0.5 fixes a small bug when displaying multipart requests.

ModSecurity v2.5.3
(April 25, 2008)
ModSecurity v2.5.3 is a maintenance release, which fixes a few small defects in the code and in the rules. This version also allows macros to be expanded in the expirevar and deprecatevar actions.


What Is ModSecurity?

ModSecurity is a web application firewall that can work either embedded or as a reverse proxy. It provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring, logging and real-time analysis.

It is also an open source project that aims to make the web application firewall technology available to everyone.

Books

Apache Security cover

Apache Security is a comprehensive Apache Security resource, written by Ivan Ristic for O'Reilly. Two chapters (Apache Installation and Configuration and PHP) are available as free download, as are the Apache security tools created for the book.

Preventing Web Attacks with Apache cover

Preventing Web Attacks with Apache. Building on his groundbreaking SANS presentations on Apache security, Ryan C. Barnett reveals why your Web servers represent such a compelling target, how significant exploits are performed, and how they can be defended against.

Breach

Support/Mailing lists

Community support is available on the mod-security-users/lists.sourceforge.net mailing list. You must subscribe first (by clicking here) in order to post. The list archives are available as News (NNTP), Threaded HTTP, Bloggy HTTP, and RSS.

Commercial support and appliances based on ModSecurity can be obtained from Breach Security.

Getting Started

 ModSecurity FAQ
Web Intrusion Detection with ModSecurity (ApacheCon Europe 2008)
Introducing ModSecurity
Introducing Core Rules
ModSecurity 2 Deployment
ModSecurity 2 Rule Language
Securing Web Services with ModSecurity 2
Ajax Fingerprinting and Filtering with ModSecurity 2

External Links

ModSecurity 2.0 with Ivan Ristic
ModSecurity is an open source web application firewall that runs as an Apache module, and version 2.0 offers many new features and improvements. Federico Biancuzzi interviewed Ivan Ristic to discuss the new logging system, events tracking and correlation, filtering AJAX or AFLAX applications, and just-in-time patching for closed source applications.

Web Application Firewalls Primer
Introduction to Web Application Firewalls, published in INSECURE Magazine 1.5.

Talks

Our talks are available for download following the links below:

Web Application Firewalls:
When Are They Useful?
(May 31, 2006)
ModSecurity Elevator Pitch
(February 20, 2006)
Threat Modelling for Web Applications
(January 27, 2006)
Apache Security Training
(October 27, 2005)
Web Intrusion Detection with ModSecurity
(October 27, 2005)
ModSecurity Status
Stable: 2.5.9 (11 Mar 2009)
Development: -

ModSecurity Blog

May 1, 2009
ModSecurity Training at Blackhat USA 2009
Just a quick note to let everyone know that a 2-day ModSecurity training class was added to the upcoming Blackhat USA 2009 conference in Las Vegase - http://www.blackhat.com/html/bh-usa-09/train-bh-usa-09-categories-appsec.html. This class will be focused on the ModSecurity Rules Language and using...

Mar 12, 2009
ModSecurity Vulnerabilities Fixed
ModSecurity versions 2.5.8 and 2.5.9 have been released to fix two vulnerabilities which could be used to cause a denial of service (DoS). The first vulnerability is fixed in version 2.5.8 and the second (as it was disclosed after version...

Jan 15, 2009
Why Did Our Web Application Crash? Leveraging WAF Logging Data
More Than A Blocking Device Unfortunately, most people have pigeon-holed WAFs as only "Attack Blocking Devices" and that is but one use-case option. This Blog post will highlight another interesting use-case/benefit of a web application firewall - capturing full HTTP...

Dec 22, 2008
Fixing Both Missing HTTPOnly and Secure Cookie Flags
In a previous post I showed how you can use both ModSecurity and Apache together to identify/modify SessionIDs that are missing the HTTPOnly flag. I received some feedback where people were asking how to accomplish the same thing but for...

Dec 19, 2008
Helping Protect Cookies with HTTPOnly Flag
If you are unfamiliar with what the HTTPOnly cookie flag is or why your web apps should use it, please refer to the following resources - Mitigating Cross-site Scripting With HTTP-only Cookies - http://msdn.microsoft.com/en-us/library/ms533046.aspx OWASP HTTPOnly Overview - http://www.owasp.org/index.php/HTTPOnly The...