3 Jul 16:14
Re: problem with my regex and single line HTMLcomment in RESPONSE_BODY
From: Stephen Craig Evans <stephencraig.evans <at> gmail.com>
Subject: Re: problem with my regex and single line HTMLcomment in RESPONSE_BODY
Newsgroups: gmane.comp.apache.mod-security.user
Date: 2008-07-03 14:14:14 GMT
Subject: Re: problem with my regex and single line HTMLcomment in RESPONSE_BODY
Newsgroups: gmane.comp.apache.mod-security.user
Date: 2008-07-03 14:14:14 GMT
Hi Achim, Pardon me if my rant is off-topic, but this seems to be a good place for it for me now. In the 60+ hours in the last 5 days that I have spent writing ModSecurity rules for WebGoat vulnerabilities, more than half of that time has been spent on getting the regex's working. I am so tired of reading the debug file to see how my regex is being interpreted. I feel like I am a slave to the PCRE engine instead of the opposite. It's not rocket science: 1. I want an account number that has digits, characters and a hyphen, but no spaces or special characters. 2. I want a password that has alphanumeric and special chars, but has no spaces or '>' and '<'. 3. I want a user name with chars, ', -, and spaces but nothing else. I could do this much easier and faster writing Java, C#, or C (which is why ModSecurity is written in C; check the source for urlDecodeUni). I'm at the point where I think it's easier to write my own routines in Lua and build my own library for reuse; disclaimer: I don't need speed. (/end of rant) Stephen(Continue reading)
Lua might have the
same functionality.
I just feel like I am using a hammer with regex's while everything is
not a nail.
Stephen
On Thu, Jul 3, 2008 at 10:22 PM, Ivan Ristic <ivan.ristic <at> gmail.com> wrote:
> I think you want a ModSecurity IDE... I've dreamed of one myself. It's
> feasible, from a technical point of view, but requires a commitment of
> resources to implement.
>
> Questions below.
>
> On Thu, Jul 3, 2008 at 3:14 PM, Stephen Craig Evans
> <stephencraig.evans <at> gmail.com> wrote:
>> Hi Achim,
>>
>> Pardon me if my rant is off-topic, but this seems to be a good place
>> for it for me now.
>>
>> In the 60+ hours in the last 5 days that I have spent writing
>> ModSecurity rules for WebGoat vulnerabilities, more than half of that
>> time has been spent on getting the regex's working. I am so tired of
RSS Feed