Bug 449880

Summary: Mod security prevents bugzilla posts from going through
Product: [Fedora] Fedora Reporter: Austin <aa_sb_0>
Component: mod_securityAssignee: Michael Fleming <mfleming+rpm>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 7   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-06-17 03:09:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Brief collection of log file snippets none

Description Austin 2008-06-04 03:34:18 UTC
Description of problem:
Mod security is preventing some bugzilla posts (comments) from going through and
giving a 501 response. When a user posts a reply in Bugzilla that contains a
path that matches the regexp, it denies it, despite that it's a post, and not a
get request.

Version-Release number of selected component (if applicable):
Bugzilla 3.*
modsecurity 2.1.7-1.fc7

How reproducible:
Every time someone posts something that includes something from that regexp -
such as /etc/hosts, it denies the post.

Steps to Reproduce:
1. Install apache
2. Install bugzilla
3. Create a 'bug' and have a path that is included in the expression inside the
bug's description.
4. Watch the failure.
  
Actual results:
501 from apache

Expected results:
It to work.

Additional info:
Sure I can disable mod_security, but I'm sure that's not the developer's
intention here. Surely this should (could?) be made to check the HTTP method
before filtering, or have a white list?

I've told users so far to put spaces before each directory delimiter to get
around this. It's a bit annoying.

Any further information available upon request.

Comment 1 Austin 2008-06-04 03:34:18 UTC
Created attachment 308315 [details]
Brief collection of log file snippets

Comment 2 Bug Zapper 2008-06-17 03:09:30 UTC
Fedora 7 changed to end-of-life (EOL) status on June 13, 2008. 
Fedora 7 is no longer maintained, which means that it will not 
receive any further security or bug fix updates. As a result we 
are closing this bug. 

If you can reproduce this bug against a currently maintained version 
of Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 3 Austin 2008-11-24 05:51:25 UTC
Yeah, it would be a shame to port the simple text file changes to older distros where someone noticed it, and was actively using it. If you did that, lives would be easier for admins where they wouldn't have to get a VM of the latest Fedora release and find out the changes themselves and retro-actively fit them to a currently working server.

I can at least say that this problem has been fixed in Fedora 10.