[Mod-security-rules] error : Failed to execute
Brought to you by:
victorhora,
zimmerletw
From: Serkan <du...@gm...> - 2011-05-21 14:23:16
|
--23bf125d-B-- GET /test.php HTTP/1.1 Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* Accept-Language: tr User-Agent: Mozilla/4.0 (compatible; ) Host: example.net Connection: Keep-Alive --23bf125d-F-- HTTP/1.1 404 Not Found Last-Modified: Thu, 19 May 2011 09:28:26 GMT ETag: "22c034-3bf-4a39da092a280" Accept-Ranges: bytes Content-Length: 959 Vary: Accept-Encoding Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Content-Type: text/html --23bf125d-H-- Message: Exec: Execution failed while reading output: /tmp/test.sh (End of file found) Message: Failed to execute: /tmp/test.sh Message: Warning. Pattern match "/test\.php" at REQUEST_URI. [file "/etc/apache2/test/mod-security.conf"] [line "24"] Stopwatch: 1305987060640023 3860 (218 3512 -) Producer: ModSecurity for Apache/2.5.12 (http://www.modsecurity.org/). Server: Apache --23bf125d-Z-- --- mod-security.conf line "24" SecRule REQUEST_URI "/test\.php" "phase:2,t:none,t:lowercase,t:normalisePath,log,exec:/tmp/test.sh" -- root@example:/tmp# ls -lah /tmp/test.sh -rwxrwxrwx 1 www-data www-data 38 May 21 17:10 /tmp/test.sh -- root@example:/tmp# cat test.sh #!/bin/sh echo "test" > /tmp/test.txt -- root@example:/tmp# apache2 -v Server version: Apache/2.2.16 (Debian) Server built: Mar 22 2011 20:56:31 -- root@example:/tmp# uname -a Linux example 2.6.32-5-686 #1 SMP Tue Mar 8 21:36:00 UTC 2011 i686 GNU/Linux What should I do for solution? |