Bug 526464 - In non-English text incorrect rule fire
Summary: In non-English text incorrect rule fire
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: mod_security
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Michael Fleming
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-09-30 12:58 UTC by Pavel Alexeev
Modified: 2010-11-04 20:32 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-04 20:32:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Pavel Alexeev 2009-09-30 12:58:37 UTC
id=950006
(?:\\b(?:(?:n(?:et(?:\\b\\W+?\\blocalgroup|\\.exe)|(?:map|c)\\.exe)|t(?:racer(?:oute|t)|elnet\\.exe|clsh8?|ftp)|(?:w(?:guest|sh)|rcmd|ftp)\\.exe|echo\\b\\W*?\\
by+)\\b|c(?:md(?:(?:32)?\\.exe\\b|\\b\\W*?\\/c)|d(?:\\b\\W*?[\\\\/]|\\W*?\\.\\.)|hmod.{0,40}?\\+.{0,3}x))|[\\;\\|\\`]\\W*?\\b(?:(?:c(?:h(?:grp|mod|own|sh)|md|p
p)|p(?:asswd|ython|erl|ing|s)|n(?:asm|map|c)|f(?:inger|tp)|(?:kil|mai)l|(?:xte)?rm|ls(?:of)?|telnet|uname|echo|id)\\b|g(?:\\+\\+|cc\\b))|\\/(?:c(?:h(?:grp|mod|
own|sh)|pp)|p(?:asswd|ython|erl|ing|s)|n(?:asm|map|c)|f(?:inger|tp)|(?:kil|mai)l|g(?:\\+\\+|cc)|(?:xte)?rm|ls(?:of)?|telnet|uname|echo|id)(?:[\\'\"\\|\\;\\`\\-
\\s]|$))

For Russian language matches to string like:
<b>CD-плеер.</b>
Please note it does not match to English variant:
<b>CD-player.</b>

I dig some investigate and found is because part of regular expression "\\b(?:c(?:d(?:\\b\\W*?[\\\\/])))" (even more short "\\bcd\\b\\W*?[\\\\/]") so, on matching time - [\\\\/] - in HTML tag (admin area, WYSIWYG editor) is often and normal, command off course must be filtered. And we get main error \W* - matches in any non-English (Latin1?) characters!!!

Comment 1 Michael Fleming 2009-11-07 07:46:33 UTC
Want to try this against 2.5.10-2? The rules have changed significantly and may be a lot friendlier to non-Latin1 characters.

Comment 2 Pavel Alexeev 2009-11-08 11:58:38 UTC
Where I can find 2.5.10-2 version? In updates and even in koji repository only 2.5.10-1 as I can see.

Comment 3 Bug Zapper 2010-04-28 10:37:41 UTC
This message is a reminder that Fedora 11 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 11.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '11'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 11's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 11 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 4 Michael Fleming 2010-04-29 11:47:22 UTC
Can you try this with 2.5.12? Newer Core Rulesets may have fixed this one.

Comment 5 Pavel Alexeev 2010-04-30 17:02:35 UTC
In fresh versions absent rule id=950006. I think bug may be closed. If problem appeared again I'll open new bugreport.

Comment 6 Bug Zapper 2010-11-04 09:44:36 UTC
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '12'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 12 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


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