Author |
|
maskego
Joined: 16 Apr 2010 Posts: 238
|
Posted: Sat 30 Jul '11 4:05 Post subject: ModSecurity: Lua: Script execution failed |
|
|
I find the error log message from my logs.
Code: | ModSecurity: Lua: Script execution failed: attempt to call a nil value |
Should I download the Lrexlib 2.5 to resolve this issue?
Or needs to recompile mod_security 2.6.1 ? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 01 Aug '11 20:46 Post subject: |
|
|
Is is a nil or a nul value? Are you using apache 2.3? |
|
Back to top |
|
maskego
Joined: 16 Apr 2010 Posts: 238
|
|
Back to top |
|
aprilgothic
Joined: 03 Aug 2011 Posts: 2
|
Posted: Wed 03 Aug '11 14:50 Post subject: |
|
|
try this:
mkdir /opt/local
mkdir /opt/local/bin
cp -p /opt/lua/bin/* /opt/local/bin/ |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 03 Aug '11 15:20 Post subject: |
|
|
aprilgothic wrote: | try this:
mkdir /opt/local
mkdir /opt/local/bin
cp -p /opt/lua/bin/* /opt/local/bin/ |
He already solved this.. and by the way: this mainly a forum for apache on Windows |
|
Back to top |
|
aprilgothic
Joined: 03 Aug 2011 Posts: 2
|
Posted: Wed 03 Aug '11 16:35 Post subject: |
|
|
James Blond wrote: |
He already solved this.. and by the way: this mainly a forum for apache on Windows |
Oops.. sorry. |
|
Back to top |
|
maskego
Joined: 16 Apr 2010 Posts: 238
|
Posted: Thu 04 Aug '11 3:35 Post subject: |
|
|
Can't find the solution... |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 04 Aug '11 9:41 Post subject: |
|
|
Ok, since you think it is mod_sec you should do a bit trial and error. Disable all rules and enable one after another. Than you will find the rule that breaks the lua script. I know this will cost some time, but at least you'll find the rule(s).
Which rules did you enable? Only the core rules? I guess you send some paramters via GET parameter to your lua script? |
|
Back to top |
|
maskego
Joined: 16 Apr 2010 Posts: 238
|
Posted: Fri 05 Aug '11 6:00 Post subject: |
|
|
It's a good idea and it's the only way to solve this issue.Thank you for your kindly reply. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 08 Aug '11 15:16 Post subject: |
|
|
Did you find the rule(s) that causes the issues? |
|
Back to top |
|
maskego
Joined: 16 Apr 2010 Posts: 238
|
Posted: Tue 09 Aug '11 7:41 Post subject: |
|
|
James:
crs_41_advanced_filters.conf
this rule causes error below:
ModSecurity: Lua: Script execution failed: attempt to call a nil value
James Blond wrote: | Did you find the rule(s) that causes the issues? |
|
|
Back to top |
|