Bug 203972 - Possible small mistake in one of the default filters
Summary: Possible small mistake in one of the default filters
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: mod_security
Version: 5
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Michael Fleming
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-08-24 19:07 UTC by Raoul
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-09-03 06:44:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Raoul 2006-08-24 19:07:29 UTC
Description of problem:

The /etc/httpd/conf.d/mod_security.conf config file contains the following
filter chain:

    SecFilterSelective REQUEST_METHOD "!^GET$" chain
    SecFilterSelective HTTP_Content-Type
"!(^$|^application/x-www-form-urlencoded$|^multipart/form-data)"

After some tests, it seems that the $ trailing character in
'''^application/x-www-form-urlencoded$''' results in false positive matches in
the case that the "Content-Type" HTTP header is for example:

Content-Type: application/x-www-form-urlencoded; charset=UTF-8

So, i believe that the filter should include:

^application/x-www-form-urlencoded

instead of :

^application/x-www-form-urlencoded$


Version-Release number of selected component (if applicable):
1.9.4-1.fc5

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Michael Fleming 2006-09-03 06:44:22 UTC
Fixed in FC6/devel, will backport time permitting (and that our users haven't
already changed it / put in custom rules etc. that do the same/better job)


Note You need to log in before you can comment on or make changes to this bug.