logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: ModSecurity: Lua: Script execution failed
Author
maskego



Joined: 16 Apr 2010
Posts: 238

PostPosted: Sat 30 Jul '11 4:05    Post subject: ModSecurity: Lua: Script execution failed Reply with quote

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

PostPosted: Mon 01 Aug '11 20:46    Post subject: Reply with quote

Is is a nil or a nul value? Are you using apache 2.3?
Back to top
maskego



Joined: 16 Apr 2010
Posts: 238

PostPosted: Tue 02 Aug '11 3:45    Post subject: Reply with quote

I use apache 2.2.19 download from apachelounge.
I can't find what is the rule to cause this error.

another google result is the linking below:

https://lists.owasp.org/pipermail/owasp-modsecurity-core-rule-set/2011-February/000630.html

It seems the security module's issue...


James Blond wrote:
Is is a nil or a nul value? Are you using apache 2.3?
Back to top
aprilgothic



Joined: 03 Aug 2011
Posts: 2

PostPosted: Wed 03 Aug '11 14:50    Post subject: Reply with quote

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

PostPosted: Wed 03 Aug '11 15:20    Post subject: Reply with quote

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 Wink
Back to top
aprilgothic



Joined: 03 Aug 2011
Posts: 2

PostPosted: Wed 03 Aug '11 16:35    Post subject: Reply with quote

James Blond wrote:


He already solved this.. and by the way: this mainly a forum for apache on Windows Wink


Oops.. sorry. Embarassed
Back to top
maskego



Joined: 16 Apr 2010
Posts: 238

PostPosted: Thu 04 Aug '11 3:35    Post subject: Reply with quote

Can't find the solution...
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 04 Aug '11 9:41    Post subject: Reply with quote

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

PostPosted: Fri 05 Aug '11 6:00    Post subject: Reply with quote

It's a good idea and it's the only way to solve this issue.Thank you for your kindly reply. Very Happy
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 08 Aug '11 15:16    Post subject: Reply with quote

Did you find the rule(s) that causes the issues?
Back to top
maskego



Joined: 16 Apr 2010
Posts: 238

PostPosted: Tue 09 Aug '11 7:41    Post subject: Reply with quote

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


Reply to topic   Topic: ModSecurity: Lua: Script execution failed View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules